php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12259 segmentation fault apache - pgsql
Submitted: 2001-07-19 12:44 UTC Modified: 2001-07-26 21:27 UTC
From: r dot bhatia at gentics dot com Assigned:
Status: Closed Package: PostgreSQL related
PHP Version: 4.0.5 OS: SuSE 7.2
Private report: No CVE-ID: None
 [2001-07-19 12:44 UTC] r dot bhatia at gentics dot com
php compiled with --with-pgsql=/usr (apache version

pgsql (v7.1.1) compiled with
./configure --enable-locale --with-perl --with-odbcinst=/usr/local/psql/odbc --with-openssl=/usr/ssl --enable-syslog

sorry but i cannot post a script which causes this error cause it is encoded and i dont have access to the source. The only thing i can say is that as far as i know there isn't a pgsql statement in the script. only mysql.

result:
[Thu Jul 19 18:30:32 2001] [notice] child pid 13013 exit signal Segmentation fault (11)

backtrace
Program received signal SIGSEGV, Segmentation fault.
0x40158303 in memcpy () from /lib/libc.so.6
(gdb) bt
#0  0x40158303 in memcpy () from /lib/libc.so.6
#1  0x400303fe in pqPutBytes () from /usr/local/pgsql/lib/libpq.so.2
#2  0x40030639 in pqPutnchar () from /usr/local/pgsql/lib/libpq.so.2
#3  0x4002e4c7 in PQsendQuery () from /usr/local/pgsql/lib/libpq.so.2
#4  0x4002efa4 in PQexec () from /usr/local/pgsql/lib/libpq.so.2
#5  0x806fd33 in _rollback_transactions (rsrc=0x8176770) at pgsql.c:168
#6  0x80ca335 in zend_hash_apply (ht=0x8141b74, apply_func=0x806fd10 <_rollback_transactions>) at zend_hash.c:692
#7  0x806ff08 in php_rshutdown_pgsql (type=1, module_number=5) at pgsql.c:246
#8  0x80c6eb6 in module_registry_cleanup (module=0x8166a90) at zend_API.c:785
#9  0x80ca335 in zend_hash_apply (ht=0x813ea40, apply_func=0x80c6e80 <module_registry_cleanup>) at zend_hash.c:692
#10 0x80cf1c6 in zend_deactivate_modules () at zend.c:522
#11 0x80609fe in php_request_shutdown (dummy=0x0) at main.c:670
#12 0x805d68f in main (argc=4, argv=0xbffff8cc) at cgi_main.c:763
#13 0x400f9c6f in __libc_start_main () from /lib/libc.so.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-26 21:27 UTC] sniper@php.net
This is fixed in PHP 4.0.6

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 08:01:30 2024 UTC