Re: v8 to v9.3.3 segmentation fault on linux
Roy Marples
Mon Nov 23 13:27:18 2020
On 23/11/2020 12:13, Roy Marples wrote:
Program received signal SIGSEGV, Segmentation fault.
0x8002ef75 in dhcp_openudp (ia=0x8) at dhcp.c:1604
1604 sin.sin_addr = *ia;
(gdb) print *ia
Cannot access memory at address 0x8
(gdb) print ia
$1 = (struct in_addr *) 0x8
(gdb) info locals
s = 16
sin = {sin_family = 2, sin_port = 17408, sin_addr = {s_addr = 0},
sin_zero = "\000\000\000\000\000\000\000"}
n = 1
(gdb) quit
I can try to get more info, it it will be helpful.
Irregardless of the above, dhcpcd should still not crash.
I have just fixed this here:
https://roy.marples.name/cgit/dhcpcd.git/commit/?id=fbb4dc4280fc14847c79db8f249736ddb3cd797f
Roy
Archive administrator: postmaster@marples.name