php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13564 Every 5-10 page requests to page with OCI8 calls ends in segmentation fault
Submitted: 2001-10-05 11:21 UTC Modified: 2001-10-24 15:50 UTC
From: rhollis at keypoint dot demon dot co dot uk Assigned:
Status: Closed Package: OCI8 related
PHP Version: 4.0.6 OS: Linux Mandrake 8 & RH6.2
Private report: No CVE-ID: None
 [2001-10-05 11:21 UTC] rhollis at keypoint dot demon dot co dot uk
Standard Oracle/OCI calls which work fine and then every 5-10 hits at the page the page doesn't return correctly and then a segmentation error follows. Checking the error_log shows the frequency of the problem is quite high, when requesting the page in quick succession.

[Fri Oct  5 11:31:25 2001] [notice] child pid 1508 exit signal Segmentation fault (11)
[Fri Oct  5 11:31:28 2001] [notice] child pid 1466 exit signal Segmentation fault (11)
[Fri Oct  5 11:31:32 2001] [notice] child pid 1364 exit signal Segmentation fault (11)
[Fri Oct  5 11:31:34 2001] [notice] child pid 1463 exit signal Segmentation fault (11)
[Fri Oct  5 11:32:35 2001] [notice] child pid 1472 exit signal Segmentation fault (11)
[Fri Oct  5 11:32:48 2001] [notice] child pid 1482 exit signal Segmentation fault (11)
[Fri Oct  5 11:32:51 2001] [notice] child pid 1465 exit signal Segmentation fault (11)
[Fri Oct  5 11:34:31 2001] [notice] child pid 1461 exit signal Segmentation fault (11)
[Fri Oct  5 11:38:52 2001] [notice] child pid 1456 exit signal Segmentation fault (11)

---------

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 14388)]
0x403e59f5 in _efree (ptr=0x8149da4) at zend_alloc.c:226
226             REMOVE_POINTER_FROM_LIST(p);
(gdb)




(gdb) bt
#0  0x403e59f5 in _efree (ptr=0x8149da4) at zend_alloc.c:226
#1  0x403fda75 in _zval_dtor (zvalue=0x8149e30) at zend_variables.c:62
#2  0x403eb4c3 in free_zend_constant (c=0x8149e30) at zend_constants.c:31
#3  0x40402bf9 in zend_hash_apply_deleter (ht=0x80f1ce0, p=0x817d968)
    at zend_hash.c:615
#4  0x40402d9c in zend_hash_apply (ht=0x80f1ce0,
    apply_func=0x403eb570 <clean_non_persistent_constant>) at zend_hash.c:689
#5  0x403eb8cc in clean_non_persistent_constants () at zend_constants.c:163
#6  0x403f60ba in shutdown_executor () at zend_execute_API.c:183
#7  0x403fe8a5 in zend_deactivate () at zend.c:540
#8  0x4041043f in php_request_shutdown (dummy=0x0) at main.c:660
#9  0x4040df13 in php_apache_request_shutdown (dummy=0x0) at mod_php4.c:292
#10 0x080537c9 in ap_bytes_in_free_blocks ()
#11 0x08050aeb in ap_destroy_pool ()
#12 0x0805257c in ap_clear_pool ()
#13 0x0805e9b6 in ap_update_child_status ()
#14 0x0805f2ef in ap_update_child_status ()
#15 0x0805fa04 in ap_update_child_status ()
#16 0x08060319 in main ()
#17 0x401381f0 in __libc_start_main () from /lib/libc.so.6



(gdb) bt full
#0  0x403e59f5 in _efree (ptr=0x8149da4) at zend_alloc.c:226
        p = (zend_mem_header *) 0x8149d98
        cache_index = 16946097
#1  0x403fda75 in _zval_dtor (zvalue=0x8149e30) at zend_variables.c:62
        zvalue = (zval *) 0x8149e30
#2  0x403eb4c3 in free_zend_constant (c=0x8149e30) at zend_constants.c:31
        c = (zend_constant *) 0x8149e30
#3  0x40402bf9 in zend_hash_apply_deleter (ht=0x80f1ce0, p=0x817d968)
    at zend_hash.c:615
        ht = (HashTable *) 0x80f1ce0
        p = (Bucket *) 0x817d968
        retval = (Bucket *) 0xbffff0f8
#4  0x40402d9c in zend_hash_apply (ht=0x80f1ce0,
    apply_func=0x403eb570 <clean_non_persistent_constant>) at zend_hash.c:689
        ht = (HashTable *) 0x80f1ce0
        p = (Bucket *) 0x817d968
#5  0x403eb8cc in clean_non_persistent_constants () at zend_constants.c:163
No locals.
#6  0x403f60ba in shutdown_executor () at zend_execute_API.c:183
No locals.
#7  0x403fe8a5 in zend_deactivate () at zend.c:540
No locals.
#8  0x4041043f in php_request_shutdown (dummy=0x0) at main.c:660
---Type <return> to continue, or q <return> to quit---
No locals.
#9  0x4040df13 in php_apache_request_shutdown (dummy=0x0) at mod_php4.c:292
        dummy = (void *) 0x776f52
#10 0x080537c9 in ap_bytes_in_free_blocks ()
No symbol table info available.
#11 0x08050aeb in ap_destroy_pool ()
No symbol table info available.
#12 0x0805257c in ap_clear_pool ()
No symbol table info available.
#13 0x0805e9b6 in ap_update_child_status ()
No symbol table info available.
#14 0x0805f2ef in ap_update_child_status ()
No symbol table info available.
#15 0x0805fa04 in ap_update_child_status ()
No symbol table info available.
#16 0x08060319 in main ()
No symbol table info available.
#17 0x401381f0 in __libc_start_main () from /lib/libc.so.6
No symbol table info available.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-11 07:25 UTC] thies@php.net
plase create a minimal *self-contained* testcase that you 
can email to me. this testcase sould contain everything i 
need to reproduce your crash on my system. 


 [2001-10-24 15:50 UTC] rhollis at keypoint dot demon dot co dot uk
Problem does not occur when using third parameter of OCILogon.

Richard



 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 25 07:01:31 2024 UTC