Bug#397904: [php-maint] Bug#397904: Another confirmation of this bug reproducing

Ondřej Surý ondrej at sury.org
Thu Feb 1 10:42:33 CET 2007


There is inneed some ABI incompatibility with libmysqlclient from
experimental.  Downgrade your libmysqlclient15off to version from
unstable and you should be fine.  This is in fact not a PHP bug, but
MySQL bug, but since Sean is in mysql team as well, I'll let him handle
this.

Ondrej. 

On Čt, 2007-02-01 at 01:19 -0800, Elizabeth Fong wrote:
> Version: 5.2.0-8
> tags 397904 - moreinfo unreproducible
> thanks
> 
> Hi, all.
> 
> I'm getting similar segfault symptoms on this end from an installation 
> of Mediawiki on top of PHP5 using mysqli, and from an installation of 
> phpBB on top of PHP5 using either the mysqli or mysql functions (but as 
> far as I can tell, only mysqli.so is actually loaded).  The segfaults 
> occur mid-request, but before any data can be sent to the client and I 
> can generally pin them down to specific function calls in the PHP 
> scripts being compiled/run.
> 
> 
> Thanks,
> 
> Elizabeth Fong
> 
> Here's a sample backtrace:
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread -1216465216 (LWP 31403)]
> 0xb7b98909 in free () from /lib/tls/libc.so.6
> (gdb)
> (gdb) backtrace
> #0  0xb7b98909 in free () from /lib/tls/libc.so.6
> #1  0xb6cd9f31 in my_no_flags_free () from /usr/lib/libmysqlclient.so.15
> #2  0xb6cffe7b in mysql_select_db () from /usr/lib/libmysqlclient.so.15
> #3  0xb6d00138 in mysql_close () from /usr/lib/libmysqlclient.so.15
> #4  0xb6994eee in zm_startup_mysql () from 
> /usr/lib/php5/20060613+lfs/mysql.so
> #5  0xb731f8b3 in list_entry_destructor () from 
> /usr/lib/apache2/modules/libphp5.so
> #6  0xb731c8c8 in zend_hash_quick_find () from 
> /usr/lib/apache2/modules/libphp5.so
> #7  0xb731cb67 in zend_hash_graceful_reverse_destroy () from 
> /usr/lib/apache2/modules/libphp5.so
> #8  0xb731f6fd in zend_destroy_rsrc_list () from 
> /usr/lib/apache2/modules/libphp5.so
> #9  0xb7312a3f in zend_deactivate () from 
> /usr/lib/apache2/modules/libphp5.so
> #10 0xb72ce14c in php_request_shutdown () from 
> /usr/lib/apache2/modules/libphp5.so
> #11 0xb7395f8c in php_ap2_register_hook () from 
> /usr/lib/apache2/modules/libphp5.so
> #12 0x08074587 in ap_run_handler ()
> #13 0x08077731 in ap_invoke_handler ()
> #14 0x08084728 in ap_process_request ()
> #15 0x080819ce in ap_register_input_filter ()
> #16 0x0807b3c7 in ap_run_process_connection ()
> #17 0x08088704 in ap_graceful_stop_signalled ()
> #18 0x08088964 in ap_graceful_stop_signalled ()
> #19 0x0808972a in ap_mpm_run ()
> #20 0x080621ef in main ()
> 
> elizabeth at sally:/etc/php5/apache2$ grep mysql php.ini
> extension=mysqli.so
> mysql.allow_persistent = On
> mysql.max_persistent = -1
> mysql.max_links = -1
> ; Default port number for mysql_connect().  If unset, mysql_connect() 
> will use
> ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
> mysql.default_port =
> mysql.default_socket =
> ; Default host for mysql_connect() (doesn't apply in safe mode).
> mysql.default_host =
> ; Default user for mysql_connect() (doesn't apply in safe mode).
> mysql.default_user =
> ; Default password for mysql_connect() (doesn't apply in safe mode).
> ; *Any* user with PHP access can run 'echo 
> get_cfg_var("mysql.default_password")
> mysql.default_password =
> mysql.connect_timeout = 60
> mysql.trace_mode = Off
> mysqli.max_links = -1
> ; Default port number for mysqli_connect().  If unset, mysqli_connect() 
> will use
> ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
> mysqli.default_port = 3306
> mysqli.default_socket =
> ; Default host for mysql_connect() (doesn't apply in safe mode).
> mysqli.default_host =
> ; Default user for mysql_connect() (doesn't apply in safe mode).
> mysqli.default_user =
> ; Default password for mysqli_connect() (doesn't apply in safe mode).
> ; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
> mysqli.default_pw =
> mysqli.reconnect = Off
> 
> -- System Information:
> Debian Release: 4.0
>    APT prefers unstable
>    APT policy: (990, 'unstable'), (1, 'experimental')
> Architecture: i386 (i686)
> Shell:  /bin/sh linked to /bin/bash
> Kernel: Linux 2.6.16.11h
> Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
> 
> Versions of packages php5-mysql depends on:
> ii  libapache2-mod-php5 [phpapi 5.2.0-8      server-side, HTML-embedded 
> scripti
> ii  libc6                       2.3.6.ds1-10 GNU C Library: Shared libraries
> ii  libmysqlclient15off         5.1.11beta-1 mysql database client library
> ii  php5-cli [phpapi-20060613+l 5.2.0-8      command-line interpreter 
> for the p
> ii  php5-common                 5.2.0-8      Common files for packages 
> built fr
> 
> php5-mysql recommends no packages.
> 
> -- debconf information:
>    php5/remove_extension: true
>    php5/extension_mysql_apache2: true
>    php5/add_extension: true
>    php5/extension_mysql_cli: true
> 
> 
> 
> _______________________________________________
> pkg-php-maint mailing list
> pkg-php-maint at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-php-maint
-- 
Ondřej Surý <ondrej at sury.org>  ***  http://blog.rfc1925.org/
Kulturní občasník              ***  http://www.obcasnik.cz/






More information about the pkg-php-maint mailing list