Fatal signal caught!
list Dan Vande More
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
list Dan Vande More
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 <user-f3c4c62d9d50@xymon.invalid> 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
list Henrik Størner
▸
On Fri, Sep 16, 2005 at 02:41:14PM -0500, Dan Vande More wrote:
2005-09-16 14:33:12 Adding tcp test IP=<ip>, port=143, service=imap, silent=0
Aborted (core dumped)
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) print newtest->svcinfo->sendtxt
Cannot access memory at address 0x4Something's up with your service definitions. "newtest->svcinfo" is obviously bogus, which is why you get the segfault when it tries to reference newtest->svcinfo->sendtxt. Is "imap" listed if you run "bbtest-net --services" ? It should read Name : imap Sendtext: ABC123 LOGOUT\r\n Sendlen : 15 Exp.text: * OK Exp.len : 4 Exp.ofs : 0 Flags : 1 Port : 143 Also, check the ~hobbit/server/etc/bb-services file - is it readable by your hobbit users ? What's the content of it ? You can compare it with the one in the hobbit-4.1.1 sources (in the bbnet/ direcory). Henrik
list Dan Vande More
Heh, I guess we know what happens know if someone were to accidently use the bb-services file that comes from bb-gen instead of the one from hobbit:) That was my problem, I copied the real one (back?) over and it's working just fine. Thanks Henrik! Dan
▸
On 9/16/05, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:On Fri, Sep 16, 2005 at 02:41:14PM -0500, Dan Vande More wrote:2005-09-16 14:33:12 Adding tcp test IP=<ip>, port=143, service=imap, silent=0 Aborted (core dumped) 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) print newtest->svcinfo->sendtxt Cannot access memory at address 0x4Something's up with your service definitions. "newtest->svcinfo" is obviously bogus, which is why you get the segfault when it tries to reference newtest->svcinfo->sendtxt. Is "imap" listed if you run "bbtest-net --services" ? It should read Name : imap Sendtext: ABC123 LOGOUT\r\n Sendlen : 15 Exp.text: * OK Exp.len : 4 Exp.ofs : 0 Flags : 1 Port : 143 Also, check the ~hobbit/server/etc/bb-services file - is it readable by your hobbit users ? What's the content of it ? You can compare it with the one in the hobbit-4.1.1 sources (in the bbnet/ direcory). Henrik