Fatal signal caught!

Dan Vande More bigdan at gmail.com
Fri Sep 16 21:41:14 CEST 2005


Here's an update.

If I only have one server in the bb-hosts bbtest-net doesn't fail with
any of these services:

<ip>     hostname # ntp dns conn ldap ssh2 ssh1 bbnet pop rsync bbd
ftps telnets smtps pop3s imaps nntps clamd ldaps vnc

If I use *any* of the other services, that is:

ftp
ssh
telnet
smtp
imap
imap2
imap3
imap4

I get an immediate:

2005-09-16 14:33:12 Adding tcp test IP=<ip>, port=143, service=imap, silent=0
Aborted (core dumped)

This might help too:

monitor at devel:/home/monitor/server/bin$ gdb bbtest-net
GNU gdb 2002-04-01-cvs
Copyright 2002 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-linux"...
(gdb) run
Starting program: /home/monitor/server/bin/bbtest-net

Program received signal SIGSEGV, Segmentation fault.
0x08050571 in add_tcp_test (ip=0x809806c "<ip>", port=143,
service=0xbffff9fc "imap", sslopt=0x0, silent=0, reqmsg=0x0, priv=0x0,
    datacallback=0, finalcallback=0) at contest.c:182
182             newtest->sendtxt = (reqmsg ? reqmsg :
newtest->svcinfo->sendtxt);
(gdb) backtrace
#0  0x08050571 in add_tcp_test (ip=0x809806c "<ip>", port=143,
service=0xbffff9fc "imap", sslopt=0x0, silent=0, reqmsg=0x0,
    priv=0x0, datacallback=0, finalcallback=0) at contest.c:182
#1  0x0804fb84 in main (argc=1, argv=0xbffffae4) at bbtest-net.c:2214
(gdb) frame 0
#0  0x08050571 in add_tcp_test (ip=0x809806c "<ip>", port=143,
service=0xbffff9fc "imap", sslopt=0x0, silent=0, reqmsg=0x0,
    priv=0x0, datacallback=0, finalcallback=0) at contest.c:182
182             newtest->sendtxt = (reqmsg ? reqmsg :
newtest->svcinfo->sendtxt);
(gdb) print buf
No symbol "buf" in current context.
(gdb) print reqmsg
$1 = (unsigned char *) 0x0
(gdb) print newtest->sendtxt
$2 = (unsigned char *) 0x0
(gdb) print newtest->svcinfo->sendtxt
Cannot access memory at address 0x4


Whoa! Why's it looking for 0x4? Is that a bug?

Thanks

Dan

On 9/16/05, Dan Vande More <bigdan at gmail.com> wrote:
> Hello all,
> 
> Looks like I found the favorite crash in hobbit. I am running 4.1.1
> and just "upgraded" from bb. I followed the bb->hobbit instructions to
> the t and everything appears to be working except for this test ( and
> the tests associated with it ).
> I tried commenting out everything but one line in my bb-hosts, but it
> just seems like if I have more than one test it croaks with a seg
> fault.
> 
> Here:
> 
> Environment BBLOCATION=''
> Environment CONNTEST='TRUE'
> Environment IPTEST_2_CLEAR_ON_FAILED_CONN='TRUE'
> 
> Service list dump
> ./bbcmd bbtest-net --debug --ping --checkresponse
> (skip few dozen lines)
> 2005-09-16 11:11:20 Got DNS result for host server : <ip>
> 2005-09-16 11:11:20 Adding tcp test IP=<ip>, port=143, service=imap, silent=0
> Aborted (core dumped)
> 
> 
> (gdb) file bbtest-net
> Reading symbols from bbtest-net...done.
> unknown option `--debug'
> (gdb) run
> Starting program: /home/monitor/server/bin/bbtest-net
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x08050571 in add_tcp_test (ip=0x809806c "24.220.8.53", port=143,
> service=0xbffff9fc "imap", sslopt=0x0, silent=0, reqmsg=0x0, priv=0x0,
>     datacallback=0, finalcallback=0) at contest.c:182
> 182             newtest->sendtxt = (reqmsg ? reqmsg :
> newtest->svcinfo->sendtxt);
> 
> 
> It dies on the first host it loads the tests for. Here is my first host:
> 
> page mail Mail servers
> group-compress
> <ip>     mailserver # smtp pop3 imap ssh !dns !ftp
> 
> Anyone have any hints on what to do?
> What happens on this line: newtest->sendtxt = (reqmsg ? reqmsg :
> newtest->svcinfo->sendtxt); ?
> If I knew C, I'd contribute:)
> 
> Thanks
> 
> Dan
>



More information about the Xymon mailing list