php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28000 aolserver critical crash
Submitted: 2004-04-14 22:11 UTC Modified: 2004-04-15 21:23 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: ustaz99 at catcha dot com Assigned:
Status: Not a bug Package: PostgreSQL related
PHP Version: 4.3.5 OS: Linux MDK10.0
Private report: No CVE-ID: None
 [2004-04-14 22:11 UTC] ustaz99 at catcha dot com
Description:
------------
entering username=apache password=apache make my aolserver 
crash with phpPgAdmin-3.3.1 
 
'./configure' '--with-aolserver=/usr/local/aolserver/' 
'--with-pgsql'  
# aolserver-4.01 
# php-4.3.5 

Reproduce code:
---------------
entering success login phpPgAdmin-3.3.1 script

Expected result:
----------------
(gdb) r -f -t /usr/local/aolserver/bin/config.tcl -u 
apache -g apache 
 
Program received signal SIGSEGV, Segmentation fault. 
[Switching to Thread 1088555952 (LWP 3368)] 
0x40c00d60 in execute (op_array=0x81e33a4, 
tsrm_ls=0x80c7390) 
    at /root/php-4.3.5/Zend/zend_execute.c:1252 
1252                                    
zend_fetch_var_address(EX(opline), EX(Ts), BP_VAR_W 
TSRMLS_CC); 
(gdb) i r 
eax            0x80c7390        135033744 
ecx            0x82040cc        136331468 
edx            0x40e1b9d4       1088534996 
ebx            0x40c47f1c       1086619420 
esp            0x40e10f50       0x40e10f50 
ebp            0x40e1ba28       0x40e1ba28 
esi            0x82040cc        136331468 
edi            0x40e10f50       1088491344 
eip            0x40c00d60       0x40c00d60 
eflags         0x210213 2163219 
cs             0x73     115 
ss             0x7b     123 
ds             0x7b     123 
es             0x7b     123 
fs             0x0      0 
gs             0x33     51 

Actual result:
--------------
 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-14 22:28 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

..and configure PHP with --enable debug and get us a proper backtrace (with GDB command 'bt')

 [2004-04-14 22:56 UTC] ustaz99 at catcha dot com
with php-4.3.7dev './configure' 
'--with-aolserver=/usr/local/aolserver/' '--with-pgsql' 
'--enable-debug'  
 
----output console---- 
[New Thread 1088641968 (LWP 14525)] 
[New Thread 1088711600 (LWP 14526)] 
 
Program received signal SIGSEGV, Segmentation fault. 
[Switching to Thread 1088641968 (LWP 14525)] 
0x40c138e1 in execute (op_array=0x864b078, 
tsrm_ls=0x80c76c8) 
    at /root/php4-STABLE-200404150030/Zend/zend_execute.c:1266 
1266                                    
zend_fetch_var_address(EX(opline), EX(Ts), BP_VAR_W 
TSRMLS_CC); 
(gdb) i r 
eax            0x80c76c8        135034568 
ecx            0x810b050        135311440 
edx            0x864b078        140816504 
ebx            0x40c5ce3c       1086705212 
esp            0x40e25fb0       0x40e25fb0 
ebp            0x40e30a68       0x40e30a68 
esi            0x40e5d030       1088802864 
edi            0x40e5d030       1088802864 
eip            0x40c138e1       0x40c138e1 
eflags         0x210207 2163207 
cs             0x73     115 
ss             0x7b     123 
ds             0x7b     123 
es             0x7b     123 
fs             0x0      0 
gs             0x33     51 
(gdb) bt 
#0  0x40c138e1 in execute (op_array=0x864b078, 
tsrm_ls=0x80c76c8) 
    at /root/php4-STABLE-200404150030/Zend/zend_execute.c:1266 
#1  0x40c18d53 in execute (op_array=0x864f258, 
tsrm_ls=0x80c76c8) 
    at /root/php4-STABLE-200404150030/Zend/zend_execute.c:2200 
#2  0x40c18d53 in execute (op_array=0x864a0e8, 
tsrm_ls=0x80c76c8) 
    at /root/php4-STABLE-200404150030/Zend/zend_execute.c:2200 
#3  0x40c05cf0 in zend_execute_scripts (type=8, 
tsrm_ls=0x80c76c8, retval=Variable "retval" is not 
available. 
) 
    at /root/php4-STABLE-200404150030/Zend/zend.c:886 
#4  0x40bd3204 in php_execute_script 
(primary_file=0x40e35800, 
    tsrm_ls=0x80c76c8) 
at /root/php4-STABLE-200404150030/main/main.c:1731 
#5  0x40c1b609 in php_ns_module_main (tsrm_ls=Variable 
"tsrm_ls" is not available. 
) 
    at /root/php4-STABLE-200404150030/sapi/aolserver/aolserver.c:419 
#6  0x40c1b985 in php_ns_request_handler 
(context=0x80c7698, conn=Variable "conn" is not available. 
) 
    at /root/php4-STABLE-200404150030/sapi/aolserver/aolserver.c:503 
#7  0x4003a152 in Ns_ConnRunRequest () 
from /usr/local/aolserver/lib/libnsd.so 
#8  0x4003b9d6 in ConnRun () 
from /usr/local/aolserver/lib/libnsd.so 
#9  0x4003b660 in NsConnThread () 
from /usr/local/aolserver/lib/libnsd.so 
#10 0x40067c18 in NsThreadMain () 
from /usr/local/aolserver/lib/libnsthread.so 
#11 0x4006914a in ThreadMain () 
from /usr/local/aolserver/lib/libnsthread.so 
#12 0x401227d3 in start_thread () 
from /lib/tls/libpthread.so.0 
#13 0x4023ab4a in clone () from /lib/tls/libc.so.6
 [2004-04-15 08:18 UTC] sniper@php.net
From the sapi/aolserver/README: "Note that there might be thread-safety issues with thread-unsafe libraries/extensions.  Test thoroughly before you put anything into production." (this is pretty much impossible to tell what might be going wrong. Just use Apache 1.3.29 and you're fine.)

 [2004-04-15 21:23 UTC] ustaz99 at catcha dot com
erm.. it's okay. 
probably, I still with aolserver. (it's for openacs, so a 
compulsary) 
later i'll give you more information.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 30 20:01:30 2024 UTC