[php-maint] Bug#347642: Bug#347878: libmysqlclient15 calls into libmysqlclient12, leading to apache2 segfault

Christian Kujau evil at g-house.de
Sat Jan 14 18:27:36 UTC 2006

On Fri, January 13, 2006 22:26, Christian Hammers wrote:
> I've just installed apache2/php5/torrentflux but could not reproduce this
>  bug. I couldn't figure out how a torrent URL looks like but I could login
> and use the menu without errors.

no, i could not even login because i was not even presented the login site.
when i reported the error the forst time i just ran updated the system.
for reproducing it today i ran apt-get update/upgrade again and now my
versions are these ones:

libmysqlclient12: Version: 4.0.24-10sarge1
libmysqlclient14: Version: 4.1.15-1
libmysqlclient15: Version: 5.0.18-4
libmysqlclient15-dev: Version: 5.0.18-4

i've rerun apache in gdb and the just pointed the browser to the
.../index.php file of the torrentflux distribution (browser did not show
anything, white page output, no login attempt possible):

(gdb) run -X
Starting program: /usr/sbin/apache2 -X
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1214908192 (LWP 12841)]
(no debugging symbols found)
[Sat Jan 14 19:09:57 2006] [error] (EAI 2)Name or service not known:
Cannot resolve host name ipv6.housecafe.de --- ignoring!
(no debugging symbols found)
---Type <return> to continue, or q <return> to quit---
(no debugging symbols found)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1214908192 (LWP 12841)]
0xb79394cf in vio_in_addr () from /usr/lib/libmysqlclient.so.12
(gdb) bt
#0  0xb79394cf in vio_in_addr () from /usr/lib/libmysqlclient.so.12
#1  0xb77eed4a in mysql_real_connect () from /usr/lib/libmysqlclient.so.15
#2  0xb6ccd431 in zif_mysql_field_name () from
#3  0xb72370be in execute () from /usr/lib/apache2/modules/libphp5.so
#4  0xb72366d8 in execute () from /usr/lib/apache2/modules/libphp5.so
#5  0xb7236b79 in execute () from /usr/lib/apache2/modules/libphp5.so
#6  0xb72366d8 in execute () from /usr/lib/apache2/modules/libphp5.so
#7  0xb7236b79 in execute () from /usr/lib/apache2/modules/libphp5.so
#8  0xb72366d8 in execute () from /usr/lib/apache2/modules/libphp5.so
#9  0xb7236b79 in execute () from /usr/lib/apache2/modules/libphp5.so
#10 0xb72366d8 in execute () from /usr/lib/apache2/modules/libphp5.so
#11 0xb723c9bf in zend_get_zval_ptr () from
#12 0xb72366d8 in execute () from /usr/lib/apache2/modules/libphp5.so
#13 0xb720e17e in zend_execute_scripts () from
#14 0xb71cda8e in php_execute_script () from
#15 0xb72acea8 in zend_get_zval_ptr () from
#16 0x08077336 in ap_run_handler ()
#17 0x08077732 in ap_invoke_handler ()
#18 0x080696fd in ap_process_request ()
#19 0x08064b19 in _start ()

> My package versions and md5sums are as follow. Please report yours using
> the same commands:
> # dpkg -l apache2 apache2-mpm-prefork php5 php5-mysql libmysqlclient12
> libmysqlclient15 libpam-mysql libnss-mysql ...
> ii  apache2                        2.0.55-3 ii  apache2-mpm-prefork
> 2.0.55-3
> ii  libmysqlclient12                  4.0.24-10sarge1 ii  libmysqlclient15
> 5.0.18-1
> ii  php5                              5.1.1-1 ii  php5-mysql
> 5.1.1-1
> pn  libnss-mysql                      <none>

pn  apache2                                        <none>
ii  apache2-mpm-prefork                            2.0.55-3
pi  libmysqlclient12                               4.0.24-10sarge1
ii  libmysqlclient15                               5.0.18-4
ii  libnss-mysql                                   1.0-1
ii  libpam-mysql                                   0.5.0-7
ii  php5                                           5.1.1-1
ii  php5-mysql                                     5.1.1-1

(since today my libmysqlclient15 is even newer :))

> # md5sum /usr/lib/libmysqlclient.so.15.0.0
> /usr/lib/libmysqlclient.so.12.0.0 /usr/lib/php5/20051025/mysql.so
> /usr/lib/apache2/modules/libphp5.so /usr/sbin/apache2
> 1637d1a0bb72bbb7435646c0f27fb8c0  /usr/lib/libmysqlclient.so.15.0.0
> 8c9755ed5e668be02c183b000e4debca  /usr/lib/libmysqlclient.so.12.0.0
> 2e0f78067e7e5e7b983f495f7e2fe6b9  /usr/lib/php5/20051025/mysql.so
> 1aeb275ae4a624c6c2484b05e760695d  /usr/lib/apache2/modules/libphp5.so
> 42fdd97f9282560377b0d754fed85c5e  /usr/sbin/apache2

915d718470733b6755070f6b73630b72  /usr/lib/libmysqlclient.so.15.0.0
8c9755ed5e668be02c183b000e4debca  /usr/lib/libmysqlclient.so.12.0.0
2e0f78067e7e5e7b983f495f7e2fe6b9  /usr/lib/php5/20051025/mysql.so
1aeb275ae4a624c6c2484b05e760695d  /usr/lib/apache2/modules/libphp5.so
42fdd97f9282560377b0d754fed85c5e  /usr/sbin/apache2

except for the newer libmysqlclient.so.15.0.0 all checksums look like yours.

> Are you using MySQL for NSS or PAM (/etc/passwd like usertables)?

i've installed libnss/pam-mysql, but did not touch nsswitch.conf yet. so
no, i'm not using mysql for nss/pam.

thank you for your assistance,
make bzImage, not war

More information about the pkg-php-maint mailing list