Re: Re: Re: Re: Process exists - Segmentation fault
Hi Gerald, Sorry for a late reply , no make test did not worked correctly, it did tested the modperl part and gave error like an error on line 21. I will try to give the exact error later, Thanks, Abhishek jain On 1/9/08, Gerald Richter - ECOS GmbH [EMAIL PROTECTED] wrote: Hi, Maybe we should go one step back: Does make test works correctly for you? Does it also test the mod_perl part? Gerald -Original Message- From: abhishek jain [mailto:[EMAIL PROTECTED] Sent: Monday, January 07, 2008 2:59 AM To: Gerald Richter Cc: modperl@perl.apache.org Subject: Re: Re: Re: Process exists - Segmentation fault Hi Its me again, But still the things are not working right. I tried to recompile Embperl and put PerlModule Embperl after LoadModule embperl_module .. Now i do not remember it was before or now but after i uncomment the 'PerlModule Embperl' line and things stop working i do not receieve $r=shift; variable i mean $r = undef here. Is it due to something i did during installation of embperl. Also If i uncomment the line 'MaxRequestsPerChild 1' and comment 'PerlModule Embperl ' then i recveive this line in error log [Sun Jan 06 18:44:11 2008] [notice] child pid 30280 exit signal Segmentation fault (11) (May be error and page refreshes itself i mean the code produces output.) and page appears , sometimes the same error appears twice and page does not appears. I am not sure have this error been encountered by someone else but things are not working right for me . Also if someone wants i can mail the Embperl logs to someone individually, i do not want to make the logs public. Pl help. I am working on the site http://delhi.pm.org/ it is the delhi perl mongers site and people in this group have limited knowledge of embperl but this will push up the embperl in Delhi . -- Thanks Abhishek jain On 1/4/08, Gerald Richter - ECOS GmbH [EMAIL PROTECTED] wrote: Hi, Not sure if it makes any difference, but the lines LoadModule embperl_module /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/Em bperl/Embp erl.so PerlModule Apache::DBI PerlModule Embperl Should be outside of the VirtualHost block (they are global anyway) The other thing that you should make sure, is that mod_perl is compiled with the same Perl that Embperl is and both are using modules from the path /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi If there is any version mismatch, things cannot run correctly. Gerald -Original Message- From: abhishek jain [mailto: [EMAIL PROTECTED] Sent: Thursday, January 03, 2008 8:20 PM To: Gerald Richter Cc: modperl@perl.apache.org Subject: Re: Re: Process exists - Segmentation fault Hi, Adding PerlModule Embperl did not solved the problem , infact it aggreviated it. With this the page is not didsplaye at all. My apache configuration is: VirtualHost ip:80 SuexecUserGroup #id #id ServerName x ServerAlias www.x DocumentRoot public_html ErrorLog dir/logs/error_log CustomLog dir/logs/access_log combined LoadModule embperl_module /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/Em bperl/Embperl.so PerlModule Apache::DBI PerlModule Embperl Directory public_html dir Options Indexes IncludesNOEXEC FollowSymLinks allow from all AllowOverride All FilesMatch ^file_name$ SetHandler perl-script PerlHandler Embperl::Object Options ExecCGI /FilesMatch FilesMatch .*\.epl$ Order allow,deny Deny From all /FilesMatch FilesMatch .*\.pl$ Order allow,deny Deny From all /FilesMatch /Directory Directory cgi_dir allow from all /Directory PerlSetEnv EMBPERL_ESCMODE 0 PerlSetEnv EMBPERL_OPTIONS 16 PerlSetEnv EMBPERL_MAILHOST host PerlSetEnv EMBPERL_OBJECT_BASE _base.epl PerlSetEnv EMBPERL_OBJECT_FALLBACK notfound.html PerlSetEnv EMBPERL_DEBUG 0 PerlSetEnv EMBPERL_OBJECT_APP epwebapp.pl /VirtualHost Thanks, Abhishek jain On 1/3/08, Gerald Richter - ECOS GmbH [EMAIL
Re: Re: Re: Process exists - Segmentation fault
Hi Its me again, But still the things are not working right. I tried to recompile Embperl and put PerlModule Embperl after LoadModule embperl_module .. Now i do not remember it was before or now but after i uncomment the 'PerlModule Embperl' line and things stop working i do not receieve $r=shift; variable i mean $r = undef here. Is it due to something i did during installation of embperl. Also If i uncomment the line 'MaxRequestsPerChild 1' and comment 'PerlModule Embperl ' then i recveive this line in error log [Sun Jan 06 18:44:11 2008] [notice] child pid 30280 exit signal Segmentation fault (11) (May be error and page refreshes itself i mean the code produces output.) and page appears , sometimes the same error appears twice and page does not appears. I am not sure have this error been encountered by someone else but things are not working right for me . Also if someone wants i can mail the Embperl logs to someone individually, i do not want to make the logs public. Pl help. I am working on the site http://delhi.pm.org/ it is the delhi perl mongers site and people in this group have limited knowledge of embperl but this will push up the embperl in Delhi . -- Thanks Abhishek jain On 1/4/08, Gerald Richter - ECOS GmbH [EMAIL PROTECTED] wrote: Hi, Not sure if it makes any difference, but the lines LoadModule embperl_module /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/Embperl/Embp erl.so PerlModule Apache::DBI PerlModule Embperl Should be outside of the VirtualHost block (they are global anyway) The other thing that you should make sure, is that mod_perl is compiled with the same Perl that Embperl is and both are using modules from the path /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi If there is any version mismatch, things cannot run correctly. Gerald -Original Message- From: abhishek jain [mailto:[EMAIL PROTECTED] Sent: Thursday, January 03, 2008 8:20 PM To: Gerald Richter Cc: modperl@perl.apache.org Subject: Re: Re: Process exists - Segmentation fault Hi, Adding PerlModule Embperl did not solved the problem , infact it aggreviated it. With this the page is not didsplaye at all. My apache configuration is: VirtualHost ip:80 SuexecUserGroup #id #id ServerName x ServerAlias www.x DocumentRoot public_html ErrorLog dir/logs/error_log CustomLog dir/logs/access_log combined LoadModule embperl_module /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/Em bperl/Embperl.so PerlModule Apache::DBI PerlModule Embperl Directory public_html dir Options Indexes IncludesNOEXEC FollowSymLinks allow from all AllowOverride All FilesMatch ^file_name$ SetHandler perl-script PerlHandler Embperl::Object Options ExecCGI /FilesMatch FilesMatch .*\.epl$ Order allow,deny Deny From all /FilesMatch FilesMatch .*\.pl$ Order allow,deny Deny From all /FilesMatch /Directory Directory cgi_dir allow from all /Directory PerlSetEnv EMBPERL_ESCMODE 0 PerlSetEnv EMBPERL_OPTIONS 16 PerlSetEnv EMBPERL_MAILHOST host PerlSetEnv EMBPERL_OBJECT_BASE _base.epl PerlSetEnv EMBPERL_OBJECT_FALLBACK notfound.html PerlSetEnv EMBPERL_DEBUG 0 PerlSetEnv EMBPERL_OBJECT_APP epwebapp.pl /VirtualHost Thanks, Abhishek jain On 1/3/08, Gerald Richter - ECOS GmbH [EMAIL PROTECTED] wrote: Please add a PerlModule Embperl Somewhere _after_ the LoadModule Gerald -Original Message- From: abhishek jain [mailto:[EMAIL PROTECTED] Sent: Thursday, January 03, 2008 12:53 PM To: Gerald Richter Cc: modperl@perl.apache.org Subject: Re: Process exists - Segmentation fault Hi, I have the following statement in my httpd.conf LoadModule embperl_module /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/Em bperl/Embperl.so I do not have a related PerlModule just one for Apache::DBI . Thanks, Abhishek jain On 1/3/08, Gerald Richter - ECOS GmbH [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, Apache with mod_perl will always have this size or even more. This is ok. ulimit -a shows the process limits, but should normaly not a problem The behaviour you describe occurs when you do _not_ have a LoadModule _and_ a PerlModule statement
Re: Process exists - Segmentation fault
Hi, I have the following statement in my httpd.conf LoadModule embperl_module /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/Embperl/Embperl.so I do not have a related PerlModule just one for Apache::DBI . Thanks, Abhishek jain On 1/3/08, Gerald Richter - ECOS GmbH [EMAIL PROTECTED] wrote: Hi, Apache with mod_perl will always have this size or even more. This is ok. ulimit -a shows the process limits, but should normaly not a problem The behaviour you describe occurs when you do _not_ have a LoadModule _and_ a PerlModule statement for Embperl in your httpd.conf Gerald -Original Message- From: abhishek jain [mailto:[EMAIL PROTECTED] Sent: Thursday, January 03, 2008 4:59 AM To: modperl@perl.apache.org Subject: Process exists - Segmentation fault Hi, I am running modperl 2.x + embperl on centos 4.5 Now when i run on MaxRequestsPerChild 1 the app. runs well but as i increase its value after every third refresh of browser a blank page appears, also the process size exceeds probably to 19M , and in error_log segmentation fault error appears. I believe the size exceeds some threshold. Now is there a way to increase the value of MaxRequestsPerChild ? Can i increase the threshold value of size of a process or so ? Thanks, Abhishek jain ** Virus checked by BB-5000 Mailfilter **
Re: Re: Process exists - Segmentation fault
Hi, Adding PerlModule Embperl did not solved the problem , infact it aggreviated it. With this the page is not didsplaye at all. My apache configuration is: VirtualHost ip:80 SuexecUserGroup #id #id ServerName x ServerAlias www.x DocumentRoot public_html ErrorLog dir/logs/error_log CustomLog dir/logs/access_log combined LoadModule embperl_module /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/Embperl/Embperl.so PerlModule Apache::DBI PerlModule Embperl Directory public_html dir Options Indexes IncludesNOEXEC FollowSymLinks allow from all AllowOverride All FilesMatch ^file_name$ SetHandler perl-script PerlHandler Embperl::Object Options ExecCGI /FilesMatch FilesMatch .*\.epl$ Order allow,deny Deny From all /FilesMatch FilesMatch .*\.pl$ Order allow,deny Deny From all /FilesMatch /Directory Directory cgi_dir allow from all /Directory PerlSetEnv EMBPERL_ESCMODE 0 PerlSetEnv EMBPERL_OPTIONS 16 PerlSetEnv EMBPERL_MAILHOST host PerlSetEnv EMBPERL_OBJECT_BASE _base.epl PerlSetEnv EMBPERL_OBJECT_FALLBACK notfound.html PerlSetEnv EMBPERL_DEBUG 0 PerlSetEnv EMBPERL_OBJECT_APP epwebapp.pl /VirtualHost Thanks, Abhishek jain On 1/3/08, Gerald Richter - ECOS GmbH [EMAIL PROTECTED] wrote: Please add a PerlModule Embperl Somewhere _after_ the LoadModule Gerald -Original Message- From: abhishek jain [mailto:[EMAIL PROTECTED] Sent: Thursday, January 03, 2008 12:53 PM To: Gerald Richter Cc: modperl@perl.apache.org Subject: Re: Process exists - Segmentation fault Hi, I have the following statement in my httpd.conf LoadModule embperl_module /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/Em bperl/Embperl.so I do not have a related PerlModule just one for Apache::DBI . Thanks, Abhishek jain On 1/3/08, Gerald Richter - ECOS GmbH [EMAIL PROTECTED] wrote: Hi, Apache with mod_perl will always have this size or even more. This is ok. ulimit -a shows the process limits, but should normaly not a problem The behaviour you describe occurs when you do _not_ have a LoadModule _and_ a PerlModule statement for Embperl in your httpd.conf Gerald -Original Message- From: abhishek jain [mailto: [EMAIL PROTECTED] Sent: Thursday, January 03, 2008 4:59 AM To: modperl@perl.apache.org Subject: Process exists - Segmentation fault Hi, I am running modperl 2.x + embperl on centos 4.5 Now when i run on MaxRequestsPerChild 1 the app. runs well but as i increase its value after every third refresh of browser a blank page appears, also the process size exceeds probably to 19M , and in error_log segmentation fault error appears. I believe the size exceeds some threshold. Now is there a way to increase the value of MaxRequestsPerChild ? Can i increase the threshold value of size of a process or so ? Thanks, Abhishek jain ** Virus checked by BB-5000 Mailfilter ** ** Virus checked by BB-5000 Mailfilter **
Wiki::Toolkit tutorials or any other wiki
Hi friends, I am planing to create a wiki , need to know which cpan module can help me create that, i have gone through wiki::toolkit , needs some working examples of that, also i want to know will it work on modperl. I could use its mailing list but that is not active now. Any other tool for developing wiki you would like to suggest to me . I could use a readymade wiki but i want to develop one. Any help will be appreciated, thanks, Abhishek jain
Which template engine is best to create a perl site
Hi friends, I wish to create a scalable site made in PERL and seek guidance which templating engine should i use which has less learnig curve also. Names comming to my mind are: 1. Embperl 2. Template::Toolkit 3. Html::Mason Pl. guide me which will be best or give me a suggestion, if someone has examples of one used pl provide. Thanks, -- Regards, Abhishek jain
What is the meaning of -e in the error log
Hi, I am running modperl 2.x and i am getting some wierd problem i am invoking modperl from browser and at times it will execute correctly and otehr times it will not be able to find the function called from the script. the error log has error with -e prepended. Here is the log: [Mon Jan 15 17:18:32 2007] [error] [Mon Jan 15 17:18:32 2007] -e: Undefined subroutine Module::header called at /home/file.cgi line 138.\n where Module.pm http://module.pm/ has package Module.pm http://module.pm/; sub header(){ #blah blah } 1; and file.cgi has #blah blah Module::header(); I am unable to fin thatg why is it unable to find the file at some time and not the other times. I am running ModPerl::RegistryPrefork I have changed the names of Module.pm and file.cgi Pl. help me , Regards, Abhishek jain
urgent help needed - this script does not chdir
Hi, I am new to modperl and needs help, i have a script which works fine in non-modperl enviornment but when i include in modperl::registry then mine scripts when invoked via a browser finds itself in / directory i mean the file or script do not include the files with the require command i mean the relative path it cannot understand. Additionally when i give this block, BEGIN{ chdir('/home/absolute/directory'); }; then the script will run fine for some time and not fine i mean will give error on including a function in a library included by require. Pl. help me , i need a sol urgently , thanks , Abhsihek jain
does begin block effect any performance in modperl
Hi friends, i need to know that if i add the following block then will it affect anything in the execution of modperl apart from first time run. BEGIN{ require'abc.pl'; require'large_file.pl'; }; I mean anything relative to the performance.is the begin block called everytime orjust the first time and is it safe to define a function in a file and call it with this method rather than a package , Pl. help me. Thanks, Abhishek jain.
perlrun
Hi Friends,Actually i have a site written in PERL . I want that site to be working fast . Now i think modperl will make that fast. I know that the coding done is not that good, there are many global variables etc.I wanted to know that can modperl increase the speed without any risk to the site, A friend told me to use perlrun and not Apache:registry. Pl. tell me the difference between two.Also tell me that is there any coding style difference in mod_perl coding and normal cgi coding.Also by what ratio can modperl increase mine cgi applications speed.Pl. do answer .Thanks for your time and effort.--RegardsAbhishek jain Click here to donate to the Hurricane Katrina relief effort.