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

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

2001-11-27 Thread Sean Redmond
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);

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=

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

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

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

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 f

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 thi

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

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

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

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 A

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 upg

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

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

2001-11-26 Thread Scott S. Goodwin
mber 26, 2001 4:06 PM Subject: Re: [AOLSERVER] Again, Segfault with Aolserver, PHP, SquirrelMail > At 03:27 PM 11/26/2001 -0500, you wrote: > >Hi Sean, > > > >have you run AOLserver under GDB yet to find out where it is segfaulting? > >Here's an example of how to do

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

2001-11-26 Thread Sean Redmond
At 03:27 PM 11/26/2001 -0500, you wrote: >Hi Sean, > >have you run AOLserver under GDB yet to find out where it is segfaulting? >Here's an example of how to do that. Thanks. It is happening when in the PHP statement include "../src/load_prefs.php"; The relative path is expanded to /

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

2001-11-26 Thread Dossy
Hello, Sean, Would you be willing to create a temporary account so that I can log in and look around at the problem? I don't have the resources at the moment to duplicate your environment, but could spend a few minutes to troubleshoot, if you're so inclined. Email me off the list with account a

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

2001-11-26 Thread Scott Goodwin
Hi Sean, have you run AOLserver under GDB yet to find out where it is segfaulting? Here's an example of how to do that. Put this into a file called gdbinit, substituting the things in parens with something appropriate and adjusting pathnames: === BEGIN : CUT == directory /usr/lo