Приложение иногда падает в "корку" по сигналу 10 (Bus error).
Приложение скомпилено с отладочным кодом, gdb говорит:
Program terminated with signal 10, Bus error.backtrace ничего криминального не показывает. Если с Segmentation fault все вроде понятно и баги легко находятся, то что делать с Bus error непонятно. Куда копать?
Program terminated with signal 10, Bus error.
..
#0 0x0000000102669823 in malloc () from /lib/libc.so.7
[New Thread 0x102b01f80 (LWP 100141)]
[New Thread 0x102b01850 (LWP 100064)]
[New Thread 0x102b016e0 (LWP 100055)]
[New Thread 0x102b01570 (LWP 100051)]
[New Thread 0x102b01400 (LWP 100048)]
[New Thread 0x102b01290 (LWP 100045)]
[New Thread 0x102b01120 (LWP 100221)]
(gdb) info thread
7 Thread 0x102b01120 (LWP 100221) 0x00000001026965ec in recvfrom () from /lib/libc.so.7
6 Thread 0x102b01290 (LWP 100045) 0x00000001026d9cdc in select () from /lib/libc.so.7
5 Thread 0x102b01400 (LWP 100048) 0x00000001026beb4c in nanosleep () from /lib/libc.so.7
4 Thread 0x102b01570 (LWP 100051) 0x000000010267b52c in accept () from /lib/libc.so.7
3 Thread 0x102b016e0 (LWP 100055) 0x00000001026beb4c in nanosleep () from /lib/libc.so.7
2 Thread 0x102b01850 (LWP 100064) 0x000000010264cd4c in _umtx_op () from /lib/libc.so.7
* 1 Thread 0x102b01f80 (LWP 100141) 0x0000000102669823 in malloc () from /lib/libc.so.7
(gdb) bt
#0 0x0000000102669823 in malloc () from /lib/libc.so.7
#1 0x0000000102669afe in free () from /lib/libc.so.7
#2 0x0000000000410175 in radauth_thread (argp=0x7fffffffe8f0) at radius.c:884
#3 0x0000000100c3ca88 in pthread_getprio () from /lib/libthr.so.3
#4 0x00007ffff67b6000 in ?? ()
Cannot access memory at address 0x7ffff69b6000
(gdb) frame 0
#0 0x0000000102669823 in malloc () from /lib/libc.so.7
(gdb) info local
No symbol table info available.
(gdb) frame 1
#1 0x0000000102669afe in free () from /lib/libc.so.7
(gdb) info local
No symbol table info available.