well - I've used up about 2 days trying to figure this out on my own.
My SEGV's occur intermittantly and from different in my embperl code,
but always when using $req_req. It helps to constantly switch back and
forth from SSL pages and non-SSLpages.
Sometimes I have to hit the server over 50 times to make it SEGV.
Here is an example confess upon catching SEGV 11
Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
Please contact the server administrator, [EMAIL PROTECTED] and inform
them of the time the error occurred, and
anything you might have done that may have caused the error.
[12492]ERR: 24: Line 8: Error in Perl code: caught SEGV! at
/usr/local/apache/share/GWCe.htm line 5
HTML::Embperl::DOC::_2::__ANON__('SEGV') called at
/usr/local/apache/share/GWCe.htm line 140
HTML::Embperl::DOC::_2::__ANON__ called at
/usr/local/apache/share/GWCe.htm line 1
eval {...} called at /usr/local/apache/share/GWCe.htm line 1
HTML::Embperl::DOC::_2::upddat() called at
/usr/local/apache/share/GWCe.htm line 219
HTML::Embperl::DOC::_2::__ANON__ called at
/usr/local/apache/share/GWCe.htm line 216
eval {...} called at /usr/local/apache/share/GWCe.htm line 216
HTML::Embperl::DOC::_2::ordpag() called at
/usr/local/apache_1.3.9/htdocs/nov99_develope/candle_finder/index.htm
line 2
HTML::Embperl::DOC::_6::__ANON__ called at
/usr/lib/perl5/site_perl/5.005/i686-linux/HTML/Embperl.pm line 639
eval {...} called at
/usr/lib/perl5/site_perl/5.005/i686-linux/HTML/Embperl.pm line 639
HTML::Embperl::CleanCallExecuteReq('HTML::Embperl::Req=SCALAR(0x84b11a8)',
undef) called at
/usr/lib/perl5/site_perl/5.005/i686-linux/HTML/Embperl.pm line 863
HTML::Emb
Apache/1.3.9 (Unix) mod_perl/1.21 mod_ssl/2.4.8 OpenSSL/0.9.4
HTML::Embperl 1.2b10 [Fri Nov 5 15:54:04
1999]
relevant sections of my code are as follows:
-----------
ordpag() called at
/usr/local/apache_1.3.9/htdocs/nov99_develope/candle_finder/index.htm
line 2:
[- Execute({inputfile => '/usr/local/apache/share/GWCe.htm', mtime =>
1, import => 1}); -]
[- ordpag(); exit if $GWCe::xitflg; -] <<--- line 2
<html>
----------------
HTML::Embperl::DOC::_2::upddat() called at
/usr/local/apache/share/GWCe.htm line 219
HTML::Embperl::DOC::_2::__ANON__ called at
/usr/local/apache/share/GWCe.htm line 216
[$sub ordpag$]<<-- line 216
[-
$GWCe::xitflg=0;
upddat(); <<-- line 219
-------------------
HTML::Embperl::DOC::_2::__ANON__('SEGV') called at
/usr/local/apache/share/GWCe.htm line 140
if($req_rec->uri!~m!(/candle_orders/)|(ordonline.htm)!){ <<-- line 140
[12492]ERR: 24: Line 8: Error in Perl code: caught SEGV! at
/usr/local/apache/share/GWCe.htm line 5
HTML::Embperl::DOC::_2::__ANON__ called at
/usr/local/apache/share/GWCe.htm line 1
[$sub upddat$] <<-- line 1
[-
use Carp ();
$SIG{'SEGV'} = sub {
Carp::confess("caught SEGV!"); <<-- line 5
}
-]
Linux x8.genwax.com 2.0.36 #4 Thu Jun 17 13:25:49 PDT 1999 i686 unknown
version 5.005_02 built for i686-linux
mod perl 1.21
mod_ssl-2.4.8-1.3.9
Apache Session 1.04
Embperl 1.2b10
config:
# 1999/08/31, cliff, add embperl
# PerlSetEnv EMBPERL_DEBUG 1
# PerlSetEnv EMBPERL_DEBUG 100
# PerlSetEnv EMBPERL_DEBUG 2105476
# debug with GWCe::dbgflg and write after each line
PerlSetEnv EMBPERL_DEBUG 513
# PerlSetEnv EMBPERL_DEBUG 7341674
PerlSetEnv EMBPERL_MAIL_ERRORS_TO webmaster
PerlSetEnv EMBPERL_OPTIONS 8192
PerlSetEnv EMBPERL_VIRTLOG /embperl/log
PerlSetEnv EMBPERL_COOKIE_NAME GWCUID
PerlSetEnv EMBPERL_COOKIE_DOMAIN .genwax.com
PerlSetEnv EMBPERL_COOKIE_PATH /
PerlSetEnv EMBPERL_COOKIE_EXPIRES '31-Dec-2010 23:59:59 GMT'
PerlRequire /usr/local/apache/startup.pl
<Location /embperl/log>
SetHandler perl-script
PerlHandler HTML::Embperl
Options ExecCGI
</Location>
<Directory /usr/local/apache/htdocs/nov99_develope>
<FilesMatch ".*\.html?$">
SetHandler perl-script
PerlHandler HTML::Embperl
Options ExecCGI
</FilesMatch>
</Directory>
# 09-24-99, , cliff, add rewrite engine for non caching browser tricks
RewriteEngine On
RewriteLog /usr/local/apache/logs/rewrite_log
RewriteLogLevel 1
RewriteRule (.*)/___[0-9_]+___(.*)$ $1/$2
httpd -v and -l follow:
Server version: Apache/1.3.9 (Unix)
Server built: Nov 5 1999 11:32:08
Server's Module Magic Number: 19990320:6
Server compiled with....
-D EAPI
-D HAVE_MMAP
-D HAVE_SHMGET
-D USE_SHMGET_SCOREBOARD
-D USE_MMAP_FILES
-D USE_FCNTL_SERIALIZED_ACCEPT
-D HTTPD_ROOT="/usr/local/apache_1.3.9"
-D SUEXEC_BIN="/usr/local/apache_1.3.9/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/httpd.scoreboard"
-D DEFAULT_LOCKFILE="logs/httpd.lock"
-D DEFAULT_XFERLOG="logs/access_log"
-D DEFAULT_ERRORLOG="logs/error_log"
-D TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
-D ACCESS_CONFIG_FILE="conf/access.conf"
-D RESOURCE_CONFIG_FILE="conf/srm.conf"
Compiled-in modules:
http_core.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_negotiation.c
mod_status.c
mod_include.c
mod_autoindex.c
mod_dir.c
mod_cgi.c
mod_asis.c
mod_imap.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_rewrite.c
mod_access.c
mod_auth.c
mod_setenvif.c
mod_ssl.c
mod_perl.c