Bug#347878: libmysqlclient15 calls into libmysqlclient12, leading to apache2 segfault

2006-01-17 Thread Christian Hammers
Hello Christian

On 2006-01-14 Christian Kujau wrote:
> a simple patch[0] shows it all. strange though, that nobody could
> reproduce #347878 :\

Hm, just to make you understand our mails better :)
 
The right thing to fix this bug is that every package builds against
libmysqlclient15, bug reports for that are already open and it will
be done in the next weeks.

The thing that us (e.g. Steve, Sean and me) interests far more is *why*
this bug it happening at all because it shows the exact symptoms of a
situation we were working hardly to prevent and which luckily did not
show up with other packages so far.

bye,

-christian-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#347878: libmysqlclient15 calls into libmysqlclient12, leading to apache2 segfault

2006-01-17 Thread Christian Hammers
Hello

On 2006-01-14 Christian Kujau 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.

Your md5sums and versions look but I still can't reproduce it.
I enabled "Auth_MySQL On" in the config, visible in /server-info and verified
that both shared libraries are loaded:

$ ps ax|grep apache
15542 ?Ss 0:00 /usr/sbin/apache2 -k start -DSSL
15543 ?S  0:00 /usr/sbin/apache2 -k start -DSSL
15547 ?S  0:00 /usr/sbin/apache2 -k start -DSSL
15548 ?S  0:00 /usr/sbin/apache2 -k start -DSSL
15549 ?S  0:00 /usr/sbin/apache2 -k start -DSSL
15550 ?S  0:00 /usr/sbin/apache2 -k start -DSSL
15553 ?S  0:00 /usr/sbin/apache2 -k start -DSSL
15703 pts/0R+ 0:00 grep apache

$ grep mysql /proc/15550/maps 
5556d000-55572000 r-xp  fe:00 556047 
/usr/lib/apache2/modules/mod_auth_mysql.so
55572000-55573000 rwxp 5000 fe:00 556047 
/usr/lib/apache2/modules/mod_auth_mysql.so
55b6b000-55b9 r-xp  fe:00 529963 
/usr/lib/libmysqlclient.so.12.0.0
55b9-55ba7000 rwxp 00025000 fe:00 529963 
/usr/lib/libmysqlclient.so.12.0.0
56077000-56082000 r-xp  fe:00 1297279 
/usr/lib/php5/20051025/mysql.so
56082000-56083000 rwxp a000 fe:00 1297279 
/usr/lib/php5/20051025/mysql.so
56293000-562d7000 r-xp  fe:00 531358 
/usr/lib/libmysqlclient.so.15.0.0
562d7000-563ce000 rwxp 00043000 fe:00 531358 
/usr/lib/libmysqlclient.so.15.0.0

$ lynx -dump http://localhost/torrentflux/html/index.php

   TorrentFlux Login

   Username: ___
Password: ___
Login

Maybe you really send me your /etc/apache2 directory as a tarball or give
me SSH login to your host.

bye,

-christian-



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#347878: libmysqlclient15 calls into libmysqlclient12, leading to apache2 segfault

2006-01-14 Thread Christian Kujau
Hi again,

sorry for flooding this list again, but i've worked around the problem by
rebuilding libapache2-mod-auth-mysql against libmysqlclient15 so
it-works-for-me now.

2 problems occured during "dpkg-buildpackage -uc -us -rfakeroot" (that's
how i compiled the package):

- it depended on apache-dev, although it build for apache2-dev too and i
  really did "apt-get source libapache2-mod-auth-mysql" before.
- although debian/rules is giving "--enable-apache2" to ./configure, it
looked
  for apxs and not apxs2. forcing via "--disable-apache13" does help.

it seems that --enable-apache2 did not unselect $buildapache13, because
this option is set to "yes" by default:

checking for mysql_init in -lmysqlclient... yes
DEBUG: "${enable_apache13+set}"
DEBUG: "${enable_apache2+set}" set
DEBUG: "${with_apxs+set}"
DEBUG: "x$buildapache13" xyes
DEBUG: x$buildapache2" xyes
configure: error: Apache extension helper apxs not found!

a simple patch[0] shows it all. strange though, that nobody could
reproduce #347878 :\

thanks,
Christian.

[0]http://www.nerdbynature.de/bits/sheep/libapache2-mod-auth-mysql/libapache2-mod-auth-mysql-4.3.9_debian.diff

-- 
make bzImage, not war



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#347642: Bug#347878: libmysqlclient15 calls into libmysqlclient12, leading to apache2 segfault

2006-01-14 Thread Christian Kujau
hi all[0]

i've debugged the issue a bit further and it seems that not apache2 nor
libmysqlclient15 is to blame, but libmysqlclient12 :)

normally i have apache2 started and both libaries are used:

[EMAIL PROTECTED]:~# 
apache2 /usr/lib/libmysqlclient.so.12.0.0
apache2 /usr/lib/libmysqlclient.so.15.0.0

libmysqlclient.so.12 is loaded, because i'm using mod_auth_mysql too and
its module is linked against libmysqlclient.so.12:

% ldd /usr/lib/apache2/modules/mod_auth_mysql.so
linux-gate.so.1 =>  (0xe000)
libmysqlclient.so.12 => /usr/lib/libmysqlclient.so.12 (0xb7f65000)
libc.so.6 => /lib/tls/libc.so.6 (0xb7e2e000)
libz.so.1 => /usr/lib/libz.so.1 (0xb7e1a000)
libcrypt.so.1 => /lib/tls/libcrypt.so.1 (0xb7dec000)
libnsl.so.1 => /lib/tls/libnsl.so.1 (0xb7dd6000)
libm.so.6 => /lib/tls/libm.so.6 (0xb7db)
/lib/ld-linux.so.2 (0x8000)

so when i disable mod_auth_mysql (from debian's
libapache2-mod-auth-mysql), apache2 won't segfault.

my question is now: why does libmysqlclient.so.15 call
libmysqlclient.so.12 at all? (as shown in the backtrace). because
mod_auth_mysql works as expected: when accessing protected directories
(username/passw prompt). the directory of the torrentflux installation is
not even protected by mod-auth-mysql. and: should i set up another
bugreport for libmysqlclient12? (i doubt that, though)

i could provide shell access to my box if someone wants to play around a
bit...

thank you for your time,
Christian.

[0] if i should remove someone from the Cc next time, pls tell me so in
private, so we don't spam the bugreport.

-- 
make bzImage, not war



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#347878: libmysqlclient15 calls into libmysqlclient12, leading to apache2 segfault

2006-01-14 Thread Christian Kujau
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  to continue, or q  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)
(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
/usr/lib/php5/20051025/mysql.so
#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
/usr/lib/apache2/modules/libphp5.so
#12 0xb72366d8 in execute () from /usr/lib/apache2/modules/libphp5.so
#13 0xb720e17e in zend_execute_scripts () from
/usr/lib/apache2/modules/libphp5.so
#14 0xb71cda8e in php_execute_script () from
/usr/lib/apache2/modules/libphp5.so
#15 0xb72acea8 in zend_get_zval_ptr () from
/usr/lib/apache2/modules/libphp5.so
#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  apache22.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  

pn  apache2
ii  apache2-mpm-prefork2.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,
Christian.
-- 
make bzImage, not war



-- 
To UNSUBSCRIBE, email to [

Bug#347642: Bug#347878: libmysqlclient15 calls into libmysqlclient12, leading to apache2 segfault

2006-01-13 Thread Christian Hammers
tags 347878 + help unreproducible moreinfo
thanks

Hello

On 2006-01-13 Christian Kujau wrote:
> here's a snippet of the backtrace, which is also
> included here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=347642
> 
> > Program received signal SIGSEGV, Segmentation fault.
> > [Switching to Thread -1215121184 (LWP 6378)]
> > 0xb79054cf in vio_in_addr () from /usr/lib/libmysqlclient.so.12
> > (gdb) bt
> > #0  0xb79054cf in vio_in_addr () from /usr/lib/libmysqlclient.so.12
> > #1  0xb77bad4a in mysql_real_connect () from /usr/lib/libmysqlclient.so.15
> 
> if you need further information, please let me know.

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.

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-mysql5.1.1-1  
  pn  libnss-mysql  


# 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

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

bye,

-christian-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#347878: libmysqlclient15 calls into libmysqlclient12, leading to apache2 segfault

2006-01-13 Thread Christian Kujau
Package: libmysqlclient15
Version: 5.0.18-3
Severity: important

Hi,

I have submitted #347642 regarding an apache segfault, but it
turned out that apache2 is only segfaulting when libmysqlclient15 calls
libmysqlclient12, but i don't know why. i have to keep both
versions (along with libmysqlclient14) installed, as several other
packages depend on them. here's a snippet of the backtrace, which is also
included here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=347642

> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread -1215121184 (LWP 6378)]
> 0xb79054cf in vio_in_addr () from /usr/lib/libmysqlclient.so.12
> (gdb) bt
> #0  0xb79054cf in vio_in_addr () from /usr/lib/libmysqlclient.so.12
> #1  0xb77bad4a in mysql_real_connect () from
> /usr/lib/libmysqlclient.so.15

if you need further information, please let me know.

thank you for your time,
Christian.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set
to C)

Versions of packages libmysqlclient15 depends on:
ii  libc62.3.5-11   GNU C Library: Shared libraries an
ii  mysql-common 5.0.18-3   mysql database common files (e.g.
ii  zlib1g   1:1.2.3-9  compression library - runtime

libmysqlclient15 recommends no packages.

-- no debconf information
(END)

-- 
make bzImage, not war



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]