Segmetation Fault problem
Hello! I've come upon a strange problem with my Apache/mod_perl configuration. (Apache v 1.3.9 mod_perl 1.21) When I attempt to preload Perl modules like FileHandle, Apache::DBI, DBI, etc., the httpd process gets a segmentation fault and core dumps at startup. I've tried using the PerlModule directive as well as a PerlRequire and a startup file with the same results. Here's the strange part. If I start the server first, then modify the configuration and *restart* it (not a stop and start) the modules load up and work fine. Anyone seen anything like this before ?? Any help would be appreciated! Thanks in advance! - Ralph Hughes mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] Systems Engineer 334-260-3200 Anteon Corp.DSN 596-5631 Montgomery, AL
Re: Segmetation Fault problem
Ralph, This isn't any help, but this describes the exact same problem I'm having. Using your experience I was able to get the module to load with a HUP. I wonder is the dir DBI is in doesn't get put into @INC until sometime after startup.pl tries to run? I'll have to experiment with that. - mt At 12:24 PM -0400 6/2/00, Hughes, Ralph wrote: Hello! I've come upon a strange problem with my Apache/mod_perl configuration. (Apache v 1.3.9 mod_perl 1.21) When I attempt to preload Perl modules like FileHandle, Apache::DBI, DBI, etc., the httpd process gets a segmentation fault and core dumps at startup. I've tried using the PerlModule directive as well as a PerlRequire and a startup file with the same results. Here's the strange part. If I start the server first, then modify the configuration and *restart* it (not a stop and start) the modules load up and work fine. Anyone seen anything like this before ?? Any help would be appreciated! Thanks in advance! - Ralph Hughes mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] Systems Engineer 334-260-3200 Anteon Corp.DSN 596-5631 Montgomery, AL
RE: Segmetation Fault problem
are you both using the default RPM from redhat? IIRC, if you check the archives, you'll find similar reports for users of the RPM. Generally, RedHat RPMs use mod_perl as a DSO, and it seems mod_perl's DSO received lots of DSO upgrading/tuning after 1.21. I'd suggest rolling your own mod_perl + apache statically from the sources and see if the problem goes away. At the very least, try to use a static RPM: http://perl.apache.org/guide/install.html#Installing_a_single_apache_mod_p rolling your own is not all that difficult, if you are up to trying: http://perl.apache.org/guide/install.html HTH --Geoff -Original Message- From: Michael Todd Glazier [mailto:[EMAIL PROTECTED]] Sent: Friday, June 02, 2000 12:40 PM To: Hughes, Ralph; ModPerl Subject: Re: Segmetation Fault problem Ralph, This isn't any help, but this describes the exact same problem I'm having. Using your experience I was able to get the module to load with a HUP. I wonder is the dir DBI is in doesn't get put into @INC until sometime after startup.pl tries to run? I'll have to experiment with that. - mt At 12:24 PM -0400 6/2/00, Hughes, Ralph wrote: Hello! I've come upon a strange problem with my Apache/mod_perl configuration. (Apache v 1.3.9 mod_perl 1.21) When I attempt to preload Perl modules like FileHandle, Apache::DBI, DBI, etc., the httpd process gets a segmentation fault and core dumps at startup. I've tried using the PerlModule directive as well as a PerlRequire and a startup file with the same results. Here's the strange part. If I start the server first, then modify the configuration and *restart* it (not a stop and start) the modules load up and work fine. Anyone seen anything like this before ?? Any help would be appreciated! Thanks in advance! - Ralph Hughes mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] Systems Engineer 334-260-3200 Anteon Corp.DSN 596-5631 Montgomery, AL
RE: Segmetation Fault problem
Nope! I didn't trust the RPM configuration so I built Apache, and mod_perl from source. After you do it half a dozen times or so, it's almost as fast as the RPM install :-) -Original Message- From: Geoffrey Young [mailto:[EMAIL PROTECTED]] Sent: Friday, June 02, 2000 12:11 PM To: 'Michael Todd Glazier'; Hughes, Ralph; ModPerl Subject: RE: Segmetation Fault problem are you both using the default RPM from redhat? IIRC, if you check the archives, you'll find similar reports for users of the RPM. Generally, RedHat RPMs use mod_perl as a DSO, and it seems mod_perl's DSO received lots of DSO upgrading/tuning after 1.21. I'd suggest rolling your own mod_perl + apache statically from the sources and see if the problem goes away. At the very least, try to use a static RPM: http://perl.apache.org/guide/install.html#Installing_a_single_apache_mod_p rolling your own is not all that difficult, if you are up to trying: http://perl.apache.org/guide/install.html HTH --Geoff -Original Message- From: Michael Todd Glazier [mailto:[EMAIL PROTECTED]] Sent: Friday, June 02, 2000 12:40 PM To: Hughes, Ralph; ModPerl Subject: Re: Segmetation Fault problem Ralph, This isn't any help, but this describes the exact same problem I'm having. Using your experience I was able to get the module to load with a HUP. I wonder is the dir DBI is in doesn't get put into @INC until sometime after startup.pl tries to run? I'll have to experiment with that. - mt At 12:24 PM -0400 6/2/00, Hughes, Ralph wrote: Hello! I've come upon a strange problem with my Apache/mod_perl configuration. (Apache v 1.3.9 mod_perl 1.21) When I attempt to preload Perl modules like FileHandle, Apache::DBI, DBI, etc., the httpd process gets a segmentation fault and core dumps at startup. I've tried using the PerlModule directive as well as a PerlRequire and a startup file with the same results. Here's the strange part. If I start the server first, then modify the configuration and *restart* it (not a stop and start) the modules load up and work fine. Anyone seen anything like this before ?? Any help would be appreciated! Thanks in advance! - Ralph Hughes mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] Systems Engineer 334-260-3200 Anteon Corp.DSN 596-5631 Montgomery, AL
RE: Segmetation Fault problem
hmmm, did you try upgrading your installation then? you are using a static mod_perl? PerlFreshRestart Off? I'm no good at reading backtraces, but posting that is probably the next step (see SUPPORT doc section on core dumps in the distribution) sorry I can't be of more help... --Geoff -Original Message- From: Hughes, Ralph [mailto:[EMAIL PROTECTED]] Sent: Friday, June 02, 2000 1:57 PM To: Geoffrey Young; 'Michael Todd Glazier'; ModPerl Subject: RE: Segmetation Fault problem Nope! I didn't trust the RPM configuration so I built Apache, and mod_perl from source. After you do it half a dozen times or so, it's almost as fast as the RPM install :-) -Original Message- From: Geoffrey Young [mailto:[EMAIL PROTECTED]] Sent: Friday, June 02, 2000 12:11 PM To: 'Michael Todd Glazier'; Hughes, Ralph; ModPerl Subject: RE: Segmetation Fault problem are you both using the default RPM from redhat? IIRC, if you check the archives, you'll find similar reports for users of the RPM. Generally, RedHat RPMs use mod_perl as a DSO, and it seems mod_perl's DSO received lots of DSO upgrading/tuning after 1.21. I'd suggest rolling your own mod_perl + apache statically from the sources and see if the problem goes away. At the very least, try to use a static RPM: http://perl.apache.org/guide/install.html#Installing_a_single_ apache_mod_p rolling your own is not all that difficult, if you are up to trying: http://perl.apache.org/guide/install.html HTH --Geoff -Original Message- From: Michael Todd Glazier [mailto:[EMAIL PROTECTED]] Sent: Friday, June 02, 2000 12:40 PM To: Hughes, Ralph; ModPerl Subject: Re: Segmetation Fault problem Ralph, This isn't any help, but this describes the exact same problem I'm having. Using your experience I was able to get the module to load with a HUP. I wonder is the dir DBI is in doesn't get put into @INC until sometime after startup.pl tries to run? I'll have to experiment with that. - mt At 12:24 PM -0400 6/2/00, Hughes, Ralph wrote: Hello! I've come upon a strange problem with my Apache/mod_perl configuration. (Apache v 1.3.9 mod_perl 1.21) When I attempt to preload Perl modules like FileHandle, Apache::DBI, DBI, etc., the httpd process gets a segmentation fault and core dumps at startup. I've tried using the PerlModule directive as well as a PerlRequire and a startup file with the same results. Here's the strange part. If I start the server first, then modify the configuration and *restart* it (not a stop and start) the modules load up and work fine. Anyone seen anything like this before ?? Any help would be appreciated! Thanks in advance! - Ralph Hughes mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] Systems Engineer 334-260-3200 Anteon Corp.DSN 596-5631 Montgomery, AL
RE: Segmetation Fault problem
I'm not too good on back traces myself. ` I'm using a dynamic build of mod_perl, so I may try building the 1.24 version next week sometime. I hadn't thought of changing the PerFreshStart parameter, it might make a difference... -Original Message- From: Geoffrey Young [mailto:[EMAIL PROTECTED]] Sent: Friday, June 02, 2000 1:11 PM To: Hughes, Ralph; 'Michael Todd Glazier'; ModPerl Subject: RE: Segmetation Fault problem hmmm, did you try upgrading your installation then? you are using a static mod_perl? PerlFreshRestart Off? I'm no good at reading backtraces, but posting that is probably the next step (see SUPPORT doc section on core dumps in the distribution) sorry I can't be of more help... --Geoff
RE: Segmetation Fault problem
COOL! I couldn't wait... I built and installed mod_perl 1.24 and it fixed the problem! Now if I can just get the CGI module to recognize my domainname .. :-) -Original Message- From: Hughes, Ralph Sent: Friday, June 02, 2000 2:02 PM To: Geoffrey Young; 'Michael Todd Glazier'; ModPerl Subject: RE: Segmetation Fault problem I'm not too good on back traces myself. ` I'm using a dynamic build of mod_perl, so I may try building the 1.24 version next week sometime. I hadn't thought of changing the PerFreshStart parameter, it might make a difference... -Original Message- From: Geoffrey Young [mailto:[EMAIL PROTECTED]] Sent: Friday, June 02, 2000 1:11 PM To: Hughes, Ralph; 'Michael Todd Glazier'; ModPerl Subject: RE: Segmetation Fault problem hmmm, did you try upgrading your installation then? you are using a static mod_perl? PerlFreshRestart Off? I'm no good at reading backtraces, but posting that is probably the next step (see SUPPORT doc section on core dumps in the distribution) sorry I can't be of more help... --Geoff