Segfault in PDO_ODBC w/db2 v7.2

php.internals

Justin Hannus

21 years ago
I'm getting a segfault from PDO_ODBC compiled with IBM-DB2v7.2. Seems like its happening somewhere in the shutdown process. Here's a backtrace, a wierd one but thats all gdb gives me. bt: #0 0x012c8a2c in ?? () #1 0x00b205d7 in exit () from /lib/tls/libc.so.6 #2 0x00b0ae3d in __libc_start_main () from /lib/tls/libc.so.6 #3 0x0807538d in _start () offending code: <?php print "hello\n"; ?> When pdo_odbc.so is commented out of my ini file the segfault goes away. I'm using php-5.0.4, PDO-0.3 (static) and PDO_ODBC-0.2 (shared) with IBM-DB2v7.2 on CentOS Linux 2.6.9. Also, in another post i sent to pecl.dev, I'm not even sure if PDO_ODBC supports IBM-DB2v7.2. Can someone confirm this? Justin Hannus Software Engineer | Lycos Inc. justin.hannus@lycos-inc.com