Bug 142146

Summary: gdb and system-supplied DSO
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Axel Vanden Eynden <axel.vanden.eynden>
Component: DevelopmentAssignee: Andreas Schwab <schwab>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: pth
Version: unspecified   
Target Milestone: ---   
Hardware: i686   
OS: SuSE Linux 10.0   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: result of strace on gdb

Description Axel Vanden Eynden 2006-01-09 20:11:54 UTC
gdb is almost unusable. I get this when i try to run the program a second time and gdb is not working correctly the first time.

warning: cannot close "system-supplied DSO at 0xffffe000": Fichier dans un mauvais format
Starting program:

(the french sentence mean : file in a wrong type)


By strace, I found this interesting selection of opened file :

open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/lib/libreadline.so.5", O_RDONLY) = 3
open("/lib/libncurses.so.5", O_RDONLY)  = 3
open("/lib/tls/libm.so.6", O_RDONLY)    = 3
open("/lib/libdl.so.2", O_RDONLY)       = 3
open("/lib/tls/libc.so.6", O_RDONLY)    = 3
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
open("/usr/share/terminfo/x/xterm", O_RDONLY) = 3
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/lib/tls/libthread_db.so.1", O_RDONLY) = 3
open("/etc/inputrc", O_RDONLY)          = 5
open("/home/axou/.inputrc", O_RDONLY)   = 5
open("/etc/inputrc", O_RDONLY)          = 5
open("/home/axou/.gdbinit", O_RDONLY)   = -1 ENOENT (No such file or directory)
open("../../c/genlot", O_RDONLY)        = 5
open("../../c/genlot", O_RDONLY)        = 5
open("/etc/mtab", O_RDONLY)             = 6
open("/proc/meminfo", O_RDONLY)         = 6
open("/home/axou/program/ip/ipdaemon/.gdb_history", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/axou/program/c/genlot", O_RDONLY) = 5
open("/lib/ld-linux.so.2", O_RDONLY)    = 6
open("/proc/6896/auxv", O_RDONLY)       = 6
open("/lib/tls/libm.so.6", O_RDONLY)    = 5
open("/lib/tls/libc.so.6", O_RDONLY)    = 6
open("/lib/ld-linux.so.2", O_RDONLY)    = 7
open("/lib/tls/libm.so.6", O_RDONLY)    = 8
open("/lib/tls/libm-2.3.5.so.debug", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/tls/.debug/libm-2.3.5.so.debug", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/debug//lib/tls/libm-2.3.5.so.debug", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/tls/libc.so.6", O_RDONLY)    = 5
open("/lib/tls/libc-2.3.5.so.debug", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/tls/.debug/libc-2.3.5.so.debug", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/debug//lib/tls/libc-2.3.5.so.debug", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/ld-linux.so.2", O_RDONLY)    = 5
open("/lib/ld-2.3.5.so.debug", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/.debug/ld-2.3.5.so.debug", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/debug//lib/ld-2.3.5.so.debug", O_RDONLY) = -1 ENOENT (No such file or directory)

But i don't know in which one of these could be the problem.
Comment 1 Axel Vanden Eynden 2006-01-14 12:58:53 UTC
Created attachment 63353 [details]
result of strace on gdb
Comment 2 Andreas Schwab 2006-01-23 14:25:32 UTC
Please provide a test case.
Comment 3 Andreas Schwab 2006-04-07 11:10:09 UTC
No feedback in 3 months.