Debian Bug report logs - #620015
php5-mysql: mysql[i]_connect() fails without error message

version graph

Package: php5-mysql; Maintainer for php5-mysql is (unknown);

Reported by: Stefan Froehlich <debian@froehlich.priv.at>

Date: Tue, 29 Mar 2011 10:33:01 UTC

Severity: important

Found in version php5/5.3.3-7+squeeze1

Fixed in versions php5/5.4.4-7, 5.4.4-14

Done: Ondřej Surý <ondrej@sury.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#620015; Package php5-mysql. (Tue, 29 Mar 2011 10:33:04 GMT) (full text, mbox, link).


Acknowledgement sent to Stefan Froehlich <debian@froehlich.priv.at>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Tue, 29 Mar 2011 10:33:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Stefan Froehlich <debian@froehlich.priv.at>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: php5-mysql: mysql[i]_connect() fails without error message
Date: Tue, 29 Mar 2011 12:22:17 +0200
[Message part 1 (text/plain, inline)]
Package: php5-mysql
Version: 5.3.3-7+squeeze1
Severity: important


A complex PHP application fails since the upgrade from lenny to squeeze.
The final statement is a mysql_connect() (or mysqli_connect() with no
difference) which fails (i.e. does not return a handle) without any obvious
reason and without providing an error message or an error number.

This bug does occur only on some pages; it has been reproducible after some
efforts, but only in the whole context of the application. The behaviour is
as follows: calling some known PHP program over the web triggers the bug
(though the program itself finishes completely fine). After this, every
call to the same apache process fails with the problem stated above. (This
is why I am unsure whether the bug is in php-mysql at all; the real cause
might as well be somewhere in php-common).

Changes to the application in unrelated places of the code can make the bug
occur / vanish, not following any clear pattern => so I was not able to
isolate the real source of the problem. The behaviour of the problem makes
it feel like some memory over write in C, but I am definitely not capable
of debugging it on my own.

After some usenet discussion (in German) following the initial posting
<1t4d66471bi1665n3e9%sfroehli@Froehlich.Priv.at> I got to the conclusion
that the problem is within PHP, so I compiled a stock version of PHP-5.3.6
to /usr/local and used it instead of the Debian package. This solved the
issue up to now.

Stefan

-- System Information:
Debian Release: 6.0.1
  APT prefers squeeze-updates
  APT policy: (500, 'squeeze-updates'), (500, 'oldstable'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.28.7 (SMP w/2 CPU cores)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages php5-mysql depends on:
ii  libapache2-mod-php5 [ph 5.3.3-7+squeeze1 server-side, HTML-embedded scripti
ii  libc6                   2.11.2-10        Embedded GNU C Library: Shared lib
ii  libmysqlclient16        5.1.49-3         MySQL database client library
ii  php5-cli [phpapi-200906 5.3.3-7+squeeze1 command-line interpreter for the p
ii  php5-common             5.3.3-7+squeeze1 Common files for packages built fr

php5-mysql recommends no packages.

php5-mysql suggests no packages.

-- no debconf information
[php.ini (text/html, attachment)]
[apache2.conf (text/plain, attachment)]
[my.cnf (text/plain, attachment)]

Reply sent to Ondřej Surý <ondrej@sury.org>:
You have taken responsibility. (Fri, 04 Jul 2014 13:03:12 GMT) (full text, mbox, link).


Notification sent to Stefan Froehlich <debian@froehlich.priv.at>:
Bug acknowledged by developer. (Fri, 04 Jul 2014 13:03:12 GMT) (full text, mbox, link).


Message #10 received at 620015-done@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@sury.org>
To: 614904-done@bugs.debian.org, 620015-done@bugs.debian.org, 704764-done@bugs.debian.org, 628054-done@bugs.debian.org, 620948-done@bugs.debian.org, 620423-done@bugs.debian.org, 620015-done@bugs.debian.org
Subject: Re: Closing bugs filled against php5 in oldstable
Date: Fri, 04 Jul 2014 15:00:44 +0200
Version: 5.4.4-14

One more batch...

On Fri, Jul 4, 2014, at 14:09, Ondřej Surý wrote:
> Version: 5.4.4-14
> 
> Hey all,
> 
> I am closing the bugs that were filled against php5 5.3 in Debian
> oldstable
> (well and earlier)...
> 
> Feel free to reopen the bug in you can reproduce it with php5 from
> current
> stable Debian release.
> 
> Cheers,
> -- 
> Ondřej Surý <ondrej@sury.org>
> Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server


-- 
Ondřej Surý <ondrej@sury.org>
Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server



Marked as fixed in versions php5/5.4.4-7. Request was from Ondřej Surý <ondrej@debian.org> to control@bugs.debian.org. (Wed, 09 Jul 2014 08:51:23 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 07 Aug 2014 07:27:21 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 03:40:22 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.