# for linux
echo 'core.%e.%t.%p' > /proc/sys/kernel/core_pattern

# for macos
$ lldb --core "/cores/core.xxxxx"
(lldb) bt all
(lldb) thread select 1
(lldb) frame select 1

# open core dump on ubuntu
systemctl disable apport.service
