# gdb /var/cfengine/bin/cfexecd /etc/rc.d/init.d/core.11587 GNU gdb Red Hat Linux (5.1-1) Copyright 2001 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 "i386-redhat-linux"... Core was generated by `/var/cfengine/bin/cfexecd -g -d2'. Program terminated with signal 11, Segmentation fault. Reading symbols from /lib/libcrypto.so.2...done. Loaded symbols for /lib/libcrypto.so.2 Reading symbols from /lib/libnss_nis.so.2...done. Loaded symbols for /lib/libnss_nis.so.2 Reading symbols from /lib/i686/libpthread.so.0...done. warning: Unable to set global thread event mask: generic error [New Thread 8192 (LWP 9323)] Error while reading shared library symbols: Can't attach LWP 9323: No such process Reading symbols from /lib/i686/libm.so.6...done. Loaded symbols for /lib/i686/libm.so.6 Reading symbols from /lib/i686/libc.so.6...done. Loaded symbols for /lib/i686/libc.so.6 Reading symbols from /lib/libdl.so.2...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /lib/libnsl.so.1...done. Loaded symbols for /lib/libnsl.so.1 Reading symbols from /lib/libnss_files.so.2...done. Loaded symbols for /lib/libnss_files.so.2 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 #0 0x401cc6cf in chunk_free (ar_ptr=0x40280500, p=0x8164e00) at malloc.c:3229 3229 malloc.c: No such file or directory. in malloc.c (gdb) bt full #0 0x401cc6cf in chunk_free (ar_ptr=0x40280500, p=0x8164e00) at malloc.c:3229 hd = 671469776 sz = 968 idx = 16568 next = 0x81651c8 nextsz = 16568 prevsz = 671469776 bck = 0x8165308 fwd = 0x402805d0 islr = 0 sz = 968 next = 0x81651c8 bck = 0x8165308 islr = 0 #1 0x401cc424 in __libc_free (mem=0x8164ed8) at malloc.c:3155 mem = (void *) 0x402805d0 ar_ptr = (arena *) 0x40280500 p = 0x8164ed0 hook = (void (*)()) 0x2805d0d0 #2 0x0807c641 in __os_free () No symbol table info available. #3 0x080609ae in __dbenv_close () ---Type to continue, or q to quit--- No symbol table info available. #4 0x080ae36d in __db_close () No symbol table info available. #5 0x080b778b in __db_close_pp () No symbol table info available. #6 0x0804f6fd in CloseLocks () at locks.c:173 No locals. #7 0x0805033b in DeleteLock (name=0x815c900 "lock...cfd.cfd_2967") at locks.c:587 key = {data = 0x815c900, size = 20, ulen = 0, dlen = 0, doff = 0, flags = 0} #8 0x0804fbe1 in ReleaseCurrentLock () at locks.c:339 No locals. #9 0x0804b523 in ExitCleanly () at cfexecd.c:571 No locals. #10 0x40100b95 in pthread_sighandler (signo=15, ctx= {gs = 23, __gsh = 0, fs = 0, __fsh = 0, es = 43, __esh = 0, ds = 43, __dsh = 0, edi = 1073844224, esi = 4096, ebp = 1078634644, esp = 1078634596, ebx = 6, edx = 4096, ecx = 1073844224, eax = 3, trapno = 0, err = 0, eip = 1076019186, cs = 35, __csh = 0, eflags = 534, esp_at_signal = 1078634596, ss = 43, __ssh = 0, fpstate = 0x0, oldmask = 2147483648, cr2 = 0}) at signals.c:97 signo = 1076364752 [root@arapaho2 init.d]# gdb /var/cfengine/bin/cfexecd /etc/rc.d/init.d/core.11587 GNU gdb Red Hat Linux (5.1-1) Copyright 2001 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 "i386-redhat-linux"... Core was generated by `/var/cfengine/bin/cfexecd -g -d2'. Program terminated with signal 11, Segmentation fault. Reading symbols from /lib/libcrypto.so.2...done. Loaded symbols for /lib/libcrypto.so.2 Reading symbols from /lib/libnss_nis.so.2...done. Loaded symbols for /lib/libnss_nis.so.2 Reading symbols from /lib/i686/libpthread.so.0...done. warning: Unable to set global thread event mask: generic error [New Thread 8192 (LWP 9323)] Error while reading shared library symbols: Can't attach LWP 9323: No such process Reading symbols from /lib/i686/libm.so.6...done. Loaded symbols for /lib/i686/libm.so.6 Reading symbols from /lib/i686/libc.so.6...done. Loaded symbols for /lib/i686/libc.so.6 Reading symbols from /lib/libdl.so.2...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /lib/libnsl.so.1...done. Loaded symbols for /lib/libnsl.so.1 Reading symbols from /lib/libnss_files.so.2...done. Loaded symbols for /lib/libnss_files.so.2 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 #0 0x401cc6cf in chunk_free (ar_ptr=0x40280500, p=0x8164e00) at malloc.c:3229 3229 malloc.c: No such file or directory. in malloc.c (gdb) bt full #0 0x401cc6cf in chunk_free (ar_ptr=0x40280500, p=0x8164e00) at malloc.c:3229 hd = 671469776 sz = 968 idx = 16568 next = 0x81651c8 nextsz = 16568 prevsz = 671469776 bck = 0x8165308 fwd = 0x402805d0 islr = 0 sz = 968 next = 0x81651c8 bck = 0x8165308 islr = 0 #1 0x401cc424 in __libc_free (mem=0x8164ed8) at malloc.c:3155 mem = (void *) 0x402805d0 ar_ptr = (arena *) 0x40280500 p = 0x8164ed0 hook = (void (*)()) 0x2805d0d0 #2 0x0807c641 in __os_free () No symbol table info available. #3 0x080609ae in __dbenv_close () No symbol table info available. #4 0x080ae36d in __db_close () No symbol table info available. #5 0x080b778b in __db_close_pp () No symbol table info available. #6 0x0804f6fd in CloseLocks () at locks.c:173 No locals. #7 0x0805033b in DeleteLock (name=0x815c900 "lock...cfd.cfd_2967") at locks.c:587 key = {data = 0x815c900, size = 20, ulen = 0, dlen = 0, doff = 0, flags = 0} #8 0x0804fbe1 in ReleaseCurrentLock () at locks.c:339 No locals. #9 0x0804b523 in ExitCleanly () at cfexecd.c:571 No locals. #10 0x40100b95 in pthread_sighandler (signo=15, ctx= {gs = 23, __gsh = 0, fs = 0, __fsh = 0, es = 43, __esh = 0, ds = 43, __dsh = 0, edi = 1073844224, esi = 4096, ebp = 1078634644, esp = 1078634596, ebx = 6, edx = 4096, ecx = 1073844224, eax = 3, trapno = 0, err = 0, eip = 1076019186, cs = 35, __csh = 0, eflags = 534, esp_at_signal = 1078634596, ss = 43, __ssh = 0, fpstate = 0x0, oldmask = 2147483648, cr2 = 0}) at signals.c:97 signo = 1076364752 __value = 0x2805d0d0 #11 No locals. #12 0x4022bff2 in __libc_read () from /lib/i686/libc.so.6 No locals. #13 0x40107998 in __DTOR_END__ () from /lib/i686/libpthread.so.0 No symbol table info available. #14 0x401c7a56 in _IO_file_read (fp=0x8164910, buf=0x40019000, size=4096) at fileops.c:838 fp = (_IO_FILE *) 0x2805d0d0 #15 0x401c6c5d in _IO_new_file_underflow (fp=0x8164910) at fileops.c:542 count = 1076364752 #16 0x401c94f9 in _IO_default_uflow (fp=0x8164910) at genops.c:420 fp = (_IO_FILE *) 0x8164910 ch = 671469776 #17 0x401c852f in __uflow (fp=0x8164910) at genops.c:377 fp = (_IO_FILE *) 0x8164910 tmp = 0x402805d0 "?\005(@?\005(@\001N\026\b??\005(?\005(@?\005(@?\005(@?\005(@?\005(@?\005(@?\005(@?\005(@?\005(@?\005(@" #18 0x401bdd9d in _IO_getline_info (fp=0x8164910, buf=0x404acacc "cfengine:arapaho2: /etc/oraInventory.orig/Patches has permission 777", n=4056, delim=10, extract_delim=1, eof=0x0) at iogetline.c:71 ptr = 0x404acaf3 "ig/Patches has permission 777" ptr = 0x404acaf3 "ig/Patches has permission 777" #19 0x401bde7d in _IO_getline (fp=0x8164910, buf=0x404acacc "cfengine:arapaho2: /etc/oraInventory.orig/Patches has permission 777", n=4095, delim=10, extract_delim=1) at iogetline.c:41 ---Type to continue, or q to quit--- No locals. #20 0x401bccc4 in _IO_fgets (buf=0x404acacc "cfengine:arapaho2: /etc/oraInventory.orig/Patches has permission 777", n=4096, fp=0x8164910) at iofgets.c:50 _buffer = {__routine = 0x401010e0 <__funlockfile>, __arg = 0x8164910, __canceltype = 0, __prev = 0x0} _avail = 1 n = 4096 fp = (_IO_FILE *) 0x8164910 count = 1074794750 result = 0x404aa9f4 "$?J@??J@\020I\026\b\031?\023\b$?J@??\004\b??J@" old_error = 0 count = 1074794750 result = 0x404aa9f4 "$?J@??J@\020I\026\b\031?\023\b$?J@??\004\b??J@" old_error = 0 #21 0x0804d7a8 in ReadLine (buff=0x404acacc "cfengine:arapaho2: /etc/oraInventory.orig/Patches has permission 777", size=4096, fp=0x8164910) at read.c:49 buff = 0x404acacc "cfengine:arapaho2: /etc/oraInventory.orig/Patches has permission 777" size = 671469776 fp = (FILE *) 0x402805d0 #22 0x0804b843 in LocalExec (dummy=0x0) at cfexecd.c:685 pp = (FILE *) 0x8164910 line = "cfengine:arapaho2: /etc/oraInventory.orig/Patches has permission 777\000\000ssion 777\000\000ralQueries.jar has permission 777", '\000' , "?\224\000@", '\000' , ",?J@", '\000' , "\002", '\000' , "\001\000\000\000\000?\004\000\000\214?\025@?e\025@\004?\024@?y\001@\n\000\000\000T?(@\005\000\000\000"... filename = "/var/cfengine/outputs/cf_arapaho2_natinst_com_2005-02-07--16-00-58", '\000' sp = 0x40280500 "" cmd = "/var/cfengine/bin/cfagent -Dfrom_cfexecd", '\000' print = 135505689 starttime = 1107813658 fp = (FILE *) 0x81647a0 sigmask = {__val = {0 }} #23 0x400fdc6f in pthread_start_thread (arg=0x404adbe0) at manager.c:279 self = 0x404adbe0 request = {req_thread = 0x0, req_kind = REQ_CREATE, req_args = {create = {attr = 0x0, fn = 0, arg = 0x0, mask = {__val = { 0 }}}, free = {thread_id = 0}, exit = {code = 0}, post = 0x0}} outcome = (void *) 0x2805d0d0 (gdb) quit [root@arapaho2 init.d]#