🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #2801

Re: gdb 5.1 dumped core on me [was: Emacs abort under gdb]

#2801
From: Andrew Cagney
Date: Thu, 24 Jan 2002 07:52
32 lines
2452 bytes
> 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?


Especially a backtrace.

The other useful thing would be a confirmation that the Debian GDB 5.1 
really is a stock GDB 5.1 and doesn't have patches applied.  Is there 
anything unusual in the startup message for instance?


> 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?


GDB should never dump core.  Which means it does need to try to protect 
its self from such calamities.

Andrew
Technical Details
Message-ID: <3C4FBD28.7080506@cygnus.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.direct.ca!look.ca!newsfeed.icl.net!dispose.news.demon.net!demon!colt.net!newspeer.clara.net!news.clara.net!news2.euro.net!uunet!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!bug-gdb
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>

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-23 23:52:14 PST
x-uunet-gateway: mr1.ash.ops.us.uu.net from bug-gdb to gnu.gdb.bug; Thu, 24 Jan 2002 07:52:13 GMT
Message-ID: <3C4FBD28.7080506@cygnus.com>
Date: Thu, 24 Jan 2002 02:52:08 -0500
From: ac131313@cygnus.com (Andrew Cagney)
User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.7) Gecko/20020103
X-Accept-Language: en-us
MIME-Version: 1.0
Subject: Re: gdb 5.1 dumped core on me [was: Emacs abort under gdb]
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>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Approved: bug-gdb-request@mail.gnu.org
Newsgroups: gnu.gdb.bug
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.direct.ca!look.ca!newsfeed.icl.net!dispose.news.demon.net!demon!colt.net!newspeer.clara.net!news.clara.net!news2.euro.net!uunet!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!bug-gdb
Sender: bug-gdb-request@mail.gnu.org
Lines: 37