I'm trying to install Aolserver 3.4.2 and PHP 4.0.6, but on the statement

     include  "../src/load_prefs.php";

The server segfaults. Perhaps the server shouldn't crash but the problem is 
that ".." is being interpreted as:

     
/usr/local/aolserver-3.4.2/servers/webmail/pages/squirrelmail-1.2.0-rc2/src/../src/load_prefs.php

rather than:

/usr/local/aolserver-3.4.2/servers/webmail/pages/squirrelmail-1.2.0-rc2/src/load_prefs.php

I never had a problem with Aolserver 3.0 + PHP 4.0.6 on a machine running 
RedHat 6.2. This is cropping up with RedHat 7.2 + PHP 4.0.6 using either 
Aolserver 3.4.2 or Aolserver 3.0. Is there some problem between RedHat 7.2 
and PHP 4.0.6 (glibc maybe? I'm using glib-2.2.4-19).

Here is the backtrace with Aolserver 3.4.2:

[New Thread 5126 (LWP 12186)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 5126 (LWP 12186)]
0x4013fa38 in ___lxstat64 (vers=3, name=0x403cd01c "/usr", buf=0x403ce04c)
     at ../sysdeps/unix/sysv/linux/lxstat64.c:52
52      ../sysdeps/unix/sysv/linux/lxstat64.c: No such file or directory.
         in ../sysdeps/unix/sysv/linux/lxstat64.c
(gdb) bt
#0  0x4013fa38 in ___lxstat64 (vers=3, name=0x403cd01c "/usr", buf=0x403ce04c)
     at ../sysdeps/unix/sysv/linux/lxstat64.c:52
#1  0x400afb7c in canonicalize (
     name=0x8280b90 
"/usr/local/aolserver-3.4.2/servers/webmail/pages/squirrelmail-1.2.0-rc2/src/../src/load_prefs.php",
 
resolved=0x403ce10c "")
     at canonicalize.c:150
#2  0x402cd659 in virtual_file_ex (state=0x403cf13c,
     path=0x83d3704 "../src/load_prefs.php", verify_path=0)
     at tsrm_virtual_cwd.c:299
#3  0x402cdc1f in virtual_fopen (path=0x83d3704 "../src/load_prefs.php",
     mode=0x402e1c47 "rb") at tsrm_virtual_cwd.c:497
#4  0x40246224 in php_fopen_and_set_opened_path (
     path=0x83d3704 "../src/load_prefs.php", mode=0x402e1c47 "rb",
     opened_path=0x403d03b4) at fopen_wrappers.c:235
#5  0x40246859 in php_fopen_with_path (
     filename=0x83d3704 "../src/load_prefs.php", mode=0x402e1c47 "rb",
     path=0x402e307b ".:/usr/local/lib/php", opened_path=0x403d03b4)
     at fopen_wrappers.c:391
#6  0x40246a88 in php_fopen_url_wrapper (
     path=0x83d3704 "../src/load_prefs.php", mode=0x402e1c47 "rb", options=1,
     issock=0x403d0280, socketd=0x403d0284, opened_path=0x403d03b4)
     at fopen_wrappers.c:470
#7  0x40244481 in php_fopen_wrapper_for_zend (
     filename=0x83d3704 "../src/load_prefs.php", opened_path=0x403d03b4)
     at main.c:477
#8  0x4023bd7e in open_file_for_scanning ()
    from /usr/local/aolserver/bin/libphp4.so
#9  0x4023c124 in compile_file () from /usr/local/aolserver/bin/libphp4.so
#10 0x4023c2c4 in compile_filename () from /usr/local/aolserver/bin/libphp4.so
#11 0x40226c66 in execute (op_array=0x8393538, executor_globals=0x821b490)
     at ./zend_execute.c:2028
#12 0x402249f3 in execute (op_array=0x8223780, executor_globals=0x821b490)
     at ./zend_execute.c:1544
#13 0x402249f3 in execute (op_array=0x827dfa0, executor_globals=0x821b490)
     at ./zend_execute.c:1544
#14 0x402249f3 in execute (op_array=0x8364b08, executor_globals=0x821b490)
     at ./zend_execute.c:1544
#15 0x402249f3 in execute (op_array=0x8254224, executor_globals=0x821b490)
     at ./zend_execute.c:1544
#16 0x40232dbd in zend_execute_scripts (type=8, compiler_globals=0x82301e0,
     executor_globals=0x821b490, file_count=3) at zend.c:752
#17 0x40245967 in php_execute_script (primary_file=0x403dc6cc,
     compiler_globals=0x82301e0, executor_globals=0x821b490,
     core_globals=0x828dac0) at main.c:1206
#18 0x40243732 in php_ns_module_main (ns_context=0x828e950,
     sapi_globals=0x826fc50) at aolserver.c:434
#19 0x4024397f in php_ns_request_handler (context=0x817a638, conn=0x8192118)
     at aolserver.c:519
#20 0x08077bb7 in Ns_ConnRunRequest (conn=0x8192118) at op.c:196
#21 0x0807e2c2 in ConnRun (connPtr=0x8192118) at serv.c:882
#22 0x0807dc10 in NsConnThread (arg=0x8261fb8) at serv.c:671
#23 0x0811833b in NsThreadMain (arg=0x8261fc8) at thread.c:228
#24 0x4002ec6f in pthread_start_thread (arg=0x403dcbe0) at manager.c:284
#25 0x4002ed5f in pthread_start_thread_event (arg=0x403dcbe0) at manager.c:308

Thanks

Sean Redmond
Brooklyn Museum of Art


-- 
PHP Install 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]

Reply via email to