From: [EMAIL PROTECTED]
Operating system: Linux
PHP version: 4.0.6
PHP Bug Type: PostgreSQL related
Bug description: segmentation fault in apache while executing postgresql query
hello,
i wrote a php-page with postgres statements(create table,
create sequence, insert something, delete table, delete seq)
the first and second time i open this page everything
is ok, but next time i get a segmentation fault in the
apache logs...
here's my config script for php:
./configure --prefix=/usr/local/php4
--with-config-file-path=/usr/local/php4 \
--enable-debug=no --enable-url-fopen-wrapper=yes --enable-track-vars=yes
\
--with-gettext=/usr/share/gettext --with-apxs=/usr/local/apache/bin/apxs
\
--with-gd --enable-gd-native-ttf \
--with-mysql=/usr/local/mysql \
--with-pgsql=/usr/local/pgsql \
--with-freetype-dir=/usr/local/ft2
backlog with zend-optimizer enabled:
Program received signal SIGSEGV, Segmentation fault.
0x400eafdf in free () from /lib/libc.so.6
(gdb) bt
#0 0x400eafdf in free () from /lib/libc.so.6
#1 0x4030e275 in zend_hash_destroy (ht=0x8223c74) at zend_hash.c:567
#2 0x40308e65 in _zval_dtor (zvalue=0x81e16e4) at zend_variables.c:69
#3 0x403013d1 in _zval_ptr_dtor (zval_ptr=0x81c1d28) at
zend_execute_API.c:261
#4 0x4030e208 in zend_hash_destroy (ht=0x81c995c) at zend_hash.c:560
#5 0x4030330e in destroy_zend_class (ce=0x81c9918) at zend_opcode.c:123
#6 0x4030e3a9 in zend_hash_apply_deleter (ht=0x812a600, p=0x81c98e0)
at zend_hash.c:615
#7 0x4030e551 in zend_hash_apply (ht=0x812a600,
apply_func=0x40300f60 <is_not_internal_class>) at zend_hash.c:689
#8 0x4030122d in shutdown_executor () at zend_execute_API.c:177
#9 0x40309e67 in zend_deactivate () at zend.c:540
#10 0x4031c524 in php_request_shutdown (dummy=0x0) at main.c:660
#11 0x40319be5 in php_apache_request_shutdown (dummy=0x0) at
mod_php4.c:292
#12 0x8069a11 in run_cleanups ()
#13 0x8067f43 in ap_clear_pool ()
#14 0x8067fc7 in ap_destroy_pool ()
#15 0x8079973 in child_main ()
#16 0x8079af5 in make_child ()
#17 0x8079c76 in startup_children ()
#18 0x807a2fc in standalone_main ()
#19 0x807ab4c in main ()
#20 0x40093c6f in __libc_start_main () from /lib/libc.so.6
backlog with zend disabled:
Program received signal SIGSEGV, Segmentation fault.
0x402efe9a in _efree (ptr=0x822424c) at zend_alloc.c:226
226 REMOVE_POINTER_FROM_LIST(p);
(gdb) bt
#0 0x402efe9a in _efree (ptr=0x822424c) at zend_alloc.c:226
#1 0x40342300 in _notice_handler (arg=0x0,
message=0x81d1f30 "NOTICE: CREATE TABLE will create implicit sequence
'test_id_seq' for SERIAL column 'test.id'\n") at pgsql.c:167
#2 0x403fa0e5 in getNotice () from /usr/local/pgsql/lib/libpq.so.2
#3 0x403f9938 in parseInput () from /usr/local/pgsql/lib/libpq.so.2
#4 0x403f9e8d in PQgetResult () from /usr/local/pgsql/lib/libpq.so.2
#5 0x403f9fcc in PQexec () from /usr/local/pgsql/lib/libpq.so.2
#6 0x40343dc0 in php_if_pg_exec (ht=2, return_value=0x82117ac,
this_ptr=0x0,
return_value_used=1) at pgsql.c:711
#7 0x402fb329 in execute (op_array=0x822344c) at ./zend_execute.c:1504
#8 0x402fb57c in execute (op_array=0x819e9cc) at ./zend_execute.c:1544
#9 0x402fd86a in execute (op_array=0x823e384) at ./zend_execute.c:2049
#10 0x4030a49e in zend_execute_scripts (type=8, file_count=3) at
zend.c:752
#11 0x4031d524 in php_execute_script (primary_file=0xbffff568) at
main.c:1206
#12 0x403196a0 in apache_php_module_main (r=0x8189bbc,
display_source_mode=0)
at sapi_apache.c:89
#13 0x4031a13f in send_php (r=0x8189bbc, display_source_mode=0,
filename=0x0)
at mod_php4.c:536
#14 0x4031a183 in send_parsed_php (r=0x8189bbc) at mod_php4.c:547
#15 0x806d2b9 in ap_invoke_handler ()
#16 0x8082d6f in process_request_internal ()
#17 0x8082de2 in ap_process_request ()
#18 0x8079916 in child_main ()
#19 0x8079af5 in make_child ()
#20 0x8079c76 in startup_children ()
#21 0x807a2fc in standalone_main ()
#22 0x807ab4c in main ()
#23 0x40093c6f in __libc_start_main () from /lib/libc.so.6
hope sombody could held me
thanks in advance
christoph sander
--
Edit bug report at: http://bugs.php.net/?id=12920&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]