FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Confirm PG-related segfault in current PHP version
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
Confirm PG-related segfault in current PHP version [message #182798] Fri, 13 September 2013 20:12 Go to next message
Fiver is currently offline  Fiver
Messages: 35
Registered: July 2013
Karma: 0
Member
add to buddy list
ignore all messages by this user
If anybody here is running an *up-to-date* version of PHP, and has
access to a PostgreSQL database, could you please check if this results
in a segfault for you?

$conn = pg_connect("dbname=postgres user=temp");
pg_trace("_trace.log", "w", $conn);
pg_query($conn, "SELECT 1 FROM xxx");
//pg_untrace($conn); // <-- untrace prevents segfault
echo "still alive\n";

The database and query don't matter, as long as you can connect and the
pg_query() statement does not succeed.

I strongly suspect (from previous experience with several segfaults in
the pg module over the years) that this bug is still present in the
master branch, but I can't report it because I'm running PHP 5.4.9.

Compiling and configuring PHP with the necessary dependencies to
reproduce this bug is a major PITA, I don't have time for this. If I can
get confirmation that this is still an issue, I'll report it, otherwise
hopefully somebody else will discover and report it in the future.

regards,
5er
Re: Confirm PG-related segfault in current PHP version [message #182799 is a reply to message #182798] Fri, 13 September 2013 21:55 Go to previous messageGo to next message
lb is currently offline  lb
Messages: 4
Registered: January 2012
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
Fiver wrote:
> If anybody here is running an *up-to-date* version of PHP, and has
> access to a PostgreSQL database, could you please check if this results
> in a segfault for you?
>
> $conn = pg_connect("dbname=postgres user=temp");
> pg_trace("_trace.log", "w", $conn);
> pg_query($conn, "SELECT 1 FROM xxx");
> //pg_untrace($conn); // <-- untrace prevents segfault
> echo "still alive\n";
>
> The database and query don't matter, as long as you can connect and the
> pg_query() statement does not succeed.
>
> I strongly suspect (from previous experience with several segfaults in
> the pg module over the years) that this bug is still present in the
> master branch, but I can't report it because I'm running PHP 5.4.9.
>
> Compiling and configuring PHP with the necessary dependencies to
> reproduce this bug is a major PITA, I don't have time for this. If I can
> get confirmation that this is still an issue, I'll report it, otherwise
> hopefully somebody else will discover and report it in the future.

I ran your script with PHP-5.5.3 (CLI) talking to a PostgreSQL-9.3.0 server.
Connection OK, trace file written, query gets error, no segfault, says "still
alive" at end.
Re: Confirm PG-related segfault in current PHP version [message #182800 is a reply to message #182799] Fri, 13 September 2013 22:33 Go to previous message
Fiver is currently offline  Fiver
Messages: 35
Registered: July 2013
Karma: 0
Member
add to buddy list
ignore all messages by this user
On 2013-09-14 03:55, lb wrote:
> I ran your script with PHP-5.5.3 (CLI) talking to a PostgreSQL-9.3.0 server.
> Connection OK, trace file written, query gets error, no segfault, says "still
> alive" at end.

That's perfect, thanks.

5er
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: Trouble-shooting a script that doesn't retuen HTML
Next Topic: problem with many buttons
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Dec 18 07:59:10 EST 2017

Total time taken to generate the page: 0.00608 seconds