me@myhost:/$ sudo gdb /usr/sbin/kamailio /home/corefiles/core2
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
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 "x86_64-linux-gnu".
For bug reporting instructions, please see:
Reading symbols from /usr/sbin/kamailio...Reading symbols from /usr/lib/debug/.build-id/dd/9191ec1e595a90e4844b8ccd1c70b3c92037a1.debug...done.
done.
[New LWP 30988]
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/sbin/kamailio -f /etc/kamailio/kamailio.cfg -P /var/run/kamailio/kamailio.'.
Program terminated with signal 11, Segmentation fault.
#0 handle_ser_child (p=0x7f1ec3adc1d8, fd_i=fd_i@entry=-1) at tcp_main.c:3579
3579 tcp_main.c: No such file or directory.
(gdb) backtrace
#0 handle_ser_child (p=0x7f1ec3adc1d8, fd_i=fd_i@entry=-1) at tcp_main.c:3579
#1 0x00000000005328da in send2child (tcpconn=0x7f05815ddda8) at tcp_main.c:3979
#2 handle_tcpconn_ev (tcpconn=0x7f05815ddda8, ev=<optimized out>, ev@entry=1, fd_i=fd_i@entry=-1) at tcp_main.c:4314
#3 0x000000000053c428 in handle_io (idx=-1, ev=<optimized out>, fm=<optimized out>) at tcp_main.c:4366
#4 io_wait_loop_epoll (repeat=repeat@entry=0, t=5, h=0x89dc40) at io_wait.h:1092
#5 0x0000000000544577 in tcp_main_loop () at tcp_main.c:4660
#6 0x00000000004821a8 in main_loop () at main.c:1711
#7 0x0000000000420585 in main (argc=<optimized out>, argv=<optimized out>) at main.c:2533
(gdb)