pinephone: mtr segfaults when given an interface
mtr 8.8.8.8
works as expected, but mtr -I wwan0 8.8.8.8
segfaults.
mtr -I wlan0
works but doesn't receive any responses (I don't think this is the same bug, I think something is going on with routes on the phone)
pine64-pinephone:~/src$ gdb mtr
GNU gdb (GDB) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "aarch64-alpine-linux-musl".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from mtr...
(gdb) r -I wwan0 8.8.8.8
Starting program: /usr/sbin/mtr -I wwan0 8.8.8.8
[Detaching after fork from child process 6489]
Program received signal SIGSEGV, Segmentation fault.
0x0000aaaaaaaaf290 in net_find_interface_address_from_name (addr=0xaaaaaaac98c8 <sourcesockaddr_struct>,
interface_name=0xfffffffffe47 "wwan0", address_family=2) at ../ui/net.c:650
650 ../ui/net.c: No such file or directory.
(gdb) bt
#0 0x0000aaaaaaaaf290 in net_find_interface_address_from_name (addr=0xaaaaaaac98c8 <sourcesockaddr_struct>,
interface_name=0xfffffffffe47 "wwan0", address_family=2) at ../ui/net.c:650
#1 net_open (ctl=<optimized out>, hostent=<optimized out>) at ../ui/net.c:784
#2 0x0000aaaaaaaad540 in main (argc=<optimized out>, argv=<optimized out>) at ../ui/mtr.c:844
(gdb)