AW: [hobbit] Browser asks where to save bb-hostsvc.sh
Michael.Wiegard at materna.de
Michael.Wiegard at materna.de
Mon Feb 12 08:08:58 CET 2007
The apache-log really says "[Mon Feb 12 07:47:58 2007] [error] [client 172.30.96.5] Premature end of script headers: bb-hostsvc.sh, referer: http://hobbitzone.materna.de/"
But when I create a script containing the commands you've send I don't get any errors.
(Might be of interest: I'm using Solaris 10(/sparc) with hobbit 4.2.0)
Any other ideas?
Thanks,
Michael
-----Ursprüngliche Nachricht-----
Von: Marganne, Etienne [mailto:emarganne at be.tiauto.com]
Gesendet: Freitag, 9. Februar 2007 13:18
An: hobbit at hswn.dk
Betreff: RE: [hobbit] Browser asks where to save bb-hostsvc.sh
I ran what you asked me to run. It directly generated a core file.
The output of the stuff:
./try: line 6: 6775 Segmentation fault (core dumped)
~hobbit/cgi-bin/bb-hostsvc.sh
("try" is little script file which contains the command you aksed me to
type)
(no debugging symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".
Core was generated by `/home/hobbit/server/bin/hobbitsvc.cgi
--env=/home/hobbit/server/etc/hobbitserve'.
Program terminated with signal 11, Segmentation fault.
#0 0x400906b1 in ?? ()
(gdb) bt
#0 0x400906b1 in ?? ()
#1 0xbfffbf38 in ?? ()
#2 0x4000ce90 in ?? ()
#3 0x00000001 in ?? ()
#4 0x00000003 in ?? ()
#5 0x080639ae in ?? ()
#6 0x00000000 in ?? ()
#7 0xbfffbf38 in ?? ()
#8 0x0804cc80 in ?? ()
#9 0x00000000 in ?? ()
#10 0x080639e8 in ?? ()
#11 0x00000000 in ?? ()
#12 0x00000000 in ?? ()
#13 0x00000000 in ?? ()
#14 0x00000000 in ?? ()
#15 0x00000000 in ?? ()
#16 0x00000000 in ?? ()
#17 0x00000000 in ?? ()
#18 0x00000000 in ?? ()
#19 0x00000000 in ?? ()
#20 0x00000000 in ?? ()
#21 0x00000001 in ?? ()
#22 0x0000000a in ?? ()
---Type <return> to continue, or q <return> to quit---q
Quit
(gdb) q
I hope we will solve the problem ^_^
Etienne Marganne.
TI Automotive.
-----Original MMessage-----
From: Henrik Stoerner [mailto:henrik at hswn.dk]
Sent: vendredi 9 février 2007 12:41
To: hobbit at hswn.dk
Subject: Re: [hobbit] Browser asks where to save bb-hostsvc.sh
On Fri, Feb 09, 2007 at 12:33:54PM +0100, Henrik Stoerner wrote:
> On Fri, Feb 09, 2007 at 12:19:16PM +0100, Michael.Wiegard at materna.de
wrote:
> >
> > When a download the file there is NOTHING in it; size 0k.
>
> Does the HOSTNAME resolve in DNS ? Hobbit will attempt to perform a DNS
> lookup on the hostname when the IP is set to 0.0.0.0 .
>
> Are there any errors for the request in your apache error-log ?
Sorry, I just read the other mails in this thread that you get a
"Premature end of script headers ..." which is an indication that the
bb-hostsvc.sh CGI crashed.
So - time to debug this. On your Hobbit server, run these commands:
ulimit -c unlimited
QUERY_STRING="HOST=YOURHOSTNAME&SERVICE=info"
REQUEST_METHOD=GET
SCRIPT_NAME="bb-hostsvc.sh"
export QUERY_STRING REQUEST_METHOD SCRIPT_NAME
~hobbit/cgi-bin/bb-hostsvc.sh
Supposedly, this will crash - the last few linies it writes before the crash
are interesting.
Hopefully, it will also dump a core file in your current directory.
Analyse this with gdb:
gdb ~hobbit/server/bin/hobbitsvc.cgi ./core
and at the (gdb) prompt type the "bt" command:
(gdb) bt
and send me the output.
Regards,
Henrik
To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe at hswn.dk
The information contained in this transmission may contain privileged and confidential information. It is intended only for the use of the person(s) named above. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe at hswn.dk
More information about the Xymon
mailing list