[php-maint] Bug#411982: similair problem in Lenny

Leen Besselink leen at kalmar6.net
Sat Feb 21 13:08:51 UTC 2009


Hi,

If I make a small script like this on an up to date AMD64 Lenny/Stable:

<?php

	$dst = pg_connect ('host=localhost dbname=somedb user=postgres');

	var_dump ($dst);

	pg_close ($dst);

?>

Then the output is this:

$ php5 -q -f import.php
resource(4) of type (pgsql link)
Segmentation fault

dmesg shows something like this:

[45267.728748] php5[7739]: segfault at 7f0e214bbac0 ip 7f0e214bbac0 sp 7fff338a2c68 error 14 in libtasn1.so.3.0.15[7f0e26699000+f000]

Only on the commandline, not in Apache2-prefork (judging by the error.log and dmesg output).

It does not fault when I replace above similair statement with (sslmode was added) as below:

	$dst = pg_connect ('host=localhost dbname=somedb user=postgres sslmode=disable');

It also does not fault when I move curl.ini outside the /etc/php5/conf.d/

I hope this gives you more information to solve this problem.

And I hope this documents the problem as much as possible with the two workarounds.

Have a nice day,
   Leen Besselink.





More information about the pkg-php-maint mailing list