Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49582 - gdb 6.x segfaults in certain conditions
Summary: gdb 6.x segfaults in certain conditions
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-01 01:33 UTC by Olivier Crete (RETIRED)
Modified: 2004-11-09 18:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for gdb crash (gdb-6.x-crash.patch,670 bytes, patch)
2004-05-01 01:34 UTC, Olivier Crete (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Crete (RETIRED) gentoo-dev 2004-05-01 01:33:10 UTC
Found a bug in gdb.. In certains conditions (always on my system), gdb segfaults. The fix should already be in the gdb cvs. And I've added it to insight.
Comment 1 Olivier Crete (RETIRED) gentoo-dev 2004-05-01 01:34:32 UTC
Created attachment 30435 [details, diff]
patch for gdb crash

forgot, add this to the ebuild:

cd ${S}/gdb
epatch ${FILESDIR}/gdb-6.x-crash.patch
Comment 2 Brian Harring (RETIRED) gentoo-dev 2004-06-17 10:41:48 UTC
Don't spose you could elaborate on when the bug rears its head?  I've been experiencing pretty much continual gdb segfaults (figure after about 3-4 segfaults of the prog being debugged, gdb itself segfaults).  Would be curious under what conditions this occurs.
Comment 3 Olivier Crete (RETIRED) gentoo-dev 2004-06-17 15:29:22 UTC
this bug occurs when trying to load separate debug information.. Especially when the program was "not" compiled with -g... so the debug info file is almost empty (it might only contain symbols, but no line numbers, etc).. And gdb used the wrong count to allocate a structure (which worked when the struct for the debug file was bigger than the original, but not the other way around)... or something like that.. 
Comment 4 Olivier Crete (RETIRED) gentoo-dev 2004-07-16 21:36:00 UTC
arg.. they didnt put this in 6.1.1.. grrr.. its in their HEAD branch.. 
Comment 5 SpanKY gentoo-dev 2004-10-09 23:45:30 UTC
doesnt seem to be in 6.2.1 either :/

can you guys verify ?  if so, we'll push it into our ebuilds
Comment 6 Olivier Crete (RETIRED) gentoo-dev 2004-10-10 01:54:28 UTC
I had some problems on this patch with insight.. I'll try contacting the rh guy again..
Comment 7 SpanKY gentoo-dev 2004-11-09 16:08:45 UTC
any word ?
Comment 8 Olivier Crete (RETIRED) gentoo-dev 2004-11-09 16:20:06 UTC
got no anwser from jimb@redhat .. re-pinging him..
Comment 9 SpanKY gentoo-dev 2004-11-09 18:19:06 UTC
added patch to 6.2.1-r1