udhcpc6 segfault
Pramod Bhagwat
prbhagwat at gmail.com
Tue Aug 14 14:06:02 UTC 2012
Hi,
I am using busybox-1.20.2 and cross compiled this for arm and built
the busybox binary statically.
As soon as i start the udhcpc6 client i am getting the segmentation fault.
After going through the source code of
busybox-1.20.2/networking/udhcp/d6_dhcpc.c file and following
function:
static char **fill_envp(struct d6_packet *packet)
{
char **envp, **curr;
client6_data.env_ptr = NULL;
client6_data.env_idx = 0;
*new_env() = xasprintf("interface=%s", client_config.interface);
if (packet)
option_to_env(packet->d6_options, packet->d6_options +
sizeof(packet->d6_options));
envp = curr = client6_data.env_ptr;
while (*curr)
putenv(*curr++);
return envp;
}
In the above code while accessing curr pointer it is giving the
segmentation fault.
But client6_data.env_ptr is not NULL.
Please let me know if anybody has already tested udhcpc6 on arm.
For udhcpc6 do i need to enable any specific build option in the Busybox?
Warm Regards,
pramod
More information about the busybox
mailing list