Bug 23340 - gdb gets segmentation fault when changing preferences
Summary: gdb gets segmentation fault when changing preferences
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: gdb
Version: 7.0
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Trond Eivind Glomsrxd
QA Contact: Aaron Brown
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-01-04 19:57 UTC by John Klingler
Modified: 2007-04-18 16:30 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-03-01 19:42:52 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2001:159 0 high SHIPPED_LIVE Updated gdb is available 2001-11-26 05:00:00 UTC

Description John Klingler 2001-01-04 19:57:35 UTC
Using ddd-3.2-4 to edit gdb settings causes gdb-5.0-7 to get
a segmentation fault.

Here's the stack:
#0  0x809f5b7 in set_architecture_from_arch_mach ()
#1  0x80c8946 in execute_command ()
#2  0x809a34d in async_disable_stdin ()
#3  0x809a9c4 in async_disable_stdin ()
#4  0x8165c58 in rl_callback_read_char ()
#5  0x809a220 in stdin_event_handler ()
#6  0x80e1c4a in delete_file_handler ()
#7  0x80e16c9 in _initialize_regcache ()
#8  0x80e1719 in _initialize_regcache ()
#9  0x80c7b4c in catch_errors ()
#10 0x80e1764 in start_event_loop ()
#11 0x806d248 in _start ()
#12 0x80c7b4c in catch_errors ()
#13 0x806dbe3 in _start ()
#14 0x80c7b4c in catch_errors ()
#15 0x806dc17 in main ()
#16 0x400a2b65 in __libc_start_main (main=0x806dbf0 <main>, argc=4,
ubp_av=0xbffff744, init=0x806c718 <_init>, fini=0x8175d7c <_fini>,
rtld_fini=0x4000df24 <_dl_fini>, stack_end=0xbffff73c) at
../sysdeps/generic/libc-start.c:111
(gdb) 
Segmentation fault

Comment 1 Trond Eivind Glomsrxd 2001-01-05 12:29:50 UTC
Please try 5.0-11 in Rawhide.

Comment 2 Trond Eivind Glomsrxd 2001-01-20 23:29:34 UTC
Have you tried the Rawhide version yet? Also, exactly how did you produce this bug?

Comment 3 John Klingler 2001-01-23 20:15:27 UTC
I upgraded to gdb-5.0-11 and it still happens but is not predictable. 
I was debugging an OpenMotif application and trying to print out a
struct. I was able to use printf's to get around this. I will try to
contruct a small program to isolate the problem. (Sorry, I should have
done this the first time.)

Comment 4 Trond Eivind Glomsrxd 2001-03-01 19:42:48 UTC
I can still reproduce this (message of gdb segaulting) just by choosing "edit gb
preferences." Debugging this is a pain.

Comment 5 Trond Eivind Glomsrxd 2001-05-16 15:23:30 UTC
Fixed in gdb-5.0rh-9 - coming soon to Rawhide, available for a limited time from
http://people.redhat.com/teg/gdb/


Note You need to log in before you can comment on or make changes to this bug.