[php-maint] Bug#411982: php5 makes a segmentation fault when php5-curl and php5-pgsql installed

Pirity Tamas Gabor ptg at apaczai.elte.hu
Thu Feb 22 14:54:29 UTC 2007


Package: php5
Severity: normal

Hi,

1st very sorry for my poor english, maybe you will understand me.


I use php5 for administering data in a postgres database. When php5-curl
package installed and i use tcp port to connect to the db server, then at the
and of running script php dumps core with ,,segmentation fault'' message.
This is an example, with a very-very short script:

pc22:/home/ptg/php# cat db.php
#!/usr/bin/php5
<?php
$host="host=localhost"; ## with $host=""; it works, but I have to use
## ,,tcp port connect'' to the ,,real'' db server, only with ,,test server''
## possible to go on with ,,unix socket'' type conn.

$dbconn=pg_connect($host." dbname=****** user=*** password=********")
  or die("I cannot connect to server.");
print "Connected... ";
pg_close($dbconn);
print "Disconnected.\n";
?>

pc22:/home/ptg/php# php db.php
Connected... Disconnected.
Segmentation fault (core dumped)
pc22:/home/ptg/php# 


Funny, but if i uninstall php5-curl(!!) package (some ,,strace time'' helped
me), everything works fine:

pc22:/home/ptg/php# dpkg --purge php5-curl

(Reading database ... 151030 files and directories currently installed.)
Removing php5-curl ...
Purging configuration files for php5-curl ...
pc22:/home/ptg/php# php db.php
Connected... Disconnected.
pc22:/home/ptg/php#

I can't understand what the problem is, just i like to use php5-curl
_and_ php5-pgsql package.


-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.19
Locale: LANG=hu_HU, LC_CTYPE=hu_HU (charmap=ISO-8859-2) (ignored: LC_ALL set to hu_HU)




More information about the pkg-php-maint mailing list