Re: [AOLSERVER] Again, Segfault with Aolserver, PHP, SquirrelMail

2001-11-27 Thread Sean Redmond

Scott,

I've been using this Aolserver 3.0 + PHP 4.0.6 for over a year with no
problem -- this is new (mis)behavior. In what I'm trying to setup now, the
PHP version is the same, but I'm trying to use new versions of Aolserver
(3.4.2) and RedHat (7.2, old server has 6.2). I cannot think of any way
that Aolserver is causing this problem for PHP, though.

At 06:59 PM 11/26/2001 -0600, you wrote:
Hi Sean,

Is this something you can fix on your own? It's possible that the PHP module
for AOLserver is doing this (i.e. it's building a path without checking for
relative paths); I'm not sure as I've never used the module or PHP.

/s.

Sean Redmond
Brooklyn Museum of Art



Re: [AOLSERVER] Again, Segfault with Aolserver, PHP, SquirrelMail

2001-11-27 Thread Scott Goodwin

I hate to say it, but drop back to 3.0 and test on RH 7.2. If it breaks,
then there's something different in the combo between AOLserver and RedHat
7.2.

If it works, then upgrade to AOLserver 3.1 and test, then 3.2 and test etc.
until you get to 3.4.2, also on RedHat 7.2. Let's find out which upgrade
breaks it. When it breaks, get a backtrace with GDB, then look at the
sources where it breaks and see what's changed between the code that broke
and the version before it.

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.

/s.


 Scott,

 I've been using this Aolserver 3.0 + PHP 4.0.6 for over a year with no
 problem -- this is new (mis)behavior. In what I'm trying to setup now, the
 PHP version is the same, but I'm trying to use new versions of Aolserver
 (3.4.2) and RedHat (7.2, old server has 6.2). I cannot think of any way
 that Aolserver is causing this problem for PHP, though.

 At 06:59 PM 11/26/2001 -0600, you wrote:
 Hi Sean,
 
 Is this something you can fix on your own? It's possible that the PHP
module
 for AOLserver is doing this (i.e. it's building a path without checking
for
 relative paths); I'm not sure as I've never used the module or PHP.
 
 /s.

 Sean Redmond
 Brooklyn Museum of Art








Re: [AOLSERVER] Again, Segfault with Aolserver, PHP, SquirrelMail

2001-11-27 Thread Sean Redmond

At 11:24 AM 11/27/2001 -0500, Scott Goodwin wrote:
I hate to say it, but drop back to 3.0 and test on RH 7.2. If it breaks,
then there's something different in the combo between AOLserver and RedHat
7.2.


Actually, I tried that and ran into the same problem.


Sean Redmond
Brooklyn Museum of Art



Re: [AOLSERVER] Again, Segfault with Aolserver, PHP, SquirrelMail

2001-11-27 Thread Scott Goodwin

Ok, then it sounds like an interaction problem between AOLserver and RedHat
7.2 (or more likely the PHP module and 7.2).

Can you post the backtrace?

/s.

 At 11:24 AM 11/27/2001 -0500, Scott Goodwin wrote:
 I hate to say it, but drop back to 3.0 and test on RH 7.2. If it breaks,
 then there's something different in the combo between AOLserver and
RedHat
 7.2.


 Actually, I tried that and ran into the same problem.


 Sean Redmond
 Brooklyn Museum of Art






Re: [AOLSERVER] Again, Segfault with Aolserver, PHP, SquirrelMail

2001-11-27 Thread Dossy

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

--
Dossy Shiobara   mail: [EMAIL PROTECTED]
Panoptic Computer Network web: http://www.panoptic.com/
  He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on. (p. 70)



Re: [AOLSERVER] Again, Segfault with Aolserver, PHP, SquirrelMail

2001-11-27 Thread Sean Redmond

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 

Re: [AOLSERVER] Again, Segfault with Aolserver, PHP, SquirrelMail

2001-11-27 Thread Lamar Owen

On Tuesday 27 November 2001 12:22 pm, Dossy 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...

No.  RH6 = glibc 2.1
RH7= glibc 2.2 -- 7.1 and 7.2 are kernel 2.4.

The last Red Hat with libc5 was 4.2.  Red Hat 5.0 did the libc5-glibc 2.0
upgrade.
--
Lamar Owen
WGCR Internet Radio
1 Peter 4:11



[AOLSERVER] [ aolserver-Support Requests-480000 ] Create a virtual server on a second IP

2001-11-27 Thread Ms. Source Forge

Support Requests item #48, was opened at 2001-11-09 05:39
You can respond by visiting:
http://sourceforge.net/tracker/?func=detailatid=203152aid=48group_id=3152

Category: Configuration: First-Time Startup
Group: aolserver3_2
Status: Open
Resolution: Fixed
Priority: 5
Submitted By: Danny Lieberman (dannyl50)
Assigned to: Nobody/Anonymous (nobody)
Summary: Create a virtual server on a second IP

Initial Comment:
I am running open acs with AOL Server 3.2

i have an Intel box with 2 IP addresses and I want to
assign the second IP to another virtual server
servicing another domain.

it is maddening - but such a simple task for iis or
apache seems to elude me when it comes to AOLserver. I
found an article about doing it with one IP address -
but i dont have a problem with assigning a separate IP
to the second virtual web server.


Do i have to install a second instance of AOLserver
and ACS? that is a pretty heavy load to put on the
machine...

It seems to me that a separate directory under the
nsadmin $HOME with a separate nsd.tcl pointing to the
correct domain SHOULD work - but like i say - I know i
MUST be missing something

thx!!
danny Lieberman


--

You can respond by visiting:
http://sourceforge.net/tracker/?func=detailatid=203152aid=48group_id=3152



[AOLSERVER] [ aolserver-Support Requests-480000 ] Create a virtual server on a second IP

2001-11-27 Thread Ms. Source Forge

Support Requests item #48, was opened at 2001-11-09 05:39
You can respond by visiting:
http://sourceforge.net/tracker/?func=detailatid=203152aid=48group_id=3152

Category: Configuration: First-Time Startup
Group: aolserver3_2
Status: Open
Resolution: Fixed
Priority: 5
Submitted By: Danny Lieberman (dannyl50)
Assigned to: Nobody/Anonymous (nobody)
Summary: Create a virtual server on a second IP

Initial Comment:
I am running open acs with AOL Server 3.2

i have an Intel box with 2 IP addresses and I want to
assign the second IP to another virtual server
servicing another domain.

it is maddening - but such a simple task for iis or
apache seems to elude me when it comes to AOLserver. I
found an article about doing it with one IP address -
but i dont have a problem with assigning a separate IP
to the second virtual web server.


Do i have to install a second instance of AOLserver
and ACS? that is a pretty heavy load to put on the
machine...

It seems to me that a separate directory under the
nsadmin $HOME with a separate nsd.tcl pointing to the
correct domain SHOULD work - but like i say - I know i
MUST be missing something

thx!!
danny Lieberman


--

Comment By: Danny Lieberman (dannyl50)
Date: 2001-11-27 09:40

Message:
Logged In: YES
user_id=355846

i fixed by using apache as a proxy server

--

You can respond by visiting:
http://sourceforge.net/tracker/?func=detailatid=203152aid=48group_id=3152



[AOLSERVER] [ aolserver-Support Requests-480000 ] Create a virtual server on a second IP

2001-11-27 Thread Ms. Source Forge

Support Requests item #48, was opened at 2001-11-09 05:39
You can respond by visiting:
http://sourceforge.net/tracker/?func=detailatid=203152aid=48group_id=3152

Category: Configuration: First-Time Startup
Group: aolserver3_2
Status: Open
Resolution: Fixed
Priority: 5
Submitted By: Danny Lieberman (dannyl50)
Assigned to: Nobody/Anonymous (nobody)
Summary: Create a virtual server on a second IP

Initial Comment:
I am running open acs with AOL Server 3.2

i have an Intel box with 2 IP addresses and I want to
assign the second IP to another virtual server
servicing another domain.

it is maddening - but such a simple task for iis or
apache seems to elude me when it comes to AOLserver. I
found an article about doing it with one IP address -
but i dont have a problem with assigning a separate IP
to the second virtual web server.


Do i have to install a second instance of AOLserver
and ACS? that is a pretty heavy load to put on the
machine...

It seems to me that a separate directory under the
nsadmin $HOME with a separate nsd.tcl pointing to the
correct domain SHOULD work - but like i say - I know i
MUST be missing something

thx!!
danny Lieberman


--

Comment By: Andrew Piskorski (apiskors)
Date: 2001-11-27 10:11

Message:
Logged In: YES
user_id=43168

Danny, what do you mean, install a second instance of
AOLserver and
ACS?

With what you're trying to do, you certainly want to run two
separate
AOLserver processes, one for each of your ACS websites.
This is
exactly equivalent to what you would do if you wanted to run
a
Development and Production copy of one website on the same
box.  All
you need to do is edit your nsd.tcl file correctly, and run
two
AOLserver processes.  This is not any kind of pretty heavy
load to
put on the machine, people do it that way all the time.  In
fact, it
is the easiest and probably best way, if you have the two
free IP
addresses to use.

You probably want to use the same nsd.tcl for both
AOLservers, so in
your nsd.tcl, you'd have something like this:

  set ip_address(dev)   {192.168.100.100}
  set ip_address(prod)  {192.168.100.101}
  set server_name(dev)  mysite-dev
  set server_name(prod) mysite

  # Decide which server we are running:

  set ini_file [ns_info config]  ;# Full path to this config
file.
  set ini_dir [file dir $ini_file]

  # This checks the full pathname of the AOLserver ini file,
so it had
  # better be located beneath directories called e.g.,
mysite-dev,
  # mysite-stging, or mysite:

  if { [regexp {[-]dev/} $ini_file] } {
  set which dev
  } else {
  set which prod
  }

  ns_section ns/server/$server_name($which)/module/nssock
ns_param timeout 120
ns_param Address $ip_address($which)
ns_param Hostname $hostname($which)
ns_param Port $port($which)

If you are starting your two AOLservers from inittab, then
you'll want
two lines something like this in your /etc/inittab :

nsdv:234:respawn:/web/aol3/bin/nsd-oracle -i -t
/web/mysite-1/nsd/nsd.tcl -u nsadmin -g web
nspr:234:respawn:/web/aol3/bin/nsd-oracle -i -t
/web/mysite-2/nsd/nsd.tcl -u nsadmin -g web

If you want to use something more sophisticated to start
AOLserver,
like DJB's daemontools, there are other mthods.  See e.g.:

http://www.arsdigita.com/bboard/q-and-a-fetch-msg?msg%5fid=000XX6topic%5fid=21topic=web%2fdb


--

Comment By: Danny Lieberman (dannyl50)
Date: 2001-11-27 09:40

Message:
Logged In: YES
user_id=355846

i fixed by using apache as a proxy server

--

You can respond by visiting:
http://sourceforge.net/tracker/?func=detailatid=203152aid=48group_id=3152



Re: [AOLSERVER] Again, Segfault with Aolserver, PHP, SquirrelMail

2001-11-27 Thread Dossy

On 2001.11.27, Sean Redmond [EMAIL PROTECTED] wrote:
 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

Could you add the directory containing the PHP source to your
gdb init, as well, and send that backtrace?  I'm guessing that's
where canonicalize.c lives, and it'd be interesting to see what
line 88 is actually doing that causes the segfault ...

 (gdb) bt
 #0  0x4013fa38 in ___lxstat64 (vers=3, name=0x403cd01c /usr,
 buf=0x403ce04c)
 at ../sysdeps/unix/sysv/linux/lxstat64.c:52

This is a little more telling.  I wonder where *buf points to ...
which we'd know looking at canonicalize.c ...

-- Dossy

--
Dossy Shiobara   mail: [EMAIL PROTECTED]
Panoptic Computer Network web: http://www.panoptic.com/
  He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on. (p. 70)



[AOLSERVER] [ aolserver-Support Requests-480000 ] Create a virtual server on a second IP

2001-11-27 Thread Ms. Source Forge

Support Requests item #48, was opened at 2001-11-09 05:39
You can respond by visiting:
http://sourceforge.net/tracker/?func=detailatid=203152aid=48group_id=3152

Category: Configuration: First-Time Startup
Group: aolserver3_2
Status: Closed
Resolution: Fixed
Priority: 5
Submitted By: Danny Lieberman (dannyl50)
Assigned to: Nobody/Anonymous (nobody)
Summary: Create a virtual server on a second IP

Initial Comment:
I am running open acs with AOL Server 3.2

i have an Intel box with 2 IP addresses and I want to
assign the second IP to another virtual server
servicing another domain.

it is maddening - but such a simple task for iis or
apache seems to elude me when it comes to AOLserver. I
found an article about doing it with one IP address -
but i dont have a problem with assigning a separate IP
to the second virtual web server.


Do i have to install a second instance of AOLserver
and ACS? that is a pretty heavy load to put on the
machine...

It seems to me that a separate directory under the
nsadmin $HOME with a separate nsd.tcl pointing to the
correct domain SHOULD work - but like i say - I know i
MUST be missing something

thx!!
danny Lieberman


--

Comment By: Danny Lieberman (dannyl50)
Date: 2001-11-27 10:26

Message:
Logged In: YES
user_id=355846

Andrew
thanks - great answer - i needed a little direction i guess.
In the meantime - i found a dumb solution - i run apache as
a reverse proxy. works pretty good.

danny

--

Comment By: Andrew Piskorski (apiskors)
Date: 2001-11-27 10:11

Message:
Logged In: YES
user_id=43168

Danny, what do you mean, install a second instance of
AOLserver and
ACS?

With what you're trying to do, you certainly want to run two
separate
AOLserver processes, one for each of your ACS websites.
This is
exactly equivalent to what you would do if you wanted to run
a
Development and Production copy of one website on the same
box.  All
you need to do is edit your nsd.tcl file correctly, and run
two
AOLserver processes.  This is not any kind of pretty heavy
load to
put on the machine, people do it that way all the time.  In
fact, it
is the easiest and probably best way, if you have the two
free IP
addresses to use.

You probably want to use the same nsd.tcl for both
AOLservers, so in
your nsd.tcl, you'd have something like this:

  set ip_address(dev)   {192.168.100.100}
  set ip_address(prod)  {192.168.100.101}
  set server_name(dev)  mysite-dev
  set server_name(prod) mysite

  # Decide which server we are running:

  set ini_file [ns_info config]  ;# Full path to this config
file.
  set ini_dir [file dir $ini_file]

  # This checks the full pathname of the AOLserver ini file,
so it had
  # better be located beneath directories called e.g.,
mysite-dev,
  # mysite-stging, or mysite:

  if { [regexp {[-]dev/} $ini_file] } {
  set which dev
  } else {
  set which prod
  }

  ns_section ns/server/$server_name($which)/module/nssock
ns_param timeout 120
ns_param Address $ip_address($which)
ns_param Hostname $hostname($which)
ns_param Port $port($which)

If you are starting your two AOLservers from inittab, then
you'll want
two lines something like this in your /etc/inittab :

nsdv:234:respawn:/web/aol3/bin/nsd-oracle -i -t
/web/mysite-1/nsd/nsd.tcl -u nsadmin -g web
nspr:234:respawn:/web/aol3/bin/nsd-oracle -i -t
/web/mysite-2/nsd/nsd.tcl -u nsadmin -g web

If you want to use something more sophisticated to start
AOLserver,
like DJB's daemontools, there are other mthods.  See e.g.:

http://www.arsdigita.com/bboard/q-and-a-fetch-msg?msg%5fid=000XX6topic%5fid=21topic=web%2fdb


--

Comment By: Danny Lieberman (dannyl50)
Date: 2001-11-27 09:40

Message:
Logged In: YES
user_id=355846

i fixed by using apache as a proxy server

--

You can respond by visiting:
http://sourceforge.net/tracker/?func=detailatid=203152aid=48group_id=3152



[AOLSERVER] [ aolserver-Support Requests-473606 ] server side include doesnt work

2001-11-27 Thread Ms. Source Forge

Support Requests item #473606, was opened at 2001-10-22 02:03
You can respond by visiting:
http://sourceforge.net/tracker/?func=detailatid=203152aid=473606group_id=3152

Category: Configuration: Other
Group: aolserver3_2
Status: Open
Resolution: Fixed
Priority: 5
Submitted By: Danny Lieberman (dannyl50)
Assigned to: Nobody/Anonymous (nobody)
Summary: server side include doesnt work

Initial Comment:
i am running aolserver 3.2 with open acs 3 and pg 7.1

everything works fine.

except for server side includes:
when i do -

!--#include file=outside.htm-- i get the following
message:

Someone grabbed /webtime/outside.htm but we weren't
able to offer a comment link because this page isn't
registered in the db


what gives?
and what do i need to do to make server side include
of HTML files work?

danny

--

Comment By: Danny Lieberman (dannyl50)
Date: 2001-11-27 10:27

Message:
Logged In: YES
user_id=355846

I fixed using ns_adp_include - excellent solution for me
danny

--

Comment By: Danny Lieberman (dannyl50)
Date: 2001-10-22 03:06

Message:
Logged In: YES
user_id=355846

good call. fwiw - all the other static pages work fine.
just the SSI didnt work. i worked around by changing both
pages to an adp and using ns_adp_include. (we had wanted to
have standard navigation bar headers - which is why we
wanted ssi)

--

Comment By: Nobody/Anonymous (nobody)
Date: 2001-10-22 02:40

Message:
Logged In: NO

I do not know anything about server side includes, but I
recognize the message. It comes from ACS, not Aolserver,
and shows up if someone requests a static page which
is not registered in ACS static pages repository. To
get rid of such messages you need to visit
this URL https://yourserver.com/admin/static/static-syncer-
ns-set.tcl everytime you add static pages to your webroot.

--

You can respond by visiting:
http://sourceforge.net/tracker/?func=detailatid=203152aid=473606group_id=3152



Re: [AOLSERVER] Again, Segfault with Aolserver, PHP, SquirrelMail

2001-11-27 Thread Sean Redmond

At 01:22 PM 11/27/2001 -0500, you wrote:
Could you add the directory containing the PHP source to your
gdb init, as well, and send that backtrace?  I'm guessing that's
where canonicalize.c lives, and it'd be interesting to see what
line 88 is actually doing that causes the segfault ...

I did (tsrm_virtual_cwd.c, for instance, is part of PHP) but but there is
no file called canonicalize.c on my system. Is it built into gcc or
something? It seems to be part of stdlib.

BTW, if I build PHP with --enable-debug Aolserver crashes on startup:

[27/Nov/2001:12:12:42][14963.1024][-main-] Warning: modload: failed to load
'/usr/local/aolserver/bin/libphp4.so':
'/usr/local/aolserver/bin/libphp4.so: undefined symbol: tsrm_error'
[27/Nov/2001:12:12:42][14963.1024][-main-] Fatal: modload: failed to load
module '/usr/local/aolserver/bin/libphp4.so'



Sean Redmond
Brooklyn Museum of Art



Re: [AOLSERVER] Again, Segfault with Aolserver, PHP, SquirrelMail

2001-11-27 Thread Dossy

On 2001.11.27, Sean Redmond [EMAIL PROTECTED] wrote:
 At 01:22 PM 11/27/2001 -0500, you wrote:
 Could you add the directory containing the PHP source to your
 gdb init, as well, and send that backtrace?  I'm guessing that's
 where canonicalize.c lives, and it'd be interesting to see what
 line 88 is actually doing that causes the segfault ...

 I did (tsrm_virtual_cwd.c, for instance, is part of PHP) but but there is
 no file called canonicalize.c on my system. Is it built into gcc or
 something? It seems to be part of stdlib.

Against your AOLserver 3.0 and RH7 setup, could you re-run gdb
and produce the crash, then type up then list as commands
to gdb once it segfaults?

Send that output.  It may help us.

-- Dossy

--
Dossy Shiobara   mail: [EMAIL PROTECTED]
Panoptic Computer Network web: http://www.panoptic.com/
  He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on. (p. 70)



Re: [AOLSERVER] Again, Segfault with Aolserver, PHP, SquirrelMail

2001-11-27 Thread Sean Redmond

(gdb) up
#1  0x40291659 in virtual_file_ex (state=0x403ac164,
 path=0x833a694 ../src/load_prefs.php, verify_path=0)
 at tsrm_virtual_cwd.c:299
299 if (realpath(tmp, resolved_path)) {
(gdb) list
294 ptr += state-cwd_length;
295 *ptr++ = DEFAULT_SLASH;
296 memcpy(ptr, path, path_length);
297 ptr += path_length;
298 *ptr = '\0';
299 if (realpath(tmp, resolved_path)) {
300 path = resolved_path;
301 path_length = strlen(path);
302 }
303 free(tmp);


At 02:10 PM 11/27/2001 -0500, Dossy wrote:
Against your AOLserver 3.0 and RH7 setup, could you re-run gdb
and produce the crash, then type up then list as commands
to gdb once it segfaults?

Send that output.  It may help us.

-- Dossy

Sean Redmond
Brooklyn Museum of Art



[AOLSERVER] [ aolserver-Support Requests-486126 ] How to debug inside ADP?

2001-11-27 Thread Ms. Source Forge

Support Requests item #486126, was opened at 2001-11-27 11:30
You can respond by visiting:
http://sourceforge.net/tracker/?func=detailatid=203152aid=486126group_id=3152

Category: Configuration: Other
Group: aolserver3_2
Status: Open
Resolution: None
Priority: 5
Submitted By: Danny Lieberman (dannyl50)
Assigned to: Nobody/Anonymous (nobody)
Summary: How to debug  inside ADP?

Initial Comment:
Hi
I am running aolserver 3.2 with open acs 3/posgres 7.1


For debugging, we open 2 windows: browser in window 1
and tail -f servername.log in window 2

we are doing heavy SQL/tcl development and the errors
get swallowed up in the servername.log file.

isnt there a way JUST to see the errors and not all
the GET commands?

In another installation i had with aolserver 3.1 and
acs 3.5/oracle - we had TWO (2) logs - servername.log
and servername-error.log

thx
danny



--

You can respond by visiting:
http://sourceforge.net/tracker/?func=detailatid=203152aid=486126group_id=3152



Re: [AOLSERVER] Again, Segfault with Aolserver, PHP, SquirrelMail

2001-11-27 Thread Dossy

Okay.  Could you provide the source for the entire virtual_file_ex()
function from tsrm_virtual_cwd.c file?

-- Dossy

On 2001.11.27, Sean Redmond [EMAIL PROTECTED] wrote:
 (gdb) up
 #1  0x40291659 in virtual_file_ex (state=0x403ac164,
 path=0x833a694 ../src/load_prefs.php, verify_path=0)
 at tsrm_virtual_cwd.c:299
 299 if (realpath(tmp, resolved_path)) {
 (gdb) list
 294 ptr += state-cwd_length;
 295 *ptr++ = DEFAULT_SLASH;
 296 memcpy(ptr, path, path_length);
 297 ptr += path_length;
 298 *ptr = '\0';
 299 if (realpath(tmp, resolved_path)) {
 300 path = resolved_path;
 301 path_length = strlen(path);
 302 }
 303 free(tmp);


 At 02:10 PM 11/27/2001 -0500, Dossy wrote:
 Against your AOLserver 3.0 and RH7 setup, could you re-run gdb
 and produce the crash, then type up then list as commands
 to gdb once it segfaults?
 
 Send that output.  It may help us.
 
 -- Dossy

 Sean Redmond
 Brooklyn Museum of Art

--
Dossy Shiobara   mail: [EMAIL PROTECTED]
Panoptic Computer Network web: http://www.panoptic.com/
  He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on. (p. 70)



Re: [AOLSERVER] Again, Segfault with Aolserver, PHP, SquirrelMail

2001-11-27 Thread Dossy

My next suggestion will require learning a bit of gdb, but
I'd try setting a breakpoint on line 298, and when it stops
I'd inspect what's actually contained in *tmp.

Why they built *ptr (and thus, *tmp) the way they did
baffles me, too.

One suggestion, delete line 287 (I think) which I'm marking
with *** :

} else { /* Concat current directory with relative path and then run 
realpath() on it */
char *tmp;
char *ptr;   *** THIS LINE ***

The locally scoped *ptr masks the *ptr defined at the
function scope (char *ptr, *path_copy;) ... I don't
think this is the culprit, but who knows.  Removing line
287's definition shouldn't cause any additional problems
after reading the code.

Try making this small change, and recompiling the PHP
module, and see what happens.

-- Dossy


On 2001.11.27, Sean Redmond [EMAIL PROTECTED] wrote:
 Here it is (marked line 299 with )

 /* Resolve path relatively to state and put the real path into state */
 /* returns 0 for ok, 1 for error */
 CWD_API int virtual_file_ex(cwd_state *state, const char *path,
 verify_path_func verify_path)
 {
 int path_length = strlen(path);
 char *ptr, *path_copy;
 char *tok = NULL;
 int ptr_length;
 cwd_state *old_state;
 int ret = 0;
 int copy_amount = -1;
 char *free_path;
 unsigned char is_absolute = 0;
 #ifndef TSRM_WIN32
 char resolved_path[MAXPATHLEN];
 #endif

 if (path_length == 0)
 return (0);

 #if !defined(TSRM_WIN32)  !defined(__BEOS__)
 if (IS_ABSOLUTE_PATH(path, path_length)) {
 if (realpath(path, resolved_path)) {
 path = resolved_path;
 path_length = strlen(path);
 }
 } else { /* Concat current directory with relative path and then
 run realpath() on it */
 char *tmp;
 char *ptr;

 ptr = tmp = (char *)
 malloc(state-cwd_length+path_length+sizeof(/));
 if (!tmp) {
 return 1;
 }
 memcpy(ptr, state-cwd, state-cwd_length);
 ptr += state-cwd_length;
 *ptr++ = DEFAULT_SLASH;
 memcpy(ptr, path, path_length);
 ptr += path_length;
 *ptr = '\0';
 if (realpath(tmp, resolved_path)) { // 
 path = resolved_path;
 path_length = strlen(path);
 }
 free(tmp);
 }
 #endif
 free_path = path_copy = tsrm_strndup(path, path_length);

 old_state = (cwd_state *) malloc(sizeof(cwd_state));
 CWD_STATE_COPY(old_state, state);
 #if VIRTUAL_CWD_DEBUG
 fprintf(stderr,cwd = %s path = %s\n, state-cwd, path);
 #endif
 if (IS_ABSOLUTE_PATH(path_copy, path_length)) {
 copy_amount = COPY_WHEN_ABSOLUTE;
 is_absolute = 1;
 #ifdef TSRM_WIN32
 } else if (IS_UNC_PATH(path_copy, path_length)) {
 copy_amount = 1;
 is_absolute = 1;
 } else if (IS_SLASH(path_copy[0])) {
 copy_amount = 2;
 #endif
 }

 if (copy_amount != -1) {
 state-cwd = (char *) realloc(state-cwd, copy_amount + 1);
 if (copy_amount) {
 if (is_absolute) {
 memcpy(state-cwd, path_copy, copy_amount);
 path_copy += copy_amount;
 } else {
 memcpy(state-cwd, old_state-cwd,
 copy_amount);
 }
 }
 state-cwd[copy_amount] = '\0';
 state-cwd_length = copy_amount;
 }


 ptr = tsrm_strtok_r(path_copy, TOKENIZER_STRING, tok);
 while (ptr) {
 ptr_length = strlen(ptr);

 if (IS_DIRECTORY_UP(ptr, ptr_length)) {
 char save;

 save = DEFAULT_SLASH;

 #define PREVIOUS state-cwd[state-cwd_length - 1]

 while (IS_ABSOLUTE_PATH(state-cwd,
 state-cwd_length) 
 !IS_SLASH(PREVIOUS)) {
 save = PREVIOUS;
 PREVIOUS = '\0';
 state-cwd_length--;
 }

 if (!IS_ABSOLUTE_PATH(state-cwd,
 state-cwd_length)) {
 state-cwd[state-cwd_length++] = save;
 state-cwd[state-cwd_length] = '\0';
 } else {
 PREVIOUS = '\0';
 state-cwd_length--;
 }
 } else if (!IS_DIRECTORY_CURRENT(ptr, ptr_length)) {
 

[AOLSERVER] Search on aolserver.com has finally re-indexed

2001-11-27 Thread Kriston Rehberg

Google.com's spider has finally re-indexed AOLserver.com.  The search
box on the site and in the Netscape 6 Sidebar is now hitting the right
pages.

Kris

--
Kriston Rehberg
America Online, Inc.