PATCH: hobbitlaunch segfaults on empty task list

Cleaver, Japheth jcleaver at soe.sony.com
Mon Mar 23 21:43:52 CET 2009


When hobbitlaunch is started with an empty list of tasks to run (or an
empty file, period), it segfaults. This patch resolves AFAICT, letting
hobbitlaunch sleep and try again at its regular interval. Seems to work
OK on my systems.

 

Regards,

 

Japheth Cleaver

 

 

 

 

strace below.

==========================================================

mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7f7e000

write(1, "2009-03-23 12:48:04 Opening file"..., 622009-03-23 12:48:04
Opening file /etc/xymon/hobbitlaunch.cfg1

) = 62

open("/etc/xymon/hobbitlaunch.cfg1", O_RDONLY|O_LARGEFILE) = 3

fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0

fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0

mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7f7d000

read(3, "", 4096)                       = 0

close(3)                                = 0

munmap(0xb7f7d000, 4096)                = 0

--- SIGSEGV (Segmentation fault) @ 0 (0) ---

+++ killed by SIGSEGV +++

sh-3.2$ 

==========================================================

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20090323/7ea81204/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xymon.hobbitlaunch_segv.patch
Type: application/octet-stream
Size: 711 bytes
Desc: xymon.hobbitlaunch_segv.patch
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20090323/7ea81204/attachment.obj>


More information about the Xymon mailing list