[Bug 607646] Re: Segmentation fault in PHP5 with pgsql module

2010-10-18 Thread Miroslav Zacek
A colleague of mine, Jaromir, provided a fixed patch and reproducible
test case. Please check the main stream bug report
http://bugs.php.net/bug.php?id=52389 for details

-- 
Segmentation fault in PHP5 with pgsql module
https://bugs.launchpad.net/bugs/607646
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 607646] Re: Segmentation fault in PHP5 with pgsql module

2010-10-15 Thread Martin Pitt
An updated php5 was just uploaded to maverick-proposed which reverts
this patch, see bug 660227. Can you please check if the original crash
here is still an issue with that?

-- 
Segmentation fault in PHP5 with pgsql module
https://bugs.launchpad.net/bugs/607646
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 607646] Re: Segmentation fault in PHP5 with pgsql module

2010-10-11 Thread JamesL
I just upgraded to Maverick this morning and this patch has broken pgsql
quite badly. The following code now causes PHP to silently die (with
valid connection details):

$conn = pg_connect($details);
pg_last_error($conn);

This caused my MediaWiki installation to suddenly stop working. I've
rebuilt the package without this patch (php52389-pgsql-segfault.patch)
and everything works fine again. Can I suggest reverting the patch until
a test case for the original bug exists?

-- 
Segmentation fault in PHP5 with pgsql module
https://bugs.launchpad.net/bugs/607646
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 607646] Re: Segmentation fault in PHP5 with pgsql module

2010-10-11 Thread Clint Byrum
Hi JamesL, thanks for the heads up, and I am sorry that you are
experiencing problems.

Can you please open a new bug report for this? Any details you can
provide would be very helpful. Specifically:

* A repeatable test case (I'm installing mediawiki now to give it a go, but if 
you have something smaller that would be great)
* A coredump (if so, make it a private bug report)
* A backtrace with debug symbols (apt-get install php5-dbg)

After you create the bug report, if you could subscribe me, that would
be appreciated.

-- 
Segmentation fault in PHP5 with pgsql module
https://bugs.launchpad.net/bugs/607646
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 607646] Re: Segmentation fault in PHP5 with pgsql module

2010-08-20 Thread Launchpad Bug Tracker
This bug was fixed in the package php5 - 5.3.3-1ubuntu4

---
php5 (5.3.3-1ubuntu4) maverick; urgency=low

  * debian/php5-module.ini: # replaced with ; (LP: #591286)
  * debian/patches/php52389-pgsql-segfault.patch (LP: #607646)
- Applying patch for upstream bug that causes segfaults in pgsql
 -- Clint Byrum cl...@ubuntu.com   Fri, 13 Aug 2010 00:07:15 -0700

** Changed in: php5 (Ubuntu)
   Status: Confirmed = Fix Released

-- 
Segmentation fault in PHP5 with pgsql module
https://bugs.launchpad.net/bugs/607646
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 607646] Re: Segmentation fault in PHP5 with pgsql module

2010-08-13 Thread Clint Byrum
** Changed in: php5 (Ubuntu)
   Status: Triaged = In Progress

** Changed in: php5 (Ubuntu)
 Assignee: (unassigned) = Clint Byrum (clint-fewbar)

-- 
Segmentation fault in PHP5 with pgsql module
https://bugs.launchpad.net/bugs/607646
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 607646] Re: Segmentation fault in PHP5 with pgsql module

2010-08-13 Thread Launchpad Bug Tracker
** Branch linked: lp:~clint-fewbar/ubuntu/maverick/php5/maverick-beta-
papercuts

-- 
Segmentation fault in PHP5 with pgsql module
https://bugs.launchpad.net/bugs/607646
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 607646] Re: Segmentation fault in PHP5 with pgsql module

2010-08-13 Thread Clint Byrum
** Changed in: php5 (Ubuntu)
   Status: In Progress = Confirmed

** Changed in: php5 (Ubuntu)
 Assignee: Clint Byrum (clint-fewbar) = (unassigned)

-- 
Segmentation fault in PHP5 with pgsql module
https://bugs.launchpad.net/bugs/607646
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 607646] Re: Segmentation fault in PHP5 with pgsql module

2010-07-26 Thread Chuck Short
Thanks for the patch. Ill submit this patch upstream.

chuck

** Changed in: php5 (Ubuntu)
   Importance: Undecided = Medium

** Changed in: php5 (Ubuntu)
   Status: New = Triaged

-- 
Segmentation fault in PHP5 with pgsql module
https://bugs.launchpad.net/bugs/607646
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 607646] Re: Segmentation fault in PHP5 with pgsql module

2010-07-26 Thread Miroslav Zacek
Your welcome. I've submited the patch to PHP already, see
http://bugs.php.net/bug.php?id=52389 because we've detected this bug in
Mac and Windows as well.

** Bug watch added: bugs.php.net/ #52389
   http://bugs.php.net/bug.php?id=52389

-- 
Segmentation fault in PHP5 with pgsql module
https://bugs.launchpad.net/bugs/607646
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 607646] Re: Segmentation fault in PHP5 with pgsql module

2010-07-21 Thread Miroslav Zacek
I think I've found the problem. It is in the pgsql extension. The memory
for the notices is allocated as non persistent but the whole structure
is persistent. The destructor tries to free memory that was already
cleaned by the garbage collector which causes the segmentation fault.
I've created a simple patch and it works for me now.

** Patch added: pgsql.patch
   http://launchpadlibrarian.net/52262645/pgsql.patch

-- 
Segmentation fault in PHP5 with pgsql module
https://bugs.launchpad.net/bugs/607646
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 607646] Re: Segmentation fault in PHP5 with pgsql module

2010-07-21 Thread Brian Murray
** Tags added: patch

-- 
Segmentation fault in PHP5 with pgsql module
https://bugs.launchpad.net/bugs/607646
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 607646] Re: Segmentation fault in PHP5 with pgsql module

2010-07-20 Thread Miroslav Zacek

** Attachment added: backtrace
   http://launchpadlibrarian.net/52202146/gdb-apache2_php.txt

-- 
Segmentation fault in PHP5 with pgsql module
https://bugs.launchpad.net/bugs/607646
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 607646] Re: Segmentation fault in PHP5 with pgsql module

2010-07-20 Thread Miroslav Zacek
It looks like something similar was already here one year ago...

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=542514

** Bug watch added: Debian Bug tracker #542514
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=542514

-- 
Segmentation fault in PHP5 with pgsql module
https://bugs.launchpad.net/bugs/607646
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 607646] Re: Segmentation fault in PHP5 with pgsql module

2010-07-20 Thread Miroslav Zacek
I tried recompile php without the suhosin patch and it is still
segfaulting.

See the *notice in frame  #2 address is out of bounds (in function
_php_pgsql_notice_ptr_dtor)

This bug look very similar to php5 bug  #542514 which was found in
5.2.10 and fixed in 5.2.11.

** Attachment added: backtrace
   http://launchpadlibrarian.net/52220534/gdb-apache2_php_no_suhosin.txt

-- 
Segmentation fault in PHP5 with pgsql module
https://bugs.launchpad.net/bugs/607646
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs