Bug #1539: SIGSEGV on php shutdown with uodbc
| From: | gdaswani at odc dot net | Date: | Tue, 15 Jun 1999 01:32:08 +0000 |
| Subject: | Bug #1539: SIGSEGV on php shutdown with uodbc | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-6977@lists.php.net to get a copy of this message | ||
From: gdaswani@odc.net
Operating system: Solaris X86 2.7
PHP version: 3.0.9
PHP Bug Type: Reproduceable crash
Bug description: SIGSEGV on php shutdown with uodbc
<?php
$DSN='geor2549';
$USER='geor2549';
$PASSWD='';
$dbh = odbc_connect($DSN,$USER,$PASSWD);
if ( isset($dbh) ){
$dbh->disconnect;
?>
---------------------
./configure --with-iodbc=/opt/iodbc --with-config-file-path=/opt/apache/conf --enable-debug
---------------------
GDB backtrace shows..
Core was generated by `php odbctest.php3'.
Program terminated with signal 11, Segmentation Fault.
Reading symbols from /opt/iodbc/lib/libiodbc.so.2...done.
Reading symbols from /usr/lib/libpam.so.1...done.
Reading symbols from /usr/lib/libm.so.1...done.
Reading symbols from /usr/lib/libdl.so.1...done.
Reading symbols from /usr/lib/libsocket.so.1...done.
Reading symbols from /usr/lib/libnsl.so.1...done.
Reading symbols from /usr/lib/libresolv.so.2...done.
Reading symbols from /usr/lib/libc.so.1...done.
Reading symbols from /usr/lib/libmp.so.2...done.
#0 clean_non_persistent_constant (c=0x0) at constants.c:58
58 if (c->flags & CONST_PERSISTENT) {
(gdb) bt
#0 clean_non_persistent_constant (c=0x0) at constants.c:58
#1 0x80694e1 in _php3_hash_apply (ht=0x80c9f88,
destruct=0x8072270 <clean_non_persistent_constant>) at php3_hash.c:664
#2 0x80723f2 in clean_non_persistent_constants () at constants.c:133
#3 0x806714a in php3_request_shutdown (dummy=0x0) at main.c:881
#4 0x80687c5 in main (argc=2, argv=0x8047e24) at main.c:1879
(gdb)