[Bug 660227] Re: php5-pgsql crash on getting an error back from postgres
** Tags added: testcase -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/660227 Title: php5-pgsql crash on getting an error back from postgres To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/660227/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 660227] Re: php5-pgsql crash on getting an error back from postgres
** Changed in: php5 (Ubuntu) Assignee: Clint Byrum (clint-fewbar) => (unassigned) -- php5-pgsql crash on getting an error back from postgres https://bugs.launchpad.net/bugs/660227 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 660227] Re: php5-pgsql crash on getting an error back from postgres
This bug was fixed in the package php5 - 5.3.3-1ubuntu9.1 --- php5 (5.3.3-1ubuntu9.1) maverick-proposed; urgency=low * debian/patches/php52389-pgsql-segfault.patch: removing, causes error handling to fail (LP: #660227) -- Clint ByrumThu, 14 Oct 2010 06:46:02 -0700 ** Changed in: php5 (Ubuntu Maverick) Status: Fix Committed => Fix Released -- php5-pgsql crash on getting an error back from postgres https://bugs.launchpad.net/bugs/660227 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 660227] Re: php5-pgsql crash on getting an error back from postgres
Copied to natty as well. ** Changed in: php5 (Ubuntu) Status: In Progress => Fix Released -- php5-pgsql crash on getting an error back from postgres https://bugs.launchpad.net/bugs/660227 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 660227] Re: php5-pgsql crash on getting an error back from postgres
I had the same problem in maverick for i386: blank response from the server on bad pg_connect() or pg_query() execution. By the way, the same happened when calling pg_last_error(), even when there were no connection or query errors at all. The proposed package solved the problem. -- php5-pgsql crash on getting an error back from postgres https://bugs.launchpad.net/bugs/660227 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 660227] Re: php5-pgsql crash on getting an error back from postgres
I can confirm that the updated package in maverick-proposed fixes this problem for me. -- php5-pgsql crash on getting an error back from postgres https://bugs.launchpad.net/bugs/660227 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 660227] Re: php5-pgsql crash on getting an error back from postgres
Yep, the proposed package has no problems for me (x84-64, either a clean virtual machine install or my laptop). -- php5-pgsql crash on getting an error back from postgres https://bugs.launchpad.net/bugs/660227 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 660227] Re: php5-pgsql crash on getting an error back from postgres
** Tags added: verification-done ** Tags removed: verification-needed -- php5-pgsql crash on getting an error back from postgres https://bugs.launchpad.net/bugs/660227 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 660227] Re: php5-pgsql crash on getting an error back from postgres
I verified that the fix is good on a clean maverick i386 install with only php5 added from proposed: cl...@maverick-mini-32:~$ fgrep Package: /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_maverick-proposed_*_Packages|cut -d' ' -f2|xargs dpkg -l 2>&1|grep -v '^No' |grep '^ii' ii libc-bin2.12.1-0ubuntu6 Embedded GNU C Library: Binaries ii libc6 2.12.1-0ubuntu6 Embedded GNU C Library: Shared libraries ii libdrm-intel1 2.4.21-1ubuntu2 Userspace interface to intel-specific kernel DRM services -- runtime ii libdrm-nouveau1 2.4.21-1ubuntu2 Userspace interface to nouveau-specific kernel DRM services -- runtime ii libdrm-radeon1 2.4.21-1ubuntu2 Userspace interface to radeon-specific kernel DRM services -- runtime ii libdrm2 2.4.21-1ubuntu2 Userspace interface to kernel DRM services -- runtime ii libldap-2.4-2 2.4.23-0ubuntu3 OpenLDAP libraries ii libudev0162-2 udev library ii linux-headers-2.6.35-22 2.6.35-22.34 Header files related to Linux kernel version 2.6.35 ii linux-headers-2.6.35-22-generic 2.6.35-22.34 Linux kernel headers for version 2.6.35 on x86/x86_64 ii linux-image-2.6.35-22-generic 2.6.35-22.34 Linux kernel image for version 2.6.35 on x86/x86_64 ii php5-cli5.3.3-1ubuntu9.1 command-line interpreter for the php5 scripting language ii php5-common 5.3.3-1ubuntu9.1 Common files for packages built from the php5 source ii php5-pgsql 5.3.3-1ubuntu9.1 PostgreSQL module for php5 ii tzdata 2010m-0ubuntu0.10.10 time zone and daylight-saving time data ii udev162-2 rule-based device node and kernel event manager cl...@maverick-mini-32:~$ php test.php PHP Warning: pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? in /home/clint/test.php on line 3 Connection Failure -- php5-pgsql crash on getting an error back from postgres https://bugs.launchpad.net/bugs/660227 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 660227] Re: php5-pgsql crash on getting an error back from postgres
** Branch linked: lp:ubuntu/maverick-proposed/php5 -- php5-pgsql crash on getting an error back from postgres https://bugs.launchpad.net/bugs/660227 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 660227] Re: php5-pgsql crash on getting an error back from postgres
I asked for confirmation in bug 607646 as well. ** Also affects: php5 (Ubuntu Maverick) Importance: Undecided Status: New ** Changed in: php5 (Ubuntu Maverick) Status: New => Fix Committed ** Tags added: verification-needed -- php5-pgsql crash on getting an error back from postgres https://bugs.launchpad.net/bugs/660227 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 660227] Re: php5-pgsql crash on getting an error back from postgres
Ok, this is fixed by removing the patch added in bug #607646 Merge proposal has the diff. I've tested building on i386 (via ppa) and amd64, both cases produce the expected output. -- php5-pgsql crash on getting an error back from postgres https://bugs.launchpad.net/bugs/660227 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 660227] Re: php5-pgsql crash on getting an error back from postgres
** Branch linked: lp:~clint-fewbar/ubuntu/maverick/php5/remove-pgsql- segfault-patch -- php5-pgsql crash on getting an error back from postgres https://bugs.launchpad.net/bugs/660227 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 660227] Re: php5-pgsql crash on getting an error back from postgres
** Description changed: Binary package hint: php5 A connect failure in pg_connect() or an error in pg_query() will result in php exiting after printing a WARNING instead of continuing execution. I have attached a test script that tries to connect to a non-existent DB - on Debian Lenny prints an error correctly: $ php test.php Warning: pg_connect(): Unable to connect to PostgreSQL server: FATAL: database "mary" does not exist in /home/mattc/test.php on line 3 Connection Failure - But on Maverick simply dies after the pg_connect() failure - note that "Connection Failure" is not printed: - $ php test.php + $ php test.php Warning: pg_connect(): Unable to connect to PostgreSQL server: FATAL: database "mary" does not exist - in /home/mattc/test.php on line 3 - + in /home/mattc/test.php on line 3 This looks like a related upstream bug: http://bugs.php.net/bug.php?id=52682 ProblemType: Bug DistroRelease: Ubuntu 10.10 Package: php5-pgsql 5.3.3-1ubuntu9 ProcVersionSignature: Ubuntu 2.6.35-22.33-generic 2.6.35.4 Uname: Linux 2.6.35-22-generic i686 NonfreeKernelModules: ksplice_r5fvn98f ksplice_vx7641xl ksplice_hy9n8rtk_vmlinux_new ksplice_hy9n8rtk ksplice_wwlcxuj6 ksplice_ndv79lmx_vmlinux_new ksplice_ndv79lmx ksplice_wqjhxpxk_vmlinux_new ksplice_wqjhxpxk ksplice_vxxnjbjc ksplice_aoojhvc5_vmlinux_new ksplice_aoojhvc5 ksplice_csiv07iy_vmlinux_new ksplice_csiv07iy nvidia Architecture: i386 Date: Thu Oct 14 10:23:38 2010 ProcEnviron: - PATH=(custom, no user) - LANG=en_NZ.UTF-8 - SHELL=/bin/bash + PATH=(custom, no user) + LANG=en_NZ.UTF-8 + SHELL=/bin/bash SourcePackage: php5 + + + === Stable Release Update (SRU) information === + + IMPACT + + The patch being removed does not fix any reproducible problem, so it + really should not have been added in the first place. + + DEV BRANCH + + Natty is not open yet. + + PATCH + + See associated merge proposal + + TEST CASE: + + The php script labeled "Test script" attached to this bug reproduces the + problem exactly. If the string "Connection Failure" is not seen after + running it, the bug is present. + + REGRESSION POTENTIAL + + If we did fix the pgsql segfaulting problem reported in + + https://bugs.launchpad.net/ubuntu/+source/php5/+bug/607646 + + It will return. However, that bug was never actually confirmed by users, + and so I think the potential is "VERY LOW" -- php5-pgsql crash on getting an error back from postgres https://bugs.launchpad.net/bugs/660227 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 660227] Re: php5-pgsql crash on getting an error back from postgres
** Changed in: php5 (Ubuntu) Assignee: (unassigned) => Clint Byrum (clint-fewbar) ** Changed in: php5 (Ubuntu) Status: Confirmed => In Progress -- php5-pgsql crash on getting an error back from postgres https://bugs.launchpad.net/bugs/660227 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 660227] Re: php5-pgsql crash on getting an error back from postgres
Also, I suspect I may have introduced this regression in this bug fix: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/607646 -- php5-pgsql crash on getting an error back from postgres https://bugs.launchpad.net/bugs/660227 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 660227] Re: php5-pgsql crash on getting an error back from postgres
I've tried the test.php script on maverick and it definitely exits abruptly where one would not expect it to. Marking Confirmed, setting Importance to High, as I believe this may affect all php5-pgsql users in a very negative way (errors should not crash your PHP!) ** Changed in: php5 (Ubuntu) Status: New => Confirmed ** Changed in: php5 (Ubuntu) Importance: Undecided => High -- php5-pgsql crash on getting an error back from postgres https://bugs.launchpad.net/bugs/660227 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 660227] Re: php5-pgsql crash on getting an error back from postgres
** Tags added: regression-release -- php5-pgsql crash on getting an error back from postgres https://bugs.launchpad.net/bugs/660227 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 660227] Re: php5-pgsql crash on getting an error back from postgres
** Attachment added: "Test script" https://bugs.launchpad.net/bugs/660227/+attachment/1691659/+files/test.php ** Attachment added: "Dependencies.txt" https://bugs.launchpad.net/bugs/660227/+attachment/1691660/+files/Dependencies.txt ** Attachment added: "PHPConf.etc.php5.apache2.php.ini.txt" https://bugs.launchpad.net/bugs/660227/+attachment/1691661/+files/PHPConf.etc.php5.apache2.php.ini.txt ** Attachment added: "PHPInstalledModules.txt" https://bugs.launchpad.net/bugs/660227/+attachment/1691662/+files/PHPInstalledModules.txt -- php5-pgsql crash on getting an error back from postgres https://bugs.launchpad.net/bugs/660227 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs