php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1539 SIGSEGV on php shutdown with uodbc
Submitted: 1999-06-14 21:32 UTC Modified: 2002-06-16 08:32 UTC
From: gdaswani at odc dot net Assigned:
Status: Not a bug Package: Reproducible Crash
PHP Version: 3.0.9 OS: Solaris X86 2.7
Private report: No CVE-ID: None
 [1999-06-14 21:32 UTC] gdaswani at odc dot net
<?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)              

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-16 08:32 UTC] sander@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately, PHP 3 is no longer supported. Please download
the latest version of PHP 4 from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Oct 04 12:01:27 2024 UTC