[Nagiosplug-devel] [ nagiosplug-Bugs-1109261 ] check_dhcp SegV's on Solaris 9
SourceForge.net
noreply at sourceforge.net
Tue Jan 25 10:18:06 CET 2005
Bugs item #1109261, was opened at 2005-01-25 10:06
Message generated for change (Comment added) made by harpermann
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1109261&group_id=29880
Category: None
Group: CVS
>Status: Closed
Resolution: None
Priority: 7
Submitted By: Harper Mann (harpermann)
Assigned to: Harper Mann (harpermann)
Summary: check_dhcp SegV's on Solaris 9
Initial Comment:
Running check_dhcp on Solaris 9 produces a core:
[root at bern plugins]$ ./check_dhcp -i eri0 Bus Error
(core dumped)
(gdb) run -i eri0
Starting
program: /home/hmann/nagiosplug/plugins/check_dhcp -
i eri0
Program received signal SIGSEGV, Segmentation fault.
0x000127b8 in add_dhcp_offer (source=
{S_un = {S_un_b = {s_b1 = 192 'À', s_b2 =
168 '¨', s_b3 = 2 '\002', s_b4 = 1 '\001'}, S_un_w =
{s_w1 = 49320, s_w2 = 513}, S_addr = 3232236033}},
offer_packet=0xffbff9e8) at check_dhcp.c:774
774 dhcp_lease_time=ntohl(*
((u_int32_t *)&offer_packet->options[x]));
If run with -v, it's transmits a good request, but it
chokes on options in the reply.
This is on Solaris 9 with the GNU environment.
----------------------------------------------------------------------
>Comment By: Harper Mann (harpermann)
Date: 2005-01-25 10:17
Message:
Logged In: YES
user_id=939531
This was an alignment problem on Solaris. Linux kernel fixes
alignment so this was not seen there. Memcpy takes care of
proper alignment. Tested on RHEL V3 U3, RHEL V4, FreeBSD
4.10 (Thanks Stanley!) and Solaris 9 with the GNU env.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1109261&group_id=29880
More information about the Devel
mailing list