Nagios 3.0 RC2: Segmentation faults after starting
Olaf Dabrunz
od at suse.de
Thu Feb 14 17:11:09 CET 2008
On 14-Feb-08, Olaf Dabrunz wrote:
> The problem is that --enable-embedded-perl will cause libperl to be
> linked in before libc. This means that the opendir() and readdir() in
> process_check_result_queue() will be linked in from libperl, instead of
> libc. The libperl versions will only work when the embedded perl is
> initialized as well.
>
> Linking problem.
I subscribed to the list now.
This may help to see the problem:
Breakpoint 1, process_check_result_queue (dirname=0x596770 "/var/spool/nagios") at utils.c:2246
2246 if((dirp=opendir(dirname))==NULL){
(gdb) info line 2252
Line 2252 of "utils.c" starts at address 0x43b900 <process_check_result_queue+64>
and ends at 0x43b94a <process_check_result_queue+138>.
(gdb) disass 0x43b900 0x43b94a
Dump of assembler code from 0x43b900 to 0x43b94a:
0x000000000043b900 <process_check_result_queue+64>: mov 1407017(%rip),%rax # 0x593130 <my_perl>
0x000000000043b907 <process_check_result_queue+71>: mov %r13,%rdi
0x000000000043b90a <process_check_result_queue+74>: mov 0xf28(%rax),%rax
0x000000000043b911 <process_check_result_queue+81>: mov 0x20320(%rax),%rsi
0x000000000043b918 <process_check_result_queue+88>: lea 0x20330(%rax),%rdx
0x000000000043b91f <process_check_result_queue+95>: callq 0x411308 <readdir64_r at plt>
0x000000000043b924 <process_check_result_queue+100>: test %eax,%eax
0x000000000043b926 <process_check_result_queue+102>: jne 0x43ba41 <process_check_result_queue+385>
0x000000000043b92c <process_check_result_queue+108>: mov 1406973(%rip),%rax # 0x593130 <my_perl>
0x000000000043b933 <process_check_result_queue+115>: mov 0xf28(%rax),%rax
0x000000000043b93a <process_check_result_queue+122>: mov 0x20330(%rax),%rbp
0x000000000043b941 <process_check_result_queue+129>: test %rbp,%rbp
0x000000000043b944 <process_check_result_queue+132>: je 0x43ba41 <process_check_result_queue+385>
End of assembler dump.
Regards,
--
Olaf Dabrunz (od/odabrunz)
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel
More information about the Developers
mailing list