[unixODBC-support] Segmentation Fault when using isql with IBM DB2 drivers

Brian Schonecker Brian.Schonecker at Xtek.com
Tue Jul 18 16:56:08 BST 2006

>>> martin.evans at easysoft.com 7/18/2006 11:27:11 AM >>>
On 18-Jul-2006 Brian Schonecker wrote:
> Does this help at all?

It might, it fell over in libdb2.so - the DB2 driver.

A stack dump might be slightly more helpful. Repeat your gdb session but type
where after it segfaults and send output.


I hope this is what you requested.  Thanks!

db2inst1 at opportunity:~> gdb isql
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-suse-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) r -v dsnt
Starting program: /usr/local/bin/isql -v dsnt
[Thread debugging using libthread_db enabled]
[New Thread 1076039360 (LWP 29419)]
| Connected!                            |
|                                       |
| sql-statement                         |
| help [tablename]                      |
| quit                                  |
|                                       |
SQL> select * from sysadm.tmktest
| QON_COMPANY_CDE| QON_QUOTE_DIV_NBR| QON_NEXT_QUOTE_NBR| QON_QUOTE_DIV_NAM                                           |

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1076039360 (LWP 29419)]
0x406e8875 in CLI_scrolGetaRow2 () from /home/db2inst1/sqllib/lib/libdb2.so
(gdb) where
#0  0x406e8875 in CLI_scrolGetaRow2 () from /home/db2inst1/sqllib/lib/libdb2.so
#1  0x40691abd in CLI_sqlFetch () from /home/db2inst1/sqllib/lib/libdb2.so
#2  0x4066a55f in SQLFetch2 () from /home/db2inst1/sqllib/lib/libdb2.so
#3  0x40669bd0 in SQLFetch () from /home/db2inst1/sqllib/lib/libdb2.so
#4  0x4003fc65 in SQLFetch () from /usr/lib/libodbc.so.1
#5  0x08049711 in WriteBodyNormal (hStmt=0x809cfd8) at isql.c:750
#6  0x0804a524 in main (argc=3, argv=0xbffff434) at isql.c:377
(gdb) quit
The program is running.  Exit anyway? (y or n) y
db2inst1 at opportunity:~> 

More information about the unixODBC-support mailing list