Bug #2398 Updated: 'END' command to PostgresSQL causing SEGV.
| From: | sander@php.net | Date: | Sun, 16 Jun 2002 12:58:35 +0000 |
| Subject: | Bug #2398 Updated: 'END' command to PostgresSQL causing SEGV. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-10702@lists.php.net to get a copy of this message | ||
ID: 2398
Updated by: sander@php.net
Reported By: lucas@slf.cx
-Status: Open
+Status: Bogus
Bug Type: Reproducible Crash
Operating System: linux 2.2.12
PHP Version: 3.0.12
New Comment:
Thank you for taking the time to report a problem with PHP.
Unfortunately, PHP 3 is no longer supported. Please download
the latest version of PHP 4 from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
Previous Comments:
------------------------------------------------------------------------
[1999-09-28 14:44:48] lucas@slf.cx
Performing a pg_exec($database,"end") on a connection causes the child
pid to exit with a SEGV. This may have something to do with PostgreSQL
sending a notice message through libpg.
In the interactive client, psql, there is normally a NOTICE sent to
the client:
webdb=> commit;
END
webdb => end;
NOTICE: EndTransactionBlock and not inprogress/abort state
END
webdb => \q
...and in the backtrace (from running http -X inside gdb), the last
mentioned function is 'defaultNoticeProcessor()':
#0 0x40222ee1 in ?? ()
#1 0x40185605 in ?? ()
#2 0x4018ceb3 in ?? ()
#3 0x4031fd1b in defaultNoticeProcessor () from
/usr/local/pgsql/lib/libpq.so.2.0
#4 0x40320cf0 in getNotice () from /usr/local/pgsql/lib/libpq.so.2.0
#5 0x403202ff in parseInput () from /usr/local/pgsql/lib/libpq.so.2.0
#6 0x40320b4e in PQgetResult () from
/usr/local/pgsql/lib/libpq.so.2.0
#7 0x40320ca3 in PQexec () from /usr/local/pgsql/lib/libpq.so.2.0
#8 0x40291a4c in php3_pgsql_exec () at functions/pgsql.c:124
All tested scripts worked 100% when I removed the
'BEGIN'/'COMMIT'/'END' pg_exec() statements.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=2398&edit=1