You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm experiencing an issue with a Perl-based Nagios plugin that runs repeatedly with the same parameters. Occasionally, it runs concurrently. Approximately every 10th run, the plugin crashes with a SIGSEGV (Segmentation Fault).
Backtrace from Core Dump:
(gdb) bt
#0 0x00007f1976df7b91 in cb_multi_socket () from /usr/local/perlbrew/perls/pl5/lib/site_perl/5.40.0/x86_64-linux-thread-multi-ld/auto/Net/Curl/Curl.so
#1 0x00007f1976d3adab in Curl_multi_pollset_ev () from /usr/lib64/libcurl.so.4
#2 0x00007f1976d07c1b in connc_update_shutdown_ev () from /usr/lib64/libcurl.so.4
#3 0x00007f1976d083d7 in connc_discard_conn () from /usr/lib64/libcurl.so.4
#4 0x00007f1976d3bea7 in multi_done () from /usr/lib64/libcurl.so.4
#5 0x00007f1976d3d100 in multi_runsingle () from /usr/lib64/libcurl.so.4
#6 0x00007f1976d3df34 in curl_multi_perform () from /usr/lib64/libcurl.so.4
#7 0x00007f1976df62bc in XS_Net__Curl__Multi_perform () from /usr/local/perlbrew/perls/pl5/lib/site_perl/5.40.0/x86_64-linux-thread-multi-ld/auto/Net/Curl/Curl.so
#8 0x00007f19775ed438 in Perl_pp_entersub () from /usr/local/perlbrew/perls/pl5/lib/5.40.0/x86_64-linux-thread-multi-ld/CORE/libperl.so
#9 0x00007f1977678d16 in Perl_runops_standard () from /usr/local/perlbrew/perls/pl5/lib/5.40.0/x86_64-linux-thread-multi-ld/CORE/libperl.so
#10 0x00007f1977553488 in perl_run () from /usr/local/perlbrew/perls/pl5/lib/5.40.0/x86_64-linux-thread-multi-ld/CORE/libperl.so
#11 0x0000000000400de2 in main ()
Issue Details:
Upon inspecting the cb_multi_socket function, I noticed that there doesn’t seem to be any error checking that could prevent a SIGSEGV from occurring.
Do you have any suggestions on how this might be mitigated?
Thanks for your help!
The text was updated successfully, but these errors were encountered:
Hi,
I'm experiencing an issue with a Perl-based Nagios plugin that runs repeatedly with the same parameters. Occasionally, it runs concurrently. Approximately every 10th run, the plugin crashes with a
SIGSEGV
(Segmentation Fault).Backtrace from Core Dump:
Issue Details:
Upon inspecting the
cb_multi_socket
function, I noticed that there doesn’t seem to be any error checking that could prevent aSIGSEGV
from occurring.Do you have any suggestions on how this might be mitigated?
Thanks for your help!
The text was updated successfully, but these errors were encountered: