Hello, I am trying to debug a machine that segfaults. A core file is produced like /tmp/core.4545 . The command and error: gdb /usr/sbin/asterisk -c /tmp/core.4545 GNU gdb 6.3-debian ...CUT This GDB was configured as "i386-linux"...Using host libthread_db library "/lib/libthread_db.so.1". "/tmp/core.4545" is not a core dump: File format not recognized The box was rebooted before I had a change to run gdb, did I miss something? Thank you. JJ ____________________________________________________________________________________ Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC
On Thu, Jul 19, 2007 at 08:32:35PM -0700, Jay Wilton wrote:> Hello, > > I am trying to debug a machine that segfaults. A core file > is produced like /tmp/core.4545 . The command and error: > > gdb /usr/sbin/asterisk -c /tmp/core.4545 > GNU gdb 6.3-debian > ...CUT > This GDB was configured as "i386-linux"...Using host > libthread_db library "/lib/libthread_db.so.1". > > "/tmp/core.4545" is not a core dump: File format not > recognizedSo what is that file? file /tmp/core.4545> > The box was rebooted before I had a change to run gdb, did > I miss something? Thank you.Debian normally deletes the contents of /tmp upon boot. -- Tzafrir Cohen icq#16849755 jabber:tzafrir at jabber.org +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
Jay Wilton wrote:> gdb /usr/sbin/asterisk -c /tmp/core.4545 > GNU gdb 6.3-debian > ...CUT > This GDB was configured as "i386-linux"...Using host > libthread_db library "/lib/libthread_db.so.1". > > "/tmp/core.4545" is not a core dump: File format not > recognizedDoes the user running gdb have proper permissions to the core file? -- Russell Bryant Software Engineer Digium, Inc.