PHP 4.0 Bug #5994: mysql_pconnect makes apache crash
| From: | mahlfors at abo dot fi | Date: | Sun, 06 Aug 2000 18:25:20 +0000 |
| Subject: | PHP 4.0 Bug #5994: mysql_pconnect makes apache crash | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-27961@lists.php.net to get a copy of this message | ||
From: mahlfors@abo.fi
Operating system: Linux 2.2
PHP version: 4.0.1pl2
PHP Bug Type: MySQL related
Bug description: mysql_pconnect makes apache crash
I recently switched from mysql 3.22 to the beta 3.23.21, now apache dumps
core sometimes occasionally and sometimes almost every time I load a page.
The core dump always happens at the mysql_pconnect (or mysql_connect)
request. Some pages which have mysql_pconnect do never crash.
It is of course possible that it is a mysql bug, but I still don't think it should
make php crash.
This does not happen on every page, though. Mysql reports this:
000806 21:09:05 Aborted connection 15 to db: 'unconnected' user: 'meteli' host:
`localhost' (Got an error reading communication packets)
Here's the core dump:
#0 0x400365e1 in mysql_query () from /usr/local/mysql/lib/mysql/libmysqlclient.so.9
#1 0x40034bbb in mysql_real_connect () from /usr/local/mysql/lib/mysql/libmysqlclient.so.9
#2 0x8097287 in php_mysql_do_connect (ht=3, return_value=0x820cfbc, this_ptr=0x0,
return_value_used=0, persistent=1) at php_mysql.c:435
#3 0x8097586 in php_if_mysql_pconnect (ht=3, return_value=0x820cfbc, this_ptr=0x0,
return_value_used=0) at php_mysql.c:571
#4 0x8105f1c in execute (op_array=0x81ce5ac) at ./zend_execute.c:1558
#5 0x8089bcb in php_execute_script (primary_file=0xbffff91c) at main.c:1157
#6 0x80ec130 in apache_php_module_main (r=0x81f4fdc, fd=19, display_source_mode=0) at
sapi_apache.c:93
#7 0x80879ab in send_php ()
#8 0x80879ec in send_parsed_php ()
#9 0x810f613 in ap_invoke_handler ()
#10 0x8122b49 in process_request_internal ()
#11 0x8122bac in ap_process_request ()
#12 0x811a44e in child_main ()
#13 0x811a5dc in make_child ()
#14 0x811a739 in startup_children ()
#15 0x811ad66 in standalone_main ()
#16 0x811b4f3 in main ()
#17 0x4013f9cb in __libc_start_main (main=0x811b1ac <main>, argc=2, argv=0xbffffad4,
init=0x8060788 <_init>, fini=0x8148b0c <_fini>,
rtld_fini=0x4000ae60 <_dl_fini>, stack_end=0xbffffacc) at
../sysdeps/generic/libc-start.c:92
Marcus Ahlfors / mahlfors@abo.fi