Re: Segmentation Fault in iwd with ell 0.68 Due to l_netlink_send()

Denis Kenzior <[email protected]> Mon, 26 Aug 2024 14:20:20 -0500
Newsgroups dev.linux.lists.ell
Message-ID <[email protected]>
Hi Rajdeep,

> 
> So, I compiled ell with a bit more info:
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x00007ffff7f3e17c in l_netlink_send (netlink=0x55555563bc60, message=0x12, 
> function=0x0, user_data=0x555555651e50, destroy=0x10) at ell/netlink.c:413
> 413             if (unlikely(message->nest_level))
> 
> a bit more backtrace:
> 
> #0  0x00007ffff7f3e17c in l_netlink_send (netlink=0x55555563bc60, message=0x12, 
> function=0x0, user_data=0x555555651e50, destroy=0x10) at ell/netlink.c:413
> #1  0x000055555556d53d in ?? ()
> #2  0x00005555555ae380 in ?? ()
> #3  0x00007ffff7f40014 in process_unicast (genl=<optimized out>, 
> nlmsg=0x7fffffffc140) at ell/genl.c:860
> #4  received_data (io=<optimized out>, user_data=0x55555563b8b0) at ell/genl.c:972
> #5  0x00007ffff7f3c2ac in io_callback (fd=<optimized out>, events=1, 
> user_data=0x55555563b800) at ell/io.c:105
> #6  0x00007ffff7f3b495 in l_main_iterate (timeout=<optimized out>) at 
> ell/main.c:461
> #7  0x00007ffff7f3b55c in l_main_run () at ell/main.c:508
> #8  l_main_run () at ell/main.c:490
> #9  0x00007ffff7f3b77b in l_main_run_with_signal (callback=<optimized out>, 
> user_data=0x0) at ell/main.c:630
> #10 0x000055555555fd13 in ?? ()
> #11 0x00007ffff7d0ae08 in ?? () from /usr/lib/libc.so.6
> #12 0x00007ffff7d0aecc in __libc_start_main () from /usr/lib/libc.so.6
> #13 0x0000555555560575 in ?? ()
> 
> Let me know if you need more info.

I suspect that this is a binary compatibility problem.  ell API is not stable, 
so ell + iwd are released in tandem.  ell 0.68 breaks certain netlink APIs.  iwd 
2.19 requires ell 0.67.  iwd 2.20 will require ell 0.68, etc.

Regards,
-Denis