Open gonsalez-ru opened 3 years ago
I need your advise. What diagnostic actions can i do to gather additional debug information?
Start the asterisk daemon from gdb
:
# gdb `which asterisk`
(gdb) run asterisk -c
And then do the dongle stuff.
Then when it crashes, do:
bt
bt full
That should show you some info.
Since i use precompiled for mipsel router chan_dongle module i'm limited in debugging toools. I didn't find GDB packet for my platform and I'm not familar with exotic cross compilation. :-(
Perhaps dmesg tells you at least an address (ip
instruction pointer). Which you might be able to look up through addr2line
. You may need to do some hexadecimal math to get the right value.
Here is dmesg out: do_page_fault(): sending SIGSEGV to asterisk for invalid read access from 00000000 epc = 76b34540 in libc-2.27.so[76aad000+17a000] ra = 756eb6f0 in chan_dongle.so[756e8000+3c000]
There are two packets installed with libc: opkg files libc | grep libc-2.27.so /opt/lib/libc-2.27.so
opkg files gcc | grep libc-2.27.so /opt/lib/gcc/mipsel-openwrt-linux-gnu/7.4.0/libc-2.27.so
After executed in dialplan DongleSendSMS application Asterisk shuting down:
P.S. CLI "dongle sms" command works fine