bbgen core dump with COMPACT statement in bb-hosts
xymon-4.3.0-beta2
I've been running quite happily for some time, then yesterday my web pages refuse to update.
hobbitlaunch.log reports:
--
Dewey
I've been running quite happily for some time, then yesterday my web pages refuse to update.
hobbitlaunch.log reports:
2009-07-01 01:00:06 Task bbdisplay terminated by signal 6Here's the back trace:
(gdb) btFurther investigation reveals:
#0 0xb8035430 in __kernel_vsyscall ()
#1 0xb7eb96d0 in raise () from /lib/tls/i686/cmov/libc.so.6
#2 0xb7ebb098 in abort () from /lib/tls/i686/cmov/libc.so.6
#3 0x0806cdd3 in sigsegv_handler (signum=11) at sig.c:57
#4
#5 0xb7f05613 in strlen () from /lib/tls/i686/cmov/libc.so.6
#6 0x0804f7ff in generate_compactitems (topstate=0xbfd4a334) at loaddata.c:422
#7 0x0804fb37 in load_state (sumhead=0x80807b8) at loaddata.c:619
#8 0x0804a268 in main (argc=4, argv=0xbfd50474) at bbgen.c:592
#6 0x0804f7ff in generate_compactitems (topstate=0xbfd4a334) at loaddata.c:422Oddly enough, GDB refuses to print "itm" ('No symbol "itm" in current context.') but from examining the source I have a strong suspicion that this was caused when I added the COMPACT clause to this line:
422 itm->members = (char *)malloc(3 + strlen(members));
(gdb) print members
$1 = 0x0
127.0.0.1 hobbit # bbd http://hobbit.sasser.ws/hobbit/ ssh COMPACT:hobbit=bbd,bbgen,bbtest,hobbitdChanging everything about COMPACT on that line gives no difference. Removing the "COMPACT..." stuff and restarting xymon allows regen.
--
Dewey