[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Found where it crashes!
From: |
Hans Deragon |
Subject: |
Found where it crashes! |
Date: |
Wed, 24 Sep 2003 12:36:31 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030905 |
Hi guys.
Well it looks like db is off the hook. Thanks to Eric Sorenson and is ¨file¨
tip, I got the full trace:
---->
Edit action: AutoCreate
Edit action: BeginGroupIfNoLineMatching
---Type <return> to continue, or q <return> to quit---
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1076587584 (LWP 15291)]
0x0805fbfc in LocateItemMatchingRegExp (list=0x0,
string=0xbfff8eb0 "ssh-dss.*root.kickstart") at item-ext.c:394
394 Debug("LocateItemMatchingRexExp(%s,%s)\n",list->name,string);
(gdb) backtrace
#0 0x0805fbfc in LocateItemMatchingRegExp (list=0x0,
string=0xbfff8eb0 "ssh-dss.*root.kickstart") at item-ext.c:394
#1 0x080691dc in DoEditFile (ptr=0x81408c0,
filename=0x8140910 "/root/.ssh/authorized_keys2") at edittools.c:927
#2 0x08068212 in WrapDoEditFile (ptr=0x81408c0,
filename=0x8140910 "/root/.ssh/authorized_keys2") at edittools.c:329
#3 0x08053300 in EditFiles () at do.c:2145
---Type <return> to continue, or q <return> to quit---
#4 0x0804d1ea in DoTree (passes=2, info=0x808f40f "Main Tree")
at cfagent.c:1239
#5 0x0804af21 in main (argc=4, argv=0xbfffe0f4) at cfagent.c:188
#6 0x420156a4 in __libc_start_main () from /lib/tls/libc.so.6
(gdb) print string
$1 = 0xbfff8eb0 "ssh-dss.*root.kickstart"
(gdb) print list->name
Cannot access memory at address 0x4
(gdb) print list
$2 = (struct Item *) 0x0
<----
... list is null. The worst thing is that cfagent only crashes when -d2 is
on! list is only referenced in the Debug() statement. I tried without -d2 and
cfagent runs fine.
I am not sure if this is possible, but can we wrap the Debug macro around an
exception catcher, catch any error, print a serious error message with meaning
info and abort? In Java I could suggest, but not in C.
Now why list is null, I do not know. I have not investigated further.
Best regards,
Hans Deragon
--
Consultant en informatique/Software Consultant
Deragon Informatique inc. Open source:
http://www.deragon.biz http://swtmvcwrapper.sourceforge.net
mailto://hans@deragon.biz http://autopoweroff.sourceforge.net
- Found where it crashes!,
Hans Deragon <=