issue: I’m facing the crash issue with asterisk 16.24.X (CentOS 7) so I recompiled my asterisk with Debug_Threrd, Better_Backtrace and DONT_Optimize flags and reinstalled it on my server. But I’m not getting the coredump after a crash. I have checked the following folders
/tmp/
/var/crash/
/var/log/asterisk
I also started the asterisk with the asterisk -g -cvvvvvvvvv command but was unable to find the coredump file.
It should be in the current directory at the time you ran the above command, provided that it still had permission to create the file in that directory. I believe the supplied start up scripts start it in /tmp.
My guess is that it didn’t have sufficient permission e.g. you started it in /, but set it to change to user asterisk.
In addition to what david551 said, if you run core show settings in the CLI, see if there is anything for the “Dump core on crash” and “Current running directory” options. I had similar issues a while back and these were added to help with this.
I feel I should also state that this crash appears to be in non-Asterisk code/an outside module. As a result you won’t be able to file an issue on the Asterisk issue tracker for it.
Thanks, I changed the “Running directory” and permission of “/var/crash” and it works…
gdb -c /var/crash/core.992.asterisk.15257
Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `asterisk -g -cvvvvvvvvvvvvvvvvvvvv'.
Program terminated with signal 11, Segmentation fault.
**#0 0x00007f7c52f52208 in LM_find_voice () from /opt/swift/lib/libswift.so.6**