#39502 [Asn-Fbk]: PDO_MySQL segfaults

2006-12-30 Thread iliaa
 ID:   39502
 Updated by:   [EMAIL PROTECTED]
 Reported By:  indeyets at gmail dot com
-Status:   Assigned
+Status:   Feedback
 Bug Type: PDO related
 Operating System: FreeBSD
 PHP Version:  5.2.0
 Assigned To:  wez
 New Comment:

Can you see if using the latest CVS makes any difference?


Previous Comments:


[2006-11-16 10:00:02] indeyets at gmail dot com

still segfaults.

backtrace:

Program received signal SIGSEGV, Segmentation fault.
0x28fbba2a in mysql_more_results () from
/usr/local/lib/mysql/libmysqlclient.so.15
(gdb) bt
#0 0x28fbba2a in mysql_more_results () from
/usr/local/lib/mysql/libmysqlclient.so.15
#1 0x2916bcbc in pdo_mysql_stmt_dtor (stmt=0x852bda0) at
/usr/ports/lang/php5/work/php-5.2.0/ext/pdo_mysql/mysql_statement.c:80
#2 0x2915fb9a in free_statement () from
/usr/local/lib/php/20060613-debug/pdo.so
#3 0x2915fc0f in pdo_dbstmt_free_storage () from
/usr/local/lib/php/20060613-debug/pdo.so
#4 0x288fc438 in ?? () from /usr/local/libexec/apache22/libphp5.so
#5 0x288fc2f3 in ?? () from /usr/local/libexec/apache22/libphp5.so
#6 0x288dc9ac in ?? () from /usr/local/libexec/apache22/libphp5.so
#7 0x288d0873 in ?? () from /usr/local/libexec/apache22/libphp5.so
#8 0x288d0a2c in ?? () from /usr/local/libexec/apache22/libphp5.so
#9 0x288dcc7b in ?? () from /usr/local/libexec/apache22/libphp5.so
#10 0x288e87d1 in ?? () from /usr/local/libexec/apache22/libphp5.so
#11 0x288f8b87 in ?? () from /usr/local/libexec/apache22/libphp5.so
#12 0x288f8ebd in ?? () from /usr/local/libexec/apache22/libphp5.so
#13 0x288fc129 in ?? () from /usr/local/libexec/apache22/libphp5.so
#14 0x288d0735 in ?? () from /usr/local/libexec/apache22/libphp5.so
#15 0x288de202 in ?? () from /usr/local/libexec/apache22/libphp5.so
#16 0x28895434 in ?? () from /usr/local/libexec/apache22/libphp5.so
#17 0x28943a78 in ?? () from /usr/local/libexec/apache22/libphp5.so
#18 0x2894407e in ?? () from /usr/local/libexec/apache22/libphp5.so
#19 0x08071f42 in ap_run_handler ()
#20 0x0807230d in ap_invoke_handler ()
#21 0x0807c92d in ap_internal_redirect ()
#22 0x2872bd34 in handler_redirect () from
/usr/local/libexec/apache22/mod_rewrite.so
#23 0x08071f42 in ap_run_handler ()
#24 0x0807230d in ap_invoke_handler ()
#25 0x0807cce9 in ap_process_request ()
#26 0x0807a8f1 in ap_process_http_connection ()
#27 0x080777e2 in ap_run_process_connection ()
#28 0x08080367 in child_main ()
#29 0x08080530 in make_child ()
#30 0x08080a73 in ap_mpm_run ()
#31 0x08061f40 in main ()

(gdb) list
80 mysql_free_result(res);
81 }
82 }
83 }
84 #endif
85 efree(S);
86 return 1;
87 }
88
89 static int pdo_mysql_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC)

(gdb) print res
No symbol res in current context.

(gdb) frame 1
#1 0x2916bcbc in pdo_mysql_stmt_dtor (stmt=0x852bda0) at
/usr/ports/lang/php5/work/php-5.2.0/ext/pdo_mysql/mysql_statement.c:80
80 mysql_free_result(res);

(gdb) list
75 break;
76 }
77
78 res = mysql_store_result(S-H-server);
79 if (res) {
80 mysql_free_result(res);
81 }
82 }
83 }
84 #endif

(gdb) print res
No symbol res in current context.

(gdb) print S
$1 = (pdo_mysql_stmt *) 0x84ed090

(gdb) print S-H
No symbol H in current context.

(gdb) print S-H
$2 = (pdo_mysql_db_handle *) 0x84a3080

(gdb) print S-H-server
$3 = (MYSQL *) 0x5a5a5a5a



[2006-11-14 16:13:46] [EMAIL PROTECTED]

Try this patch:
http://bb.prohost.org/patch/pdo_my.txt



[2006-11-13 17:53:27] indeyets at gmail dot com

MySQL 5.0.21

reproduce code is difficult, as it happens inside of a very big CMS

the problem is temporarily solved for us, by commenting out this block:
http://cvs.php.net/viewcvs.cgi/php-src/ext/pdo_mysql/mysql_statement.c?r1=1.48.2.12r2=1.48.2.13



[2006-11-13 17:49:24] [EMAIL PROTECTED]

What version of MySQL are you using and can you provide the 
reproduce code.



[2006-11-13 17:00:34] indeyets at gmail dot com

Description:

PDO_MySQL still segfaults in 5.2.0

related bugs:
http://bugs.php.net/bug.php?id=37445
http://bugs.php.net/bug.php?id=37438

backtrace of 5.2.0 is in Actual Result field

Actual result:
--
Program received signal SIGSEGV, Segmentation fault.
0x28fbba2a in mysql_more_results () from
/usr/local/lib/mysql/libmysqlclient.so.15
(gdb) bt
#0 0x28fbba2a in mysql_more_results () from
/usr/local/lib/mysql/libmysqlclient.so.15
#1 0x2916bcb8 in pdo_mysql_stmt_dtor (stmt=0x85211cc) at
/usr/ports/lang/php5/work/php-5.2.0/ext/pdo_mysql/mysql_statement.c:79
#2 0x2915fb9a in free_statement () from
/usr/local/lib/php/20060613-debug/pdo.so
#3 0x2915fc0f in pdo_dbstmt_free_storage () from
/usr/local/lib/php/20060613-debug/pdo.so
#4 

#39502 [Asn-Fbk]: PDO_MySQL segfaults

2006-11-14 Thread iliaa
 ID:   39502
 Updated by:   [EMAIL PROTECTED]
 Reported By:  indeyets at gmail dot com
-Status:   Assigned
+Status:   Feedback
 Bug Type: PDO related
 Operating System: FreeBSD
 PHP Version:  5.2.0
 Assigned To:  wez
 New Comment:

Try this patch:
http://bb.prohost.org/patch/pdo_my.txt


Previous Comments:


[2006-11-13 17:53:27] indeyets at gmail dot com

MySQL 5.0.21

reproduce code is difficult, as it happens inside of a very big CMS

the problem is temporarily solved for us, by commenting out this block:
http://cvs.php.net/viewcvs.cgi/php-src/ext/pdo_mysql/mysql_statement.c?r1=1.48.2.12r2=1.48.2.13



[2006-11-13 17:49:24] [EMAIL PROTECTED]

What version of MySQL are you using and can you provide the 
reproduce code.



[2006-11-13 17:00:34] indeyets at gmail dot com

Description:

PDO_MySQL still segfaults in 5.2.0

related bugs:
http://bugs.php.net/bug.php?id=37445
http://bugs.php.net/bug.php?id=37438

backtrace of 5.2.0 is in Actual Result field

Actual result:
--
Program received signal SIGSEGV, Segmentation fault.
0x28fbba2a in mysql_more_results () from
/usr/local/lib/mysql/libmysqlclient.so.15
(gdb) bt
#0 0x28fbba2a in mysql_more_results () from
/usr/local/lib/mysql/libmysqlclient.so.15
#1 0x2916bcb8 in pdo_mysql_stmt_dtor (stmt=0x85211cc) at
/usr/ports/lang/php5/work/php-5.2.0/ext/pdo_mysql/mysql_statement.c:79
#2 0x2915fb9a in free_statement () from
/usr/local/lib/php/20060613-debug/pdo.so
#3 0x2915fc0f in pdo_dbstmt_free_storage () from
/usr/local/lib/php/20060613-debug/pdo.so
#4 0x288fc438 in ?? () from /usr/local/libexec/apache22/libphp5.so
#5 0x288fc2f3 in ?? () from /usr/local/libexec/apache22/libphp5.so
#6 0x288dc9ac in ?? () from /usr/local/libexec/apache22/libphp5.so
#7 0x288d0873 in ?? () from /usr/local/libexec/apache22/libphp5.so
#8 0x288d0a2c in ?? () from /usr/local/libexec/apache22/libphp5.so
#9 0x288dcc7b in ?? () from /usr/local/libexec/apache22/libphp5.so
#10 0x288e87d1 in ?? () from /usr/local/libexec/apache22/libphp5.so
#11 0x288f8b87 in ?? () from /usr/local/libexec/apache22/libphp5.so
#12 0x288f8ebd in ?? () from /usr/local/libexec/apache22/libphp5.so
#13 0x288fc129 in ?? () from /usr/local/libexec/apache22/libphp5.so
#14 0x288d0735 in ?? () from /usr/local/libexec/apache22/libphp5.so
#15 0x288de202 in ?? () from /usr/local/libexec/apache22/libphp5.so
#16 0x28895434 in ?? () from /usr/local/libexec/apache22/libphp5.so
#17 0x28943a78 in ?? () from /usr/local/libexec/apache22/libphp5.so
#18 0x2894407e in ?? () from /usr/local/libexec/apache22/libphp5.so
#19 0x08071f42 in ap_run_handler ()
#20 0x0807230d in ap_invoke_handler ()
#21 0x0807c92d in ap_internal_redirect ()
#22 0x2872bd34 in handler_redirect () from
/usr/local/libexec/apache22/mod_rewrite.so
#23 0x08071f42 in ap_run_handler ()
#24 0x0807230d in ap_invoke_handler ()
#25 0x0807cce9 in ap_process_request ()
#26 0x0807a8f1 in ap_process_http_connection ()
#27 0x080777e2 in ap_run_process_connection ()
#28 0x08080367 in child_main ()
#29 0x08080530 in make_child ()
#30 0x08080a73 in ap_mpm_run ()
#31 0x08061f40 in main ()





-- 
Edit this bug report at http://bugs.php.net/?id=39502edit=1