[Bug 659554] [NEW] pgsql module causes php to crash when calling pg_last_error

JamesL 659554 at bugs.launchpad.net
Tue Oct 12 23:15:27 BST 2010


Public bug reported:

Binary package hint: php5

My Mediawiki install stopped working on upgrade to Maverick. I
eventually tracked this to the function pg_last_error in PHP. Calling
this function with a valid connection causes php to silently die. Using
GDB on php doesn't do any good, since php appears to have some sort of
signal handler and just exits with error code 1, giving no error
message. The behaviour in Mediawiki was similar - I couldn't find a log
message anywhere indicating what was wrong.

Anyway, on a fresh install of Maverick 64-bit with php5 and postgres
installed, the following program (run as postgres user or with valid
login details put in):

<?
$c = pg_connect("");
print("hello\n");
pg_last_error($c);
print("world\n");
?>

Exits on the line where pg_last_error is called. Valgrind output is
attached. I've currently fixed this by rebuilding the php package
without patch php52389-pgsql-segfault.patch, so this is probably related
to #607646.

** Affects: php5 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
pgsql module causes php to crash when calling pg_last_error
https://bugs.launchpad.net/bugs/659554
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.



More information about the Ubuntu-server-bugs mailing list