Hi Henrik,
--On 14. Dezember 2005 16:32:24 +0100 Henrik Stoerner <henrik at hswn.dk> wrote:
On Wed, Dec 14, 2005 at 02:26:01PM +0100, Andreas Dembach wrote:
I'm running the 4.1.2.p1-1 .deb-package on a Debian Sarge box. After not getting any test results I realized that the bbtest-net daemon does not even start, but directly segfaults after startup. After playing around with strace I figured out that it has to do with the service definitions. After I moved /etc/hobbit/bb-services away, it starts perfectly, just complaining that it has to use internal defaults.
So the million dollar question is: What's in your bb-services file ?
Well, as I said, nothing too complex I guess, since it's the default file from the package. And even with the following file, it segfaults:
hobbit at linuxbox:~$ cat /etc/hobbit/bb-services service smtp send "mail\r\nquit\r\n" expect "220" options banner
hobbit at linuxbox:~$ bbtest-net --services --debug 2>&1 Command: bbtest-net '--services' '--debug' Environment BBLOCATION='' Environment CONNTEST='TRUE' Environment IPTEST_2_CLEAR_ON_FAILED_CONN='TRUE'
Service list dump
BBNETSVCS set to : smtp telnet ftp pop pop3 pop-3 ssh imap ssh1 ssh2 imap2 imap3 imap4 pop2 pop-2 nntp Service list dump
hobbit at linuxbox:~$ bbtest-net --report --ping --checkresponse Aborted (core dumped)
and the strace output of "strace bbtest-net --report --ping --checkresponse": ... open("/usr/lib/hobbit/server/tmp/ftp..status", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/hobbit/server/tmp/telnet..status", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/hobbit/server/tmp/smtp..status", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=35, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000 read(3, "hostname.mydomain.de 37 11345640"..., 4096) = 35 read(3, "", 4096) = 0 close(3) = 0 munmap(0x40018000, 4096) = 0 --- SIGSEGV (Segmentation fault) @ 0 (0) --- rt_sigaction(SIGSEGV, {SIG_DFL}, {0x4038f7a0, [], SA_RESTORER, 0x401bb6f8}, 8) = 0 fork() = 25368 --- SIGCHLD (Child exited) @ 0 (0) --- chdir("/usr/lib/hobbit/server/tmp") = 0 rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0 kill(25366, SIGABRT) = 0 --- SIGABRT (Aborted) @ 0 (0) --- +++ killed by SIGABRT (core dumped) +++
Is this a known problem for the Debian package? Could this also have to do with our bb-hosts file that I copied from a BB 1.9c server?
No, I use the Debian packages myself and dont have this problem. I suspect there is something different in your bb-services file (it's flagged as a configuration file, so dpkg will not overwrite it with a default file if you have changed it locally). If you have a bb-services.dpkg-dist file, is it any different ?
No, it's a fresh install.
Regards, Andreas
Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk