|
From: Borse, G. <gan...@cr...> - 2008-05-05 14:06:42
|
Hi, My application dumps core due to some memory leaks or memory corruption. To investigate this, I am running my application with valgrind using following options, to find out memory leaks & related problems in my application. valgrind -v --leak-check=full --time-stamp=yes --tool=memcheck lcsvrD When my application crashes because of this memory problem, a core is getting generated with name of vgcore.<pid>. This core when I try to view using the gdb on Linux, I do not get any information. My application is compiled with debugging information & is a debug binary. I get only following output: :~/scripts> gdb ../bin/lcsvrD -c vgcore.12429 GNU gdb 6.3 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-suse-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1". Core was generated by `'. Program terminated with signal 11, Segmentation fault. Cannot access memory at address 0x748f488 #0 0x04000972 in ?? () (gdb) where #0 0x04000972 in ?? () Cannot access memory at address 0x1b21a3a0 (gdb) bt #0 0x04000972 in ?? () Cannot access memory at address 0x1b21a3a0 file ./vgcore.12429 ./vgcore.12429: ELF 32-bit LSB core file Intel 80386, version 1 (SYSV), SVR4-style, from 'lcsvrD' Once strange thing, you can see is that when GDB opens this core, it is not able to determine the binary name from which this core is generated. But file command gives correct binary name. But, the core generated by my application without running with Valgrind can be viewed correctly with GDB. Is there anything extra I need to do here to view this core? Please help. Thanks and Regards, Ganesh ============================================================================== Please access the attached hyperlink for an important electronic communications disclaimer: http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html ============================================================================== |