Naemon 1.0.5 - mod_gearman3 crash

27 views
Skip to first unread message

bjornf

unread,
Jan 10, 2017, 6:58:11 PM1/10/17
to mod_gearman

Hi,

 

Recently tried to upgrade from Naemon 1.0.3 to Naemon 1.0.5. Which also meant mod_gearman3. At first all went fine. But, after a restart/reload of Naemon(not the first) it wouldn’t start again.   

 

Naemon.log:

[1484091188] Command file worker: Failed to read from bufferqueue (Inappropriate ioctl for device)

 

dmesg:

naemon[16990]: segfault at 1c8 ip 00007f035d6ae377 sp 00007f035cd62190 error 6 in mod_gearman_naemon.o[7f035d6a0000+1c000]

naemon[17040]: segfault at 1c8 ip 00007fe3d4389377 sp 00007fe3d3a3d190 error 6 in mod_gearman_naemon.o[7fe3d437b000+1c000]

naemon[17193]: segfault at 1c8 ip 00007f2e8fcb0377 sp 00007f2e8d8ba190 error 6 in mod_gearman_naemon.o[7f2e8fca2000+1c000]

naemon[17253]: segfault at 1c8 ip 00007f8b89a46377 sp 00007f8b87650190 error 6 in mod_gearman_naemon.o[7f8b89a38000+1c000]

 

from gdb:

Program received signal SIGSEGV, Segmentation fault.

[Switching to Thread 0x7ffff438d700 (LWP 17310)]

get_results (job=0x7fffec0052d0, context=<value optimized out>, result_size=<value optimized out>, ret_ptr=0x7fffec005590) at neb_module_naemon/../neb_module/result_thread.c:335

335     neb_module_naemon/../neb_module/result_thread.c: No such file or directory.

        in neb_module_naemon/../neb_module/result_thread.c

Missing separate debuginfos, use: debuginfo-install naemon-core-1.0.5-1.el6.x86_64

 

This on CentOS 6.7.

 

Any clues?

 

Regards, Bjorn

Sven Nierlein

unread,
Jan 11, 2017, 3:27:08 PM1/11/17
to mod_g...@googlegroups.com
This is a know issue when there is a result in the queue for a unknown host. For example because it has
been removed with that reload.
The fix is here:
https://github.com/sni/mod_gearman/commit/722dc85f19a19d7ad56181537a51cf6d6fbf66df

You could just take the neb module from any recent nightly build. I did not had the time
to do a new release since then.

Cheers,
Sven
> --
> You received this message because you are subscribed to the Google Groups "mod_gearman" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to mod_gearman...@googlegroups.com <mailto:mod_gearman...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages