[test@test~]$ gdb /bin/isql isql.core.122335
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-120.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/isql...Reading symbols from /usr/bin/isql...(no debugging symbols found)...done.
(no debugging symbols found)...done.
[New LWP 122335]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `isql -v freeswitch'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007f1ae180edec in freelocale () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install unixODBC-2.3.1-14.el7.x86_64
(gdb) bt
#0 0x00007f1ae180edec in freelocale () from /lib64/libc.so.6
#1 0x00007f1ada501fe1 in myodbc_init() () from /usr/lib64/libmyodbc8a.so
#2 0x00007f1ada505afc in my_SQLAllocEnv(void**) () from /usr/lib64/libmyodbc8a.so
#3 0x00007f1ada506dff in SQLAllocHandle () from /usr/lib64/libmyodbc8a.so
#4 0x00007f1ae242b8c9 in __connect_part_one () from /lib64/libodbc.so.2
#5 0x00007f1ae242daf7 in SQLConnect () from /lib64/libodbc.so.2
#6 0x0000000000402809 in main ()