> The expected commands are "gdb php", followed by "run odbctest.php" and > "bt". > > I would clone this bug and reassign a copy to the php odbc package, but I > don't see that you've mentioned which version of php you're using.
Thanks for the debugging primers. Meanwhile I recompiled libmyodbc against libmysqlclient15-dev. The Problem is gone. If I reinstall libmyodbc from the archive, it reappears. So in this case the problem is the outdated build-dependency of libmyodbc. I believe this i related to the libmyodbc bug #353997 (where you concluded that the build-dependency should be fixed). Now I also get a backtrace, which is attached.
GNU gdb 6.4-debian Copyright 2005 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 "x86_64-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run odbctest.php Starting program: /usr/bin/php odbctest.php [Thread debugging using libthread_db enabled] [New Thread 46912527266000 (LWP 30918)] Program exited normally. (gdb) bt No stack. (gdb) quit [EMAIL PROTECTED]:~$ php odbc.php Could not open input file: odbc.php [EMAIL PROTECTED]:~$ php odbctest.php [EMAIL PROTECTED]:~$ php odbctest.php Speicherzugriffsfehler [EMAIL PROTECTED]:~$ gdb php GNU gdb 6.4-debian Copyright 2005 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 "x86_64-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run odbctest.php Starting program: /usr/bin/php odbctest.php [Thread debugging using libthread_db enabled] [New Thread 46912527266000 (LWP 30987)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 46912527266000 (LWP 30987)] 0x00002aaaacb9d5e2 in mysql_free_result () from /usr/lib/libmysqlclient.so.15 (gdb) bt #0 0x00002aaaacb9d5e2 in mysql_free_result () from /usr/lib/libmysqlclient.so.15 #1 0x00002aaaad7c4e5c in my_SQLFreeStmt () from /usr/lib/odbc/libmyodbc.so #2 0x00002aaaad7bf137 in my_SQLDisconnect () from /usr/lib/odbc/libmyodbc.so #3 0x00002aaaad7bf1d9 in SQLDisconnect () from /usr/lib/odbc/libmyodbc.so #4 0x00002aaaacef6093 in SQLDisconnect () from /usr/lib/libodbc.so.1 #5 0x00002aaaacdae729 in get_module () from /usr/lib/php5/20051025/odbc.so #6 0x00002aaaacdae78f in get_module () from /usr/lib/php5/20051025/odbc.so #7 0x00000000006216fe in list_entry_destructor (ptr=0x735f316e6974616c) at /home/ranke/tmp/php5-5.1.2/Zend/zend_list.c:184 #8 0x0000000000620599 in zend_hash_del_key_or_index (ht=0xa2f9e8, arKey=0x0, nKeyLength=2897860048, h=30987, flag=-1392243520) at /home/ranke/tmp/php5-5.1.2/Zend/zend_hash.c:490 #9 0x0000000000621369 in _zend_list_delete (id=1769234796) at /home/ranke/tmp/php5-5.1.2/Zend/zend_list.c:58 #10 0x00000000006096d7 in _zval_ptr_dtor (zval_ptr=0xbb2580) at /home/ranke/tmp/php5-5.1.2/Zend/zend_variables.h:35 #11 0x000000000061f0da in zend_hash_apply_deleter (ht=0xa2f828, p=0xbb2568) at /home/ranke/tmp/php5-5.1.2/Zend/zend_hash.c:574 #12 0x000000000061f258 in zend_hash_graceful_reverse_destroy (ht=0xa2f828) at /home/ranke/tmp/php5-5.1.2/Zend/zend_hash.c:640 #13 0x0000000000609549 in shutdown_executor () at /home/ranke/tmp/php5-5.1.2/Zend/zend_execute_API.c:217 #14 0x00000000006156a7 in zend_deactivate () at /home/ranke/tmp/php5-5.1.2/Zend/zend.c:846 #15 0x00000000005d7bca in php_request_shutdown (dummy=0x735f316e6974616c) at /home/ranke/tmp/php5-5.1.2/main/main.c:1284 #16 0x00000000006ad0f6 in main (argc=32767, argv=0x2aaaaabc2880) at /home/ranke/tmp/php5-5.1.2/sapi/cli/php_cli.c:1230 (gdb)