Simpel perl code makes kernel panic

Carl Boberg Carl.Boberg at nrm.se
Sat Jan 29 09:31:44 UTC 2005


Hi,
This is a confusing/weird problem.
Following is a simple piece of perl code that causes my system (RHAS 3.0) kernel panic everytime it is run with cron!
When I run it manually as root everything runs as it should and no panic....
The system is running MailScanner and acts as a mail gateway and this code is part of a stats program called Vispan.
Ive told this to the guy developing it but he seems to hav no idea why this happens and may others run it whitout this problem.
The system is U4 and has only rpms installed except for these two programs and ClamAV.
Just wonderng if anyone on this list is a perlguru and have intimate knowledge of RH systems and might have a look:-)
Here is the code which only task is to print the footer of the html pages for the Vispan stats:

#sub PrintEnd {
#   local($handle) = @_;
#   my $line;
#   my $Footer = Config::Value(Footer);
#
#   if(open(FOOTER,$Footer)) {
#      @footer=<FOOTER>;
#      close(FOOTER);
#      foreach $line (@footer) {
#         print $handle $line;
#         }
#      }
#
#   print $handle "<hr/><p>";
#
#   if( $Footer eq "" ) {
#      print $handle <<"(END VAL)";
#         <a href="http://validator.w3.org/check?uri=referer"><img
#          src="http://www.w3.org/Icons/valid-xhtml10"
#          alt="Valid XHTML 1.0!" height="31" width="88" /></a>
#(END VAL)
#      }
#
#   print $handle <<"(END HTML)";
#Produced by <a class="footer" href="http://www.while.homeunix.net/mailstats/">
#Vispan V$main::VERSION</a> \© 2002-2004</p>
#</body>
#</html>
#(END HTML)
#}

Cheers
-------------------------------- 
Carl Boberg 
System & Network Administrator 
Swedish Museum of Naturalhistory 
Frescativägen 40 
104 05 Stockholm 
Sweden 
Tel nr: 08-5195 5116 
Mobile: 0701-82 4055 
E-mail: carl.boberg at nrm.se 
-------------------------------- 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/redhat-sysadmin-list/attachments/20050129/b056cd7b/attachment.htm>


More information about the redhat-sysadmin-list mailing list