At 12:22 PM 11/27/2001 -0500, you wrote:
>On 2001.11.27, Scott Goodwin <[EMAIL PROTECTED]> wrote:
> > Frankly, I'm surprised that a bad path would cause a segfault, which leads
> > me to believe that some var or pointer isn't being initialized before use.
>
>My WAG would be that this is some "keep people from busting out of
>a chroot jail" code that's busted. The path that PHP is trying
>to canonicalize is of the form "../" and a segfault on that smells
>fishy of things like this.
>
>RH6 to RH7 made the jump from libc5 to glibc2, right? Hmm...
>
>-- Dossy
This is what worries me since the same segfault happens with 3.0 and 3.4.2.
However, I can't believe I'm the ONLY person in the world trying to install
this combination.
They're pretty much the same but here are the stack traces for both
versions of Aolserver:
Aolserver 3.0
------------------------------------------------------
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 4101 (LWP 17152)]
0x400afdd3 in canonicalize (
name=0x8396940
"/usr/local/aolserver-3.0/servers/webmail/pages/squirrelmail-1.2.0-rc2/src/../src/load_prefs.php",
resolved=0x403bc12c "")
at canonicalize.c:88
88 canonicalize.c: No such file or directory.
in canonicalize.c
(gdb) bt
#0 0x400afdd3 in canonicalize (
name=0x8396940
"/usr/local/aolserver-3.0/servers/webmail/pages/squirrelmail-1.2.0-rc2/src/../src/load_prefs.php",
resolved=0x403bc12c "")
at canonicalize.c:88
#1 0x40291659 in virtual_file_ex (state=0x403bd164,
path=0x8226f54 "../src/load_prefs.php", verify_path=0)
at tsrm_virtual_cwd.c:299
#2 0x4020abcc in expand_filepath (filepath=0x8226f54 "../src/load_prefs.php",
real_path=0x0) at fopen_wrappers.c:531
#3 0x4020a23f in php_fopen_and_set_opened_path (
path=0x8226f54 "../src/load_prefs.php", mode=0x402a5c47 "rb",
opened_path=0x403bf3e4) at fopen_wrappers.c:237
#4 0x4020a859 in php_fopen_with_path (
filename=0x8226f54 "../src/load_prefs.php", mode=0x402a5c47 "rb",
path=0x402a707b ".:/usr/local/lib/php", opened_path=0x403bf3e4)
at fopen_wrappers.c:391
#5 0x4020aa88 in php_fopen_url_wrapper (
path=0x8226f54 "../src/load_prefs.php", mode=0x402a5c47 "rb", options=1,
issock=0x403bf2b0, socketd=0x403bf2b4, opened_path=0x403bf3e4)
at fopen_wrappers.c:470
#6 0x40208481 in php_fopen_wrapper_for_zend (
filename=0x8226f54 "../src/load_prefs.php", opened_path=0x403bf3e4)
at main.c:477
#7 0x401ffd7e in open_file_for_scanning ()
from /usr/local/aolserver-3.0/bin/libphp4.so
#8 0x40200124 in compile_file () from /usr/local/aolserver-3.0/bin/libphp4.so
#9 0x402002c4 in compile_filename ()
from /usr/local/aolserver-3.0/bin/libphp4.so
#10 0x401eac66 in execute (op_array=0x81de830, executor_globals=0x81a5bd0)
at ./zend_execute.c:2028
#11 0x401e89f3 in execute (op_array=0x82c5b20, executor_globals=0x81a5bd0)
at ./zend_execute.c:1544
#12 0x401e89f3 in execute (op_array=0x82c5100, executor_globals=0x81a5bd0)
at ./zend_execute.c:1544
#13 0x401e89f3 in execute (op_array=0x82c24c0, executor_globals=0x81a5bd0)
at ./zend_execute.c:1544
#14 0x401e89f3 in execute (op_array=0x816b74c, executor_globals=0x81a5bd0)
at ./zend_execute.c:1544
#15 0x401f6dbd in zend_execute_scripts (type=8, compiler_globals=0x8161868,
executor_globals=0x81a5bd0, file_count=3) at zend.c:752
#16 0x40209967 in php_execute_script (primary_file=0x403cb6fc,
compiler_globals=0x8161868, executor_globals=0x81a5bd0,
core_globals=0x81644b0) at main.c:1206
#17 0x40207732 in php_ns_module_main (ns_context=0x8165340,
sapi_globals=0x816cd08) at aolserver.c:434
#18 0x4020797f in php_ns_request_handler (context=0x8119450, conn=0x812a308)
at aolserver.c:519
#19 0x08070c63 in Ns_ConnRunRequest (conn=0x812a308) at op.c:196
#20 0x08076dbe in ConnRun (connPtr=0x812a308) at serv.c:755
#21 0x08076745 in NsConnThread (arg=0x81b1728) at serv.c:554
#22 0x080c8430 in NsThreadMain (arg=0x82420f0) at thread.c:226
#23 0x4002ec6f in pthread_start_thread (arg=0x403cbbe0) at manager.c:284
#24 0x4002ed5f in pthread_start_thread_event (arg=0x403cbbe0) at manager.c:308
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
Sean Redmond
Brooklyn Museum of Art