bug-ddd
[Top][All Lists]
Advanced

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

DDD Terminated Abnormally "*** glibc detected *** double free or corrupt


From: Dean N. Williams
Subject: DDD Terminated Abnormally "*** glibc detected *** double free or corruption (out): 0xbff99978 ***"
Date: Tue, 23 Aug 2005 10:34:12 -0400
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050716)

Dear DDD bug report group,

   I am a long time user of DDD and have been very happy with it.

Recently, I've upgraded my Red Hat Linux platform to RHEL WS 4.0 and I've built my application and DDD (i.e., version 3.3.9 and 3.3.11) with various flavors of gnu gcc (i.e., versions 3.4.3 to 4.0.1). When running my application it seems to work just fine. Also, when running my application in the DDD environment, it too seems to run just fine.

The problem I'm having is when I try to look at a C routine in DDD. That is, after running my program to a certain point, I enter the name of the routine in which I want to set a break point. After entering the name I select the "Lookup" button, then I receive a popup window with the following verbiage "GDB terminated abnormally (Aborted)". In the input/output window I see:

*** glibc detected *** double free or corruption (out): 0xbff99978 ***

Aborted

   How do I resolve this "glibc detected" issue and resume my use of DDD?

Thanks in advance and best regards,
   Dean

P.S. "I've attached the ~.ddd/log file"

GNU DDD 3.3.11 (i686-pc-linux-gnu)
Copyright (C) 1995-1999 Technische Universität Braunschweig, Germany.
Copyright (C) 1999-2001 Universität Passau, Germany.
Copyright (C) 2001 Universität des Saarlandes, Germany.
Copyright (C) 2001-2004 Free Software Foundation, Inc.

Compiled with GCC 4.0.1, GNU libc 2.3
Requires X11R6, Xt11R6, Motif 2.2.3 (Motif Version 2.2.3)
Includes XPM 3.4.11, Athena Panner (7000002L), DDD core
Built 2005-08-23 by Dean N. Williams <williams13@llnl.gov>.
$  ddd python
+  /bin/sh -c 'exec gdb -q -fullname '\''python'\'''
#  Hello, world!
#  Opening session "1017afb14d157000112480556400000051010073"...
#  Enabling core dumps...
#  Enabling core dumps...done.
#  Running GDB (pid 28429, tty /dev/pts/34)...
#  Current language: C/C++
#  Searching "vsllib/ddd.vsl"...
#  Trying "/pcmdi/williams/.ddd/vsllib/ddd.vsl"
#  Trying "/pcmdi/williams/opt/share/ddd-3.3.11/vsllib/ddd.vsl"
#  Searching 
"vsllib/ddd.vsl"..."/pcmdi/williams/opt/share/ddd-3.3.11/vsllib/ddd.vsl".
#  Creating "/pcmdi/williams/.ddd/"...
#  Creating "/pcmdi/williams/.ddd/"...done.
#  Creating "/pcmdi/williams/.ddd/sessions/"...
#  Creating "/pcmdi/williams/.ddd/sessions/"...done.
#  Creating "/pcmdi/williams/.ddd/themes/"...
#  Creating "/pcmdi/williams/.ddd/themes/"...done.
#  Creating 
"/pcmdi/williams/.ddd/sessions/1017afb14d157000112480556400000051010073/"...
#  Creating 
"/pcmdi/williams/.ddd/sessions/1017afb14d157000112480556400000051010073/"...done.
#  Saving session in 
"/pcmdi/williams/.ddd/sessions/1017afb14d157000112480556400000051010073/init"...
#  Saving session in 
"/pcmdi/williams/.ddd/sessions/1017afb14d157000112480556400000051010073/init"...done.
2005.08.23 09:59:26
<- "(no debugging symbols found)\n"
   "Using host libthread_db library \"/lib/tls/libthread_db.so.1\".\n"
   "(gdb) "
2005.08.23 09:59:26
-> "set prompt (gdb) \n"
2005.08.23 09:59:26
<- "(gdb) "
2005.08.23 09:59:26
-> "set height 0\n"
2005.08.23 09:59:26
<- "(gdb) "
2005.08.23 09:59:26
-> "set width 0\n"
2005.08.23 09:59:26
<- "(gdb) "
2005.08.23 09:59:26
-> "set annotate 1\n"
2005.08.23 09:59:26
<- "(gdb) "
2005.08.23 09:59:26
-> " set verbose off\n"
2005.08.23 09:59:26
<- "(gdb) "
2005.08.23 09:59:26
-> "info line\n"
2005.08.23 09:59:26
<- "No line number information available.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "list\n"
2005.08.23 09:59:26
<- "No symbol table is loaded.  Use the \"file\" command.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "info line\n"
2005.08.23 09:59:26
<- "No line number information available.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "output 4711\n"
2005.08.23 09:59:26
<- "4711(gdb) "
2005.08.23 09:59:26
-> "show language\n"
2005.08.23 09:59:26
<- "The current source language is \"auto; currently c\".\n"
   "(gdb) "
2005.08.23 09:59:26
-> "show version\n"
2005.08.23 09:59:26
<- "GNU gdb Red Hat Linux (6.3.0.0-0.31rh)\n"
   "Copyright 2004 Free Software Foundation, Inc.\n"
   "GDB is free software, covered by the GNU General Public License, and you 
are\n"
   "welcome to change it and/or distribute copies of it under certain 
conditions.\n"
   "Type \"show copying\" to see the conditions.\n"
   "There is absolutely no warranty for GDB.  Type \"show warranty\" for 
details.\n"
   "This GDB was configured as \"i386-redhat-linux-gnu\".\n"
   "(gdb) "
2005.08.23 09:59:26
-> "pwd\n"
2005.08.23 09:59:26
<- "Working directory /pcmdi/williams/wrk/Packages/vcs.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "info breakpoints\n"
2005.08.23 09:59:26
<- "No breakpoints or watchpoints.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "show history filename\n"
2005.08.23 09:59:26
<- "The filename in which to record the command history is 
\"/pcmdi/williams/wrk/Packages/vcs/.gdb_history\".\n"
   "(gdb) "
2005.08.23 09:59:26
-> "show history size\n"
2005.08.23 09:59:26
<- "The size of the command history is 256.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "info source\n"
2005.08.23 09:59:26
<- "No current source file.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "info sources\n"
2005.08.23 09:59:26
<- "No symbol table is loaded.  Use the \"file\" command.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "info line main\n"
2005.08.23 09:59:26
<- "No line number information available for address 0x8054e14 <main>\n"
   "(gdb) "
2005.08.23 09:59:26
-> "info source\n"
2005.08.23 09:59:26
<- "No current source file.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "info line MAIN\n"
2005.08.23 09:59:26
<- "Function \"MAIN\" not defined.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "info files\n"
2005.08.23 09:59:26
<- "Symbols from \"/pcmdi/williams/wrk/cdat/bin/python\".\n"
   "Local exec file:\n"
   "\t`/pcmdi/williams/wrk/cdat/bin/python\', file type elf32-i386.\n"
   "\tEntry point: 0x8054d70\n"
   "\t0x08048114 - 0x08048127 is .interp\n"
   "\t0x08048128 - 0x08048148 is .note.ABI-tag\n"
   "\t0x08048148 - 0x0804a2a8 is .hash\n"
   "\t0x0804a2a8 - 0x0804e798 is .dynsym\n"
   "\t0x0804e798 - 0x080531a9 is .dynstr\n"
   "\t0x080531aa - 0x08053a48 is .gnu.version\n"
   "\t0x08053a48 - 0x08053b48 is .gnu.version_r\n"
   "\t0x08053b48 - 0x08053b70 is .rel.dyn\n"
   "\t0x08053b70 - 0x08054160 is .rel.plt\n"
   "\t0x08054160 - 0x08054177 is .init\n"
   "\t0x08054178 - 0x08054d68 is .plt\n"
   "\t0x08054d70 - 0x080deee4 is .text\n"
   "\t0x080deee4 - 0x080deefe is .fini\n"
   "\t0x080def00 - 0x080f0e50 is .rodata\n"
   "\t0x080f0e50 - 0x080f0e54 is .eh_frame\n"
   "\t0x080f1000 - 0x080f1008 is .ctors\n"
   "\t0x080f1008 - 0x080f1010 is .dtors\n"
   "\t0x080f1010 - 0x080f1014 is .jcr\n"
   "\t0x080f1014 - 0x080f10fc is .dynamic\n"
   "\t0x080f10fc - 0x080f1100 is .got\n"
   "\t0x080f1100 - 0x080f1404 is .got.plt\n"
   "\t0x080f1420 - 0x081167f8 is .data\n"
   "\t0x08116800 - 0x08119a14 is .bss\n"
   "(gdb) "
2005.08.23 09:59:26
-> "info line main_\n"
2005.08.23 09:59:26
<- "Function \"main_\" not defined.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "info program\n"
2005.08.23 09:59:26
<- "The program being debugged is not being run.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "info line MAIN_\n"
2005.08.23 09:59:26
<- "Function \"MAIN_\" not defined.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "info source\n"
2005.08.23 09:59:26
<- "No current source file.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "info line main__\n"
2005.08.23 09:59:26
<- "Function \"main__\" not defined.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "info source\n"
2005.08.23 09:59:26
<- "No current source file.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "info line MAIN__\n"
2005.08.23 09:59:26
<- "Function \"MAIN__\" not defined.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "info source\n"
2005.08.23 09:59:26
<- "No current source file.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "info line _main\n"
2005.08.23 09:59:26
<- "Function \"_main\" not defined.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "info source\n"
2005.08.23 09:59:26
<- "No current source file.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "info line _MAIN\n"
2005.08.23 09:59:26
<- "Function \"_MAIN\" not defined.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "info source\n"
2005.08.23 09:59:26
<- "No current source file.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "info line __main\n"
2005.08.23 09:59:26
<- "Function \"__main\" not defined.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "info source\n"
2005.08.23 09:59:26
<- "No current source file.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "info line __MAIN\n"
2005.08.23 09:59:26
<- "Function \"__MAIN\" not defined.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "info source\n"
2005.08.23 09:59:26
<- "No current source file.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "info line my_main\n"
2005.08.23 09:59:26
<- "Function \"my_main\" not defined.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "info source\n"
2005.08.23 09:59:26
<- "No current source file.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "info line the_main\n"
2005.08.23 09:59:26
<- "Function \"the_main\" not defined.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "info source\n"
2005.08.23 09:59:26
<- "No current source file.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "info line vxworks_main\n"
2005.08.23 09:59:26
<- "Function \"vxworks_main\" not defined.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "info source\n"
2005.08.23 09:59:26
<- "No current source file.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "info line main_vxworks\n"
2005.08.23 09:59:26
<- "Function \"main_vxworks\" not defined.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "set confirm off\n"
2005.08.23 09:59:26
<- "(gdb) "
2005.08.23 09:59:26
-> "source /tmp/dddHs7dkn\n"
2005.08.23 09:59:26
<- "(gdb) "
2005.08.23 09:59:26
-> "info breakpoints\n"
2005.08.23 09:59:26
<- "No breakpoints or watchpoints.\n"
   "(gdb) "
2005.08.23 09:59:26
-> "info source\n"
2005.08.23 09:59:26
<- "No current source file.\n"
   "(gdb) "
2005.08.23 09:59:27
-> "# reset\n"
2005.08.23 09:59:27
<- "(gdb) "
2005.08.23 09:59:27
-> "info breakpoints\n"
2005.08.23 09:59:27
<- "No breakpoints or watchpoints.\n"
   "(gdb) "
2005.08.23 09:59:27
-> "display\n"
2005.08.23 09:59:27
<- "(gdb) "
2005.08.23 09:59:27
-> "info display\n"
2005.08.23 09:59:27
<- "There are no auto-display expressions now.\n"
   "(gdb) "
2005.08.23 09:59:27
-> "set environment TERM dumb\n"
2005.08.23 09:59:27
<- "(gdb) "
2005.08.23 09:59:27
-> "info source\n"
2005.08.23 09:59:27
<- "No current source file.\n"
   "(gdb) "
2005.08.23 09:59:27
-> "info files\n"
2005.08.23 09:59:27
<- "Symbols from \"/pcmdi/williams/wrk/cdat/bin/python\".\n"
   "Local exec file:\n"
   "\t`/pcmdi/williams/wrk/cdat/bin/python\', file type elf32-i386.\n"
   "\tEntry point: 0x8054d70\n"
   "\t0x08048114 - 0x08048127 is .interp\n"
   "\t0x08048128 - 0x08048148 is .note.ABI-tag\n"
   "\t0x08048148 - 0x0804a2a8 is .hash\n"
   "\t0x0804a2a8 - 0x0804e798 is .dynsym\n"
   "\t0x0804e798 - 0x080531a9 is .dynstr\n"
   "\t0x080531aa - 0x08053a48 is .gnu.version\n"
   "\t0x08053a48 - 0x08053b48 is .gnu.version_r\n"
   "\t0x08053b48 - 0x08053b70 is .rel.dyn\n"
   "\t0x08053b70 - 0x08054160 is .rel.plt\n"
   "\t0x08054160 - 0x08054177 is .init\n"
   "\t0x08054178 - 0x08054d68 is .plt\n"
   "\t0x08054d70 - 0x080deee4 is .text\n"
   "\t0x080deee4 - 0x080deefe is .fini\n"
   "\t0x080def00 - 0x080f0e50 is .rodata\n"
   "\t0x080f0e50 - 0x080f0e54 is .eh_frame\n"
   "\t0x080f1000 - 0x080f1008 is .ctors\n"
   "\t0x080f1008 - 0x080f1010 is .dtors\n"
   "\t0x080f1010 - 0x080f1014 is .jcr\n"
   "\t0x080f1014 - 0x080f10fc is .dynamic\n"
   "\t0x080f10fc - 0x080f1100 is .got\n"
   "\t0x080f1100 - 0x080f1404 is .got.plt\n"
   "\t0x080f1420 - 0x081167f8 is .data\n"
   "\t0x08116800 - 0x08119a14 is .bss\n"
   "(gdb) "
2005.08.23 09:59:27
-> "info program\n"
2005.08.23 09:59:27
<- "The program being debugged is not being run.\n"
   "(gdb) "
#  Creating options in "/pcmdi/williams/.ddd/init"...
#  Creating options in "/pcmdi/williams/.ddd/init"...done.
2005.08.23 09:59:27
-> "help detach\n"
2005.08.23 09:59:27
<- "Detach a process or file previously attached.\n"
   "If a process, it is no longer traced, and it continues its execution.  If\n"
   "you were debugging a file, the file is closed and gdb no longer accesses 
it.\n"
   "(gdb) "
#  Opening session "1017afb14d157000112480556400000051010073"...done.
#  Welcome to DDD 3.3.11 "Rhubarb" (i686-pc-linux-gnu)
2005.08.23 09:59:27
-> "help run\n"
2005.08.23 09:59:27
<- "Start debugged program.  You may specify arguments to give it.\n"
   "Args may include \"*\", or \"[...]\"; they are expanded using \"sh\".\n"
   "Input and output redirection with \">\", \"<\", or \">>\" are also 
allowed.\n"
   "\n"
   "With no arguments, uses arguments last specified (with \"run\" or \"set 
args\").\n"
   "To cancel previous arguments and run with no arguments,\n"
   "use \"set args\" without arguments.\n"
   "(gdb) "
2005.08.23 09:59:27
-> "help step\n"
2005.08.23 09:59:27
<- "Step program until it reaches a different source line.\n"
   "Argument N means do this N times (or till program stops for another 
reason).\n"
   "(gdb) "
2005.08.23 09:59:27
-> "help stepi\n"
2005.08.23 09:59:27
<- "Step one instruction exactly.\n"
   "Argument N means do this N times (or till program stops for another 
reason).\n"
   "(gdb) "
2005.08.23 09:59:27
-> "help next\n"
2005.08.23 09:59:27
<- "Step program, proceeding through subroutine calls.\n"
   "Like the \"step\" command as long as subroutine calls do not happen;\n"
   "when they do, the call is treated as one instruction.\n"
   "Argument N means do this N times (or till program stops for another 
reason).\n"
   "(gdb) "
2005.08.23 09:59:27
-> "help nexti\n"
2005.08.23 09:59:27
<- "Step one instruction, but proceed through subroutine calls.\n"
   "Argument N means do this N times (or till program stops for another 
reason).\n"
   "(gdb) "
2005.08.23 09:59:27
-> "help until\n"
2005.08.23 09:59:27
<- "Execute until the program reaches a source line greater than the current\n"
   "or a specified location (same args as break command) within the current 
frame.\n"
   "(gdb) "
2005.08.23 09:59:27
-> "help finish\n"
2005.08.23 09:59:27
<- "Execute until selected stack frame returns.\n"
   "Upon return, the value returned is printed and put in the value history.\n"
   "(gdb) "
2005.08.23 09:59:27
-> "help cont\n"
2005.08.23 09:59:27
<- "Continue program being debugged, after signal or breakpoint.\n"
   "If proceeding from breakpoint, a number N may be used as an argument,\n"
   "which means to set the ignore count of that breakpoint to N - 1 (so that\n"
   "the breakpoint won\'t break until the Nth time it is reached).\n"
2005.08.23 09:59:27
<- "(gdb) "
2005.08.23 09:59:27
-> "help signal\n"
2005.08.23 09:59:27
<- "Continue program giving it signal specified by the argument.\n"
   "An argument of \"0\" means continue program without giving it a signal.\n"
2005.08.23 09:59:27
<- "(gdb) "
2005.08.23 09:59:27
-> "help kill\n"
2005.08.23 09:59:27
<- "Kill execution of program being debugged.\n"
   "(gdb) "
2005.08.23 09:59:27
-> "help up\n"
2005.08.23 09:59:27
<- "Select and print stack frame that called this one.\n"
   "An argument says how many frames up to go.\n"
2005.08.23 09:59:27
<- "(gdb) "
2005.08.23 09:59:27
-> "help down\n"
2005.08.23 09:59:27
<- "Select and print stack frame called by this one.\n"
   "An argument says how many frames down to go.\n"
2005.08.23 09:59:27
<- "(gdb) "
2005.08.23 09:59:40
-> "set environment TERM dumb\n"
2005.08.23 09:59:40
<- "(gdb) "
2005.08.23 09:59:40
-> "run\n"
2005.08.23 09:59:40
<- "(no debugging symbols found)\n"
2005.08.23 09:59:40
<- "[Thread debugging using libthread_db enabled]\n"
2005.08.23 09:59:40
<- "[New Thread -1208083808 (LWP 28435)]\n"
2005.08.23 09:59:40
<- "(no debugging symbols found)\n"
2005.08.23 09:59:40
<- "(no debugging symbols found)\n"
2005.08.23 09:59:40
<- "(no debugging symbols found)\n"
2005.08.23 09:59:40
<- "(no debugging symbols found)\n"
2005.08.23 09:59:40
<- "(no debugging symbols found)\n"
2005.08.23 09:59:40
<- "Python 2.4.1 (#1, Aug 23 2005, 08:13:37) \n"
   "[GCC 4.0.1] on linux2\n"
2005.08.23 09:59:40
<- "Type \"help\", \"copyright\", \"credits\" or \"license\" for more 
information.\n"
2005.08.23 09:59:40
<- "(no debugging symbols found)\n"
2005.08.23 09:59:40
<- "(no debugging symbols found)\n"
2005.08.23 09:59:40
<- ">>> "
2005.08.23 09:59:51
-> "import vcs, cdms\n"
2005.08.23 09:59:51
-> "f=cdms.open(\'../dat/clt.nc\')\n"
2005.08.23 09:59:51
-> "s=f(\'clt\')\n"
2005.08.23 09:59:51
-> "x=vcs.init()\n"
2005.08.23 09:59:53
<- ">>> "
2005.08.23 09:59:53
<- ">>> "
2005.08.23 09:59:53
<- ">>> "
2005.08.23 09:59:53
<- ">>> "
2005.08.23 10:00:04
-> "\003"
#  Cont: waiting until GDB gets ready
2005.08.23 10:00:04
<- "\n"
2005.08.23 10:00:04
<- "Program received signal SIGINT, Interrupt.\n"
2005.08.23 10:00:04
<- "[Switching to Thread -1208083808 (LWP 28435)]\n"
2005.08.23 10:00:04
<- "0x007337a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2\n"
2005.08.23 10:00:04
<- "(gdb) "
2005.08.23 10:00:04
-> "info breakpoints\n"
2005.08.23 10:00:04
<- "No breakpoints or watchpoints.\n"
2005.08.23 10:00:04
<- "(gdb) "
2005.08.23 10:00:04
-> "info source\n"
2005.08.23 10:00:04
<- "No current source file.\n"
2005.08.23 10:00:04
<- "(gdb) "
#  List: waiting until GDB gets ready
2005.08.23 10:00:04
-> "cont\n"
2005.08.23 10:00:04
-> "\003"
#  List: waiting until GDB gets ready
#  Cont: waiting until GDB gets ready
2005.08.23 10:00:04
<- "\n"
   "Program received signal SIGINT, Interrupt.\n"
   "0x007337a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2\n"
#  List: waiting until GDB gets ready
2005.08.23 10:00:04
<- "(gdb) "
2005.08.23 10:00:04
-> "info breakpoints\n"
2005.08.23 10:00:04
<- "No breakpoints or watchpoints.\n"
2005.08.23 10:00:04
<- "(gdb) "
2005.08.23 10:00:04
-> "info line \'PyVCS_plot\'\n"
2005.08.23 10:00:04
<- "*** glibc detected *** "
2005.08.23 10:00:04
<- "double free or corruption (out)"
2005.08.23 10:00:04
<- ": 0x"
2005.08.23 10:00:04
<- "bff99978"
2005.08.23 10:00:04
<- " ***\n"
#  Running GDB (pid 28429, tty /dev/pts/34)...Aborted.
#  Saving options in "/pcmdi/williams/.ddd/init"...
#  Saving options in "/pcmdi/williams/.ddd/init"...done.
#  Deleting session "1017afb14d157000112480556400000051010073"...
#  Current session is [none].
#  Deleting session "1017afb14d157000112480556400000051010073"...done.
#  Saving history in "/pcmdi/williams/.ddd/history"...
#  Saving history in "/pcmdi/williams/.ddd/history"...done.
#  Thanks for using DDD 3.3.11!

reply via email to

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