Article View: gnu.gdb.bug
Article #2808Re: gdb 5.1 dumped core on me [was: Emacs abort under gdb]
From: Michael Snyder
Date: Sat, 26 Jan 2002 03:26
Date: Sat, 26 Jan 2002 03:26
24 lines
2475 bytes
2475 bytes
Eli Zaretskii wrote: > > > From: Francesco Potorti` <pot@gnu.org> > > Date: Tue, 22 Jan 2002 12:27:11 +0100 > > > > (gdb) p/x current_buffer->auto_save_file_name > > $59 = 0x1827b31c > > (gdb) xstring > > $60 = (struct Lisp_String *) 0x827b31c > > Segmentation fault (core dumped) > > Does GDB's core file say something interesting about where did GDB > crash? > > Anyway, since no one responded, let me rephrase the (implicit) > question in Francesco's report: Is GDB supposed to handle invalid > memory accesses gracefully? That is, if the user asks GDB to access > the inferior's memory via an invalid pointer, does GDB protect itself > against SIGSEGV and other related calamities? An illegal memory access in the child will not cause a signal in the parent. If GDB gets a segv, it is because of some bad pointer or data structure within GDB, not because of accessing a bad address in the child.
Technical Details
Message-ID:
<3C5221E4.90160A45@redhat.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!nntp.abs.net!uunet!dca.uu.net!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!not-for-mailReferences:
<E16LkEc-0007YI-00@pot.cnuce.cnr.it> <200201030031.g030V6n03535@aztec.santafe.edu> <E16NaIT-0005W4-00@pot.cnuce.cnr.it> <200201080630.g086Upf05212@aztec.santafe.edu> <E16SeTn-0003nm-00@pot.cnuce.cnr.it> <200201220539.g0M5dC814870@aztec.santafe.edu> <E16Sz55-0003jb-00@pot.cnuce.cnr.it> <200201240740.JAA16532@is.elta.co.il>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5053,410b098bbbab7603 X-Google-Attributes: gidf5053,public X-Google-ArrivalTime: 2002-01-25 19:32:57 PST x-uunet-gateway: chi6sosrv11.alter.net from bug-gdb to gnu.gdb.bug; Sat, 26 Jan 2002 03:32:56 GMT Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!nntp.abs.net!uunet!dca.uu.net!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!not-for-mail From: msnyder@redhat.com (Michael Snyder) Subject: Re: gdb 5.1 dumped core on me [was: Emacs abort under gdb] Date: Fri, 25 Jan 2002 19:26:28 -0800 Organization: Red Hat, Inc. Message-ID: <3C5221E4.90160A45@redhat.com> References: <E16LkEc-0007YI-00@pot.cnuce.cnr.it> <200201030031.g030V6n03535@aztec.santafe.edu> <E16NaIT-0005W4-00@pot.cnuce.cnr.it> <200201080630.g086Upf05212@aztec.santafe.edu> <E16SeTn-0003nm-00@pot.cnuce.cnr.it> <200201220539.g0M5dC814870@aztec.santafe.edu> <E16Sz55-0003jb-00@pot.cnuce.cnr.it> <200201240740.JAA16532@is.elta.co.il> NNTP-Posting-Host: reddwarf.sfbay.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: cronkite.cygnus.com 1012015967 29814 205.180.231.12 (26 Jan 2002 03:32:47 GMT) X-Complaints-To: postmaster@cygnus.com NNTP-Posting-Date: 26 Jan 2002 03:32:47 GMT X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2smp i686) X-Accept-Language: en Approved: bug-gdb-request@mail.gnu.org Newsgroups: gnu.gdb.bug Sender: bug-gdb-request@mail.gnu.org Lines: 24