Package: php5-pgsql
Version: 5.2.0-8+etch7
Followup-For: Bug #411982

When using the following code:

<?php

// Connecting, selecting database
$dbconn = pg_connect("host=localhost dbname=db user=usr password=pass")
    or die('Could not connect: ' . pg_last_error());

// Performing SQL query
$query = 'SELECT * FROM hosts';
$result = pg_query($query) or die('Query failed: ' . pg_last_error());

// Printing results in HTML
echo "<table>\n";
while ($line = pg_fetch_array($result, null, PGSQL_ASSOC)) {
    print_r($line);
}
echo "</table>\n";

// Free resultset
pg_free_result($result);

// Closing connection
pg_close($dbconn);
?>

This is the output:

<table>
</table>
Segmentation fault

[EMAIL PROTECTED]:~/scripts/mserver.nl$ gdb --args /usr/bin/php transformer.php

(gdb) run
Starting program: /usr/bin/php transformer.php
Failed to read a valid object file image from memory.
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1215231072 (LWP 3045)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
---Type <return> to continue, or q <return> to quit---
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
<table>
</table>


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1215231072 (LWP 3045)]
0xb74bb2f0 in ?? ()




-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-5-486
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages php5-pgsql depends on:
ii  libapache2-mod-php5 [p 5.2.0-8+etch7     server-side, HTML-embedded scripti
ii  libc6                  2.3.6.ds1-13etch2 GNU C Library: Shared libraries
ii  libpq4                 8.1.9-0etch1      PostgreSQL C client library
ii  php5-cli [phpapi-20060 5.2.0-8+etch7     command-line interpreter for the p
ii  php5-common            5.2.0-8+etch7     Common files for packages built fr

php5-pgsql recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to