<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>Simpel perl code makes kernel panic</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Hi,<BR>
This is a confusing/weird problem.<BR>
Following is a simple piece of perl code that causes my system (RHAS 3.0) kernel panic everytime it is run with cron!<BR>
When I run it manually as root everything runs as it should and no panic....<BR>
The system is running MailScanner and acts as a mail gateway and this code is part of a stats program called Vispan.<BR>
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.<BR>
The system is U4 and has only rpms installed except for these two programs and ClamAV.<BR>
Just wonderng if anyone on this list is a perlguru and have intimate knowledge of RH systems and might have a look:-)<BR>
Here is the code which only task is to print the footer of the html pages for the Vispan stats:<BR>
<BR>
#sub PrintEnd {<BR>
#   local($handle) = @_;<BR>
#   my $line;<BR>
#   my $Footer = Config::Value(Footer);<BR>
#<BR>
#   if(open(FOOTER,$Footer)) {<BR>
#      @footer=<FOOTER>;<BR>
#      close(FOOTER);<BR>
#      foreach $line (@footer) {<BR>
#         print $handle $line;<BR>
#         }<BR>
#      }<BR>
#<BR>
#   print $handle "<hr/><p>";<BR>
#<BR>
#   if( $Footer eq "" ) {<BR>
#      print $handle <<"(END VAL)";<BR>
#         <a href="<A HREF="http://validator.w3.org/check?uri=referer">http://validator.w3.org/check?uri=referer</A>"><img<BR>
#          src="<A HREF="http://www.w3.org/Icons/valid-xhtml10">http://www.w3.org/Icons/valid-xhtml10</A>"<BR>
#          alt="Valid XHTML 1.0!" height="31" width="88" /></a><BR>
#(END VAL)<BR>
#      }<BR>
#<BR>
#   print $handle <<"(END HTML)";<BR>
#Produced by <a class="footer" href="<A HREF="http://www.while.homeunix.net/mailstats/">http://www.while.homeunix.net/mailstats/</A>"><BR>
#Vispan V$main::VERSION</a> \&copy; 2002-2004</p><BR>
#</body><BR>
#</html><BR>
#(END HTML)<BR>
#}<BR>
<BR>
Cheers<BR>
--------------------------------<BR>
Carl Boberg<BR>
System & Network Administrator<BR>
Swedish Museum of Naturalhistory<BR>
Frescativägen 40<BR>
104 05 Stockholm<BR>
Sweden<BR>
Tel nr: 08-5195 5116<BR>
Mobile: 0701-82 4055<BR>
E-mail: carl.boberg@nrm.se<BR>
--------------------------------<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>