Bug 445541 - gdb frequently segfaults when re-reading symbols
gdb frequently segfaults when re-reading symbols
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: gdb (Show other bugs)
rawhide
x86_64 Linux
medium Severity medium
: ---
: ---
Assigned To: Jan Kratochvil
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-05-07 10:15 EDT by Neal Becker
Modified: 2008-05-07 16:30 EDT (History)
0 users

See Also:
Fixed In Version: gdb-6.8-2.fc9
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-05-07 16:09:38 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Neal Becker 2008-05-07 10:15:19 EDT
Description of problem:

Start it from the beginning? (y or n) y
`/home/nbecker/fixed-pt/test2' has changed; re-reading symbols.
Starting program: /home/nbecker/fixed-pt/test2 
*** glibc detected *** /usr/bin/gdb: double free or corruption (!prev):
0x0000000001167b80 ***
======= Backtrace: =========
/lib64/libc.so.6[0x35bac78158]
/lib64/libc.so.6(cfree+0x76)[0x35bac7a796]
/lib64/libc.so.6(fclose+0x151)[0x35bac68661]
/usr/bin/gdb[0x599b3d]
/usr/bin/gdb(bfd_cache_close_all+0x1d)[0x599c6d]
/usr/bin/gdb[0x4d0fad]
/usr/bin/gdb(symbol_file_add_from_bfd+0x15)[0x4d1a85]
/usr/bin/gdb[0x455fb9]
/usr/bin/gdb(catch_errors+0x64)[0x4e9884]
/usr/bin/gdb(solib_read_symbols+0x61)[0x455bb1]
/usr/bin/gdb(solib_add+0x5b)[0x45648b]
/usr/bin/gdb[0x458931]
/usr/bin/gdb[0x4589af]
/usr/bin/gdb(post_create_inferior+0x3f)[0x4dbd3f]
/usr/bin/gdb[0x4dc19e]
/usr/bin/gdb(execute_command+0x32a)[0x44677a]
/usr/bin/gdb[0x4ed74b]
/usr/bin/gdb[0x4ee62c]
/lib64/libreadline.so.5(rl_callback_read_char+0x8e)[0x35c7427e7e]
/usr/bin/gdb[0x4eda69]
/usr/bin/gdb[0x4ec37d]
/usr/bin/gdb(gdb_do_one_event+0x206)[0x4ecd36]
/usr/bin/gdb(catch_errors+0x64)[0x4e9884]
/usr/bin/gdb[0x491468]
/usr/bin/gdb[0x43e5b9]
/usr/bin/gdb(catch_errors+0x64)[0x4e9884]
/usr/bin/gdb[0x43f0b6]
/usr/bin/gdb(catch_errors+0x64)[0x4e9884]
/usr/bin/gdb(gdb_main+0x24)[0x43e5a4]
/usr/bin/gdb(main+0x36)[0x43e576]
/lib64/libc.so.6(__libc_start_main+0xfa)[0x35bac1e32a]
/usr/bin/gdb[0x43e479]
======= Memory map: ========
00110000-00116000 r-xp 00000000 09:00 39911603                          
/lib64/libthread_db-1.0.so
00116000-00315000 ---p 00006000 09:00 39911603                          
/lib64/libthread_db-1.0.so
00315000-00316000 r--p 00005000 09:00 39911603                          
/lib64/libthread_db-1.0.so
00316000-00317000 rw-p 00006000 09:00 39911603                          
/lib64/libthread_db-1.0.so
00400000-0075f000 r-xp 00000000 09:00 47527424                          
/usr/bin/gdb
0095f000-0096c000 rw-p 0035f000 09:00 47527424                          
/usr/bin/gdb
0096c000-00988000 rw-p 0096c000 00:00 0 
00b6b000-00b81000 rw-p 0036b000 09:00 47527424                          
/usr/bin/gdb
00db8000-0180c000 rw-p 00db8000 00:00 0                                  [heap]
35ba800000-35ba81d000 r-xp 00000000 09:00 39911480                      
/lib64/ld-2.8.so
35baa1c000-35baa1d000 r--p 0001c000 09:00 39911480                      
/lib64/ld-2.8.so
35baa1d000-35baa1e000 rw-p 0001d000 09:00 39911480                      
/lib64/ld-2.8.so
35bac00000-35bad62000 r-xp 00000000 09:00 39911600                      
/lib64/libc-2.8.so
35bad62000-35baf62000 ---p 00162000 09:00 39911600                      
/lib64/libc-2.8.so
35baf62000-35baf66000 r--p 00162000 09:00 39911600                      
/lib64/libc-2.8.so
35baf66000-35baf67000 rw-p 00166000 09:00 39911600                      
/lib64/libc-2.8.so
35baf67000-35baf6c000 rw-p 35baf67000 00:00 0 
35bb000000-35bb084000 r-xp 00000000 09:00 39911631                      
/lib64/libm-2.8.so
35bb084000-35bb283000 ---p 00084000 09:00 39911631                      
/lib64/libm-2.8.so
35bb283000-35bb284000 r--p 00083000 09:00 39911631                      
/lib64/libm-2.8.so
35bb284000-35bb285000 rw-p 00084000 09:00 39911631                      
/lib64/libm-2.8.so
35bb400000-35bb402000 r-xp 00000000 09:00 39911611                      
/lib64/libdl-2.8.so
35bb402000-35bb602000 ---p 00002000 09:00 39911611                      
/lib64/libdl-2.8.so
35bb602000-35bb603000 r--p 00002000 09:00 39911611                      
/lib64/libdl-2.8.so
35bb603000-35bb604000 rw-p 00003000 09:00 39911611                      
/lib64/libdl-2.8.so
35bb800000-35bb816000 r-xp 00000000 09:00 39911619                      
/lib64/libpthread-2.8.so
35bb816000-35bba15000 ---p 00016000 09:00 39911619                      
/lib64/libpthread-2.8.so
35bba15000-35bba16000 r--p 00015000 09:00 39911619                      
/lib64/libpthread-2.8.so
35bba16000-35bba17000 rw-p 00016000 09:00 39911619                      
/lib64/libpthread-2.8.so
35bba17000-35bba1b000 rw-p 35bba17000 00:00 0 
35bbc00000-35bbc15000 r-xp 00000000 09:00 39911620                      
/lib64/libz.so.1.2.3
35bbc15000-35bbe14000 ---p 00015000 09:00 39911620                      
/lib64/libz.so.1.2.3
35bbe14000-35bbe15000 rw-p 00014000 09:00 39911620                     
Debugger aborted

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:
Comment 1 Jan Kratochvil 2008-05-07 16:09:38 EDT
* Fri Apr 11 2008 Jan Kratochvil <jan.kratochvil@redhat.com> - 6.8-2
- Fix a regression due to PIE of reloading a changed exec file (BZ 433410).

Upstream: http://sourceware.org/ml/gdb-cvs/2008-05/msg00053.html

Fixed i Bug 433410 but it unfortunately did not make it for F-9 GA.
It is expected to be released soon after the GA release as an update.
Please do not ask why, this is the Fedora release management. :-)

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