Hi, The sources for the corrected version of MaxDB PHP can be downloaded from:
http://sapmats-de.sap-ag.de/download/download.cgi?id=VGK48RSY2LKPS7YW92ZA2XZWB6S1BF0EJIGCJEJ4MNBFJCE0FE The corrected Windows DLLs can be downloaded from: http://sapmats-de.sap-ag.de/download/download.cgi?id=CNS4EY86SBTRJ66BHL4MOYERU3P4ZYJMKI713VNBN8S6G5G4UP Regards, Thomas Simenec SAP Labs Berlin -----Original Message----- From: "H�tzel, J�rgen" [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 15. Dezember 2004 10:48 To: [EMAIL PROTECTED] Subject: php module segfaults when not freeing results Hi, I use PHP4.3.9, this is the phpinfo string: PHP MaxDB Library version 7.5.00.20 SQLDBC Client API version libSQLDBC 7.5.0 BUILD 019-121-082-363 Steps to reproduce: $result2 = maxdb_query($DB, "select * from TEST"); $result2 = maxdb_query($DB, "select * from TEST"); Segfaults with the following backtrace: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 8192 (LWP 16550)] 0x401cf5a8 in main_arena () from /lib/i686/libc.so.6 (gdb) bt #0 0x401cf5a8 in main_arena () from /lib/i686/libc.so.6 #1 0x4039cbc4 in IFR_ErrorHndl::clear () from /opt/sdb/programs/lib/libSQLDBC_C.so #2 0x40338024 in IFR_ResultSet::close () from /opt/sdb/programs/lib/libSQLDBC_C.so #3 0x402b1187 in SQLDBC::SQLDBC_ResultSet::close () from /opt/sdb/programs/lib/libSQLDBC_C.so #4 0x402a7e9e in SQLDBC_ResultSet_close () from /opt/sdb/programs/lib/libSQLDBC_C.so #5 0x4021b476 in php_maxdb_free_result (res=0x81e2c0c) at /tmp/maxdb-22/ext/maxdb/php_maxdb.c:324 #6 0x4021b5af in _free_maxdb_result (rsrc=0x81e72e4) at /tmp/maxdb-22/ext/maxdb/php_maxdb.c:368 #7 0x0814e1bf in list_entry_destructor (ptr=0x81e72e4) at /tmp/php-4.3.9/Zend/zend_list.c:177 #8 0x0814c6f9 in zend_hash_del_key_or_index (ht=0x81a4d40, arKey=0x0, nKeyLength=0, h=2, flag=1) at /tmp/php-4.3.9/Zend/zend_hash.c:527 #9 0x0814df11 in _zend_list_delete (id=2) at /tmp/php-4.3.9/Zend/zend_list.c:56 #10 0x081466c9 in _zval_dtor (zvalue=0x81e72ac) at /tmp/php-4.3.9/Zend/zend_variables.c:69 #11 0x0815ac36 in zend_assign_to_variable (result=0x81e7040, op1=0x81e7050, op2=0x81e7060, value=0x81e61f4, type=4, Ts=0xbffea040) at /tmp/php-4.3.9/Zend/zend_execute.c:480 #12 0x08155e4d in execute (op_array=0x81e263c) at /tmp/php-4.3.9/Zend/zend_execute.c:1383 #13 0x08147d9a in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /tmp/php-4.3.9/Zend/zend.c:891 #14 0x0811abf4 in php_execute_script (primary_file=0xbffec780) at /tmp/php-4.3.9/main/main.c:1735 #15 0x0815caa4 in main (argc=2, argv=0xbffec834) at /tmp/php-4.3.9/sapi/cgi/cgi_main.c:1592 But $result2 = maxdb_query($DB, "select * from Authors"); maxdb_free_result($result2); $result2 = maxdb_query($DB, "select * from Authors"); works fine. Regards, J�rgen ------------------------------------------- Cyperfection - agentur f�r neue medien gmbh J�rgen H�tzel mailto:[EMAIL PROTECTED] Karl-Kraemer-Str. 4 - 67061 Ludwigshafen fon: 0621/587104-0 - fax: 0621/587104-90 http://www.cyperfection.de/ Anfahrt - http://www.cyperfection.de/Anfahrt/ <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< -- MaxDB Discussion Mailing List For list archives: http://lists.mysql.com/maxdb To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED] -- MaxDB Discussion Mailing List For list archives: http://lists.mysql.com/maxdb To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]
