Re: Apache::ASP: crash when placed in startup.pl

2000-01-14 Thread Dmitry Beransky

Doh!  I forgot to say what I'm running:

Apache::ASP v. 0.17
SDMB_File v. 1.0
mod_perl v. 1.21
Apache v. 1.39
RedHat 6.1 on Linux 2.2.12 x86

At 11:30 AM 1/14/00 , you wrote:
Hi,

I'm trying to preload and precompile all ASP scripts by including 
Apache::ASP in the startup.pl.  However, when I do so, httpd core dumps 
with a segmentation fault in SDBM_File:

Program received signal SIGSEGV, Segmentation fault.
0x403dfe27 in boot_SDBM_File () from 
/usr/lib/perl5/5.00503/i386-linux/auto/SDBM_File/SDBM_File.so
(gdb)

Quite frankly, I have no idea where to go from here.  Any suggestions?

Thanks
Dmitry Beransky




Re: Apache::ASP: crash when placed in startup.pl

2000-01-14 Thread Joshua Chamas

Dmitry Beransky wrote:
 
 Doh!  I forgot to say what I'm running:
 
 Apache::ASP v. 0.17
 SDMB_File v. 1.0
 mod_perl v. 1.21
 Apache v. 1.39
 RedHat 6.1 on Linux 2.2.12 x86
 

This might be yet another RedHat problem ... have you tried
rebuilding your perl / mod_perl from scratch.  Out of curiosity
really, because I think you should still rebuild stuff,
does SDBM_File load fine, if not being preloaded ?

-- Joshua
_
Joshua Chamas   Chamas Enterprises Inc.
NodeWorks  free web link monitoring   Huntington Beach, CA  USA 
http://www.nodeworks.com1-714-625-4051



Re: Apache::ASP: crash when placed in startup.pl

2000-01-14 Thread Dmitry Beransky

Yep, everything runs just fine if I don't preload Apache::ASP.  My 
apache/mod_perl are rebuilt, but I'm still using Perl off the original 
RedHat distribution (totally forgot about his).  I can try recompiling 
it...I'll be back with the result shortly.

Thanks
Dmitry

At 01:26 PM 1/14/00 , Joshua Chamas wrote:

This might be yet another RedHat problem ... have you tried
rebuilding your perl / mod_perl from scratch.  Out of curiosity
really, because I think you should still rebuild stuff,
does SDBM_File load fine, if not being preloaded ?
Dmitry Beransky wrote:
 
  Doh!  I forgot to say what I'm running:
 
  Apache::ASP v. 0.17
  SDMB_File v. 1.0
  mod_perl v. 1.21
  Apache v. 1.39
  RedHat 6.1 on Linux 2.2.12 x86
 



Re: Apache::ASP: crash when placed in startup.pl

2000-01-14 Thread Dmitry Beransky


This might be yet another RedHat problem ... have you tried
rebuilding your perl / mod_perl from scratch.  Out of curiosity
really, because I think you should still rebuild stuff,
does SDBM_File load fine, if not being preloaded ?

Well, I just finished recompiling perl and mod_perl, but the problem is 
still there.  Is there any way to verify that mod_perl is using the new perl?

Thanks
Dmitry



Re: Apache::ASP: crash when placed in startup.pl

2000-01-14 Thread Joshua Chamas

Dmitry Beransky wrote:
 
 This might be yet another RedHat problem ... have you tried
 rebuilding your perl / mod_perl from scratch.  Out of curiosity
 really, because I think you should still rebuild stuff,
 does SDBM_File load fine, if not being preloaded ?
 
 Well, I just finished recompiling perl and mod_perl, but the problem is
 still there.  Is there any way to verify that mod_perl is using the new perl?
 

I don't know about this, are you sure you copied over your
new modperl httpd to /usr/local/apache after the build, 
and did a full stop / start, this is a common step overlooked
by the best of us.

Beyond this, I think it would be a shame if you couldn't 
preload Apache::ASP because of SDBM_File, you might want
to research the archives a bit on other preload problems
people have had, as they are likely related.  I do 
my UNIX work on Solaris and have not ever dealt with this 
problem personally, so can't really pursue it for you.

Maybe someone else has some insight?

-- Joshua
_
Joshua Chamas   Chamas Enterprises Inc.
NodeWorks  free web link monitoring   Huntington Beach, CA  USA 
http://www.nodeworks.com1-714-625-4051



Re: Apache::ASP: crash when placed in startup.pl

2000-01-14 Thread Dmitry Beransky


I don't know about this, are you sure you copied over your
new modperl httpd to /usr/local/apache after the build,
and did a full stop / start, this is a common step overlooked
by the best of us.

Yes, I'm using the new build.  I've compiled perl with debugging turned on 
and now gdb shows exactly where the problem occurs: line 267 of SDBM_File.c

262 #ifdef __cplusplus
263 extern "C"
264 #endif
265 XS(boot_SDBM_File)
266 {
267 dXSARGS;
268 char* file = __FILE__;
269
270 XS_VERSION_BOOTCHECK ;

I guess at this point I got to go to a bookstore, get a book on GDB and get 
my hands dirty with some debugging :).

Thanks
Dmitry

  This might be yet another RedHat problem ... have you tried
  rebuilding your perl / mod_perl from scratch.  Out of curiosity
  really, because I think you should still rebuild stuff,
  does SDBM_File load fine, if not being preloaded ?
 
  Well, I just finished recompiling perl and mod_perl, but the problem is
  still there.  Is there any way to verify that mod_perl is using the new 
 perl?
 



Re: Apache::ASP: crash when placed in startup.pl

2000-01-14 Thread Daniel Jacobowitz

This sounds like the same corruption problem that I talked about in my
last message - could you try exporting LD_PRELOAD=/path/to/modperl.so?

(I'm guessing from context that you're using a DSO - apologies for the
non-sequitor if I'm wrong, I just got back on the list).

On Fri, Jan 14, 2000 at 05:57:49PM -0800, Dmitry Beransky wrote:
 
 I don't know about this, are you sure you copied over your
 new modperl httpd to /usr/local/apache after the build,
 and did a full stop / start, this is a common step overlooked
 by the best of us.
 
 Yes, I'm using the new build.  I've compiled perl with debugging turned on 
 and now gdb shows exactly where the problem occurs: line 267 of SDBM_File.c
 
 262 #ifdef __cplusplus
 263 extern "C"
 264 #endif
 265 XS(boot_SDBM_File)
 266 {
 267 dXSARGS;
 268 char* file = __FILE__;
 269
 270 XS_VERSION_BOOTCHECK ;
 
 I guess at this point I got to go to a bookstore, get a book on GDB and get 
 my hands dirty with some debugging :).
 
 Thanks
 Dmitry
 
   This might be yet another RedHat problem ... have you tried
   rebuilding your perl / mod_perl from scratch.  Out of curiosity
   really, because I think you should still rebuild stuff,
   does SDBM_File load fine, if not being preloaded ?
  
   Well, I just finished recompiling perl and mod_perl, but the problem is
   still there.  Is there any way to verify that mod_perl is using the new 
  perl?
  
 


Dan

/\  /\
|   Daniel Jacobowitz|__|SCS Class of 2002   |
|   Debian GNU/Linux Developer__Carnegie Mellon University   |
| [EMAIL PROTECTED] |  |   [EMAIL PROTECTED]  |
\/  \/



Re: Apache::ASP: crash when placed in startup.pl

2000-01-14 Thread Dmitry Beransky

Yep, I am using DSO, but LD_PRELOAD didn't help

[dmitry@bio-york ~]# set LD_PRELOAD=/usr/lib/apache/libperl.so
[dmitry@bio-york ~]# gdb httpd
GNU gdb 4.18
This GDB was configured as "i386-redhat-linux"...
(gdb) run -X
Starting program: /usr/sbin/httpd -X
[Fri Jan 14 18:34:03 2000] [error] [asp] [3483] loaded 12 scripts

Program received signal SIGSEGV, Segmentation fault.
0x4043180b in boot_SDBM_File (cv=0x8aef3e8) at SDBM_File.c:267
267 dXSARGS;

Cheers
Dmitry

At 06:17 PM 1/14/00 , Daniel Jacobowitz wrote:
This sounds like the same corruption problem that I talked about in my
last message - could you try exporting LD_PRELOAD=/path/to/modperl.so?

(I'm guessing from context that you're using a DSO - apologies for the
non-sequitor if I'm wrong, I just got back on the list).

On Fri, Jan 14, 2000 at 05:57:49PM -0800, Dmitry Beransky wrote:
 
  I don't know about this, are you sure you copied over your
  new modperl httpd to /usr/local/apache after the build,
  and did a full stop / start, this is a common step overlooked
  by the best of us.
 
  Yes, I'm using the new build.  I've compiled perl with debugging turned on
  and now gdb shows exactly where the problem occurs: line 267 of SDBM_File.c