ddd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem with ddd-test-3.3.12-test4cvs


From: David Relson
Subject: problem with ddd-test-3.3.12-test4cvs
Date: Sat, 25 Feb 2006 14:20:28 -0500

Hi,

As I'm new to ddd some of the problems I'm experiencing _may_ be my
fault.  However, as I've been writing software for decades and using
gdb on and off for 20 or so years, I suspect there's a problem in the
ddd/gdb interaction.  In any case, I'll describe what's happening as
best I can.

I've built ddd-test-3.3.12-text4cvs from source on my Mandriva 2006.0
workstation with kernel 2.6.14.2 and gcc 4.0.1.  To simplify the test
environment, I've typed in "hello.c" and run "make hello" (which ran
"gcc -g hello.c -o hello.c") to generate an executable.  The executable
runs fine from the command line and "gdb hello" works fine.

However, "ddd hello" reports

   DDD: Debugger Terminated
   GDB terminated abnormally (Segmentation fault)
   <Restart GDB>  <Exit>  <Help>

and generates a core dump of gdb.

Using "gdb /usr/bin/gdb core.15284" to look at the core dump, gdb
reports:

GNU gdb 6.3-5mdk (Mandriva Linux release 2006.0)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-mandriva-linux-gnu"...(no debugging symbols 
found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".

Reading symbols from shared object read from target memory...(no debugging 
symbols found)...done.
Loaded system supplied DSO at 0xffffe000
Core was generated by `gdb -q -fullname hello'.
Program terminated with signal 11, Segmentation fault.

warning: svr4_current_sos: Can't read pathname for load map: Input/output error

Reading symbols from /lib/libreadline.so.5...(no debugging symbols 
found)...done.
Loaded symbols for /lib/libreadline.so.5
Reading symbols from /lib/libncurses.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/libncurses.so.5
Reading symbols from /lib/tls/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/tls/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/tls/libthread_db.so.1...done.
Loaded symbols for /lib/tls/libthread_db.so.1

#0  0xb7e069c9 in free () from /lib/tls/libc.so.6
(gdb)

### After exiting gdb, I tried running the indicated command and got:

address@hidden ddd]$ gdb -q -fullname hello
Using host libthread_db library "/lib/tls/libthread_db.so.1".
(gdb) r
Starting program: /home/relson/src/ddd/ddd-3.3.12-test4cvs/ddd/hello hello
Reading symbols from shared object read from target memory...done.
Loaded system supplied DSO at 0xffffe000
Hello, World.

Program exited normally.
(gdb) 


Let me know if there's additional info that would help.

Regards,

David





reply via email to

[Prev in Thread] Current Thread [Next in Thread]