After debugging together with some colleagues, I found a solution for this problem.
In the source code of report.c and snapshot.c (in the map ./web) there is a declaration in the main function: "char htmldelim[20];". In the same main function we can find: " sprintf(htmldelim, "xymonrep-%u-%u", (int)getpid(), (unsigned int)getcurrenttime(NULL));"
Because the size of "char htmldelim[20];" is not sufficient enough (requires around 25 or so) this process will crash. I changed this char value into 100 and after a "make && make install" command the issue seems to be resolved!
Kind Regards,
Rolf Biesbroek University Twente
Hi all -
I'm running into a problem creating the availability report and the snapshot
on 4.3.0-beta2. Every time I run either command I get an "Internal Server
Error". The apache logs show "Premature end of script headers" and the
syslog shows that a buffer overflow was detected.
The system its on is a Ubuntu 9.04 64b server.
I have gone through the archives and based on what i did find i
double-checked permissions(all were good)..
Any ideas?
The other option I have is to try to recreate the report manually.. Any
ideas what datasets go into the report?
thanks!
--
--==[ Bob Gordon ]==--
In <649179590B7FBC46B67B68E6F2BCBEC705E8ABB7 at EX01.service.utwente.nl> <R.Biesbroek at icts.utwente.nl> writes:
In the source code of report.c and snapshot.c (in the map ./web) there is a declaration in the main function: "char htmldelim[20];". In the same main function we can find: " sprintf(htmldelim, "xymonrep-%u-%u", (int)getpid(), (unsigned int)getcurrenttime(NULL));"
Because the size of "char htmldelim[20];" is not sufficient enough (requires around 25 or so) this process will crash.
Thank You! Very nice catch - good to have this done before the 4.3.0 release.
There is also a potential crash that can be induced by feeding the report CGI a long "style" setting. I've fixed that as well in a commit just now.
Regards, Henrik
participants (2)
-
henrik@hswn.dk
-
R.Biesbroek@icts.utwente.nl