Open mo3rfan opened 6 years ago
/psl-librtcdcpp # python3 python/stress_test.py
terminate called after throwing an instance of 'std::runtime_error'
what(): Couldn't close file
Aborted (core dumped)
/psl-librtcdcpp/examples/websocket_client # ./2in1
====================++++10++
Process 12 exited with a coredump!!
Debugging inside an alpine docker container with --cap-add=SYS_PTRACE --security-opt seccomp=unconfined
https://stackoverflow.com/a/46676907/679829
(gdb) exec-file ./2in1
(gdb) core-file ./core
[New LWP 411]
[New LWP 386]
[New LWP 391]
[New LWP 383]
[New LWP 390]
[New LWP 412]
[New LWP 387]
[New LWP 418]
[New LWP 419]
[New LWP 421]
[New LWP 422]
[New LWP 425]
[New LWP 426]
[New LWP 431]
[New LWP 432]
[New LWP 433]
[New LWP 434]
[New LWP 435]
[New LWP 436]
[New LWP 423]
[New LWP 437]
[New LWP 424]
[New LWP 438]
[New LWP 427]
[New LWP 429]
[New LWP 413]
[New LWP 428]
[New LWP 414]
[New LWP 430]
[New LWP 417]
[New LWP 415]
[New LWP 420]
[New LWP 416]
[New LWP 457]
warning: Can't read pathname for load map: No error information.
Core was generated by `./2in1'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x76efb27c in __lookup_serv () from /lib/ld-musl-armhf.so.1
[Current thread is 1 (LWP 411)]
(gdb) bt
#0 0x76efb27c in __lookup_serv () at /lib/ld-musl-armhf.so.1
#1 0x76ef8084 in getaddrinfo () at /lib/ld-musl-armhf.so.1
(gdb) l
1 crt/arm/crti.s: No such file or directory.
(gdb) frame 1
#1 0x76ef8084 in getaddrinfo () from /lib/ld-musl-armhf.so.1
(gdb) l
1 in crt/arm/crti.s
GDB freezes when I try to run a program inside it. CPU goes to 100% and stays there. I was only able to inspect the crash via the coredump method above.
Had to install debug symbols for musl, glib and libnice.
This was on alpine docker container under x86.
Commit: https://github.com/hamon-in/librtcdcpp/commit/4280238feee45e19ad085d0b46d7b032988a2f7b
Warnings