radvd encounters segmentation fault on boot
Hello,
I've run into an issue where radvd catches a segmentation fault when the service starts at boot time. Operating system is Alpine Linux 3.15:
hydra:~# cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.15.0
PRETTY_NAME="Alpine Linux v3.15"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://bugs.alpinelinux.org/"
hydra:~#
I've been able to capture a coredump and the backtrace reads as follows:
Reading symbols from /usr/sbin/radvd...
(No debugging symbols found in /usr/sbin/radvd)
[New LWP 2596]
Core was generated by `/usr/sbin/radvd -C /etc/radvd.conf -p /run/radvd/radvd.pid -u radvd'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007ffb03ac45fc in strcmp (l=0x7ffb03b0b140 "eth1", r=0x1495ba68 <error: Cannot access memory at address 0x1495ba68>) at src/string/strcmp.c:5
5 src/string/strcmp.c: No such file or directory.
(gdb) backtrace
#0 0x00007ffb03ac45fc in strcmp (l=0x7ffb03b0b140 "eth1", r=0x1495ba68 <error: Cannot access memory at address 0x1495ba68>) at src/string/strcmp.c:5
#1 0x0000561756851e04 in ?? ()
#2 0x0000561756858125 in ?? ()
#3 0x00005617568531c5 in ?? ()
#4 0x0000561756850108 in ?? ()
#5 0x00007ffb03a90a03 in libc_start_main_stage2 (main=0x56175684f610, argc=7, argv=0x7ffe1495d458) at src/env/__libc_start_main.c:94
#6 0x00005617568501c9 in ?? ()
#7 0x0000000000000007 in ?? ()
#8 0x00007ffe1495eebe in ?? ()
#9 0x00007ffe1495eece in ?? ()
#10 0x00007ffe1495eed1 in ?? ()
#11 0x00007ffe1495eee1 in ?? ()
#12 0x00007ffe1495eee4 in ?? ()
#13 0x00007ffe1495eef9 in ?? ()
#14 0x00007ffe1495eefc in ?? ()
#15 0x0000000000000000 in ?? ()
(gdb)
After the system is finished booting, rc-service radvd stop; rc-service radvd start
results in the daemon starting successfully. Perhaps the radvd daemon is being started before the eth1 device is up? This would make sense as to why the daemon starts successfully after the system finishes coming up.
Please reach out if any further information from my end is required.
Thanks.
Edited by Johnny Kisch