Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: still have a mysterious crash

by dingus (Friar)
on Dec 17, 2002 at 19:08 UTC ( #220615=note: print w/replies, xml ) Need Help??


in reply to still have a mysterious crash

This is probably not the solution. But it will change the localtime line and remove the s/// one. I don't say its better but it might throw some light on what's happening.
my ($sec,$min,$hour,$mday,$mon,$year) = localtime(); my $m = ('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct', +'Nov','Dec')[$mon]. "-$mday-".substr($year,-2).sprintf(' %02d:%02d:%02d', $hour,$min,$s +ec); $m.= " $Con{$fh}->{ip} <$Con{$fh}->{mailfrom}>" if $fh && $Con{$fh}; $m.= " $_[0]\n"; print $m unless $silent; print DEBUG $m;
Yes it is a strike at semi-random. What I guess may happen is that the problem now moves to a completely differet place. If so I suspect you may be looking at a weird memory leak kind of error. However I did get a very very weird crash the first time I ran your 2 lines in a CGI script - it broke the webserver! Needless to say this hasn't happened since.

Dingus


Enter any 47-digit prime number to continue.

Replies are listed 'Best First'.
Re: Re: still have a mysterious crash
by jhanna (Scribe) on Dec 17, 2002 at 19:20 UTC
    I thought about messing with that line as well, but it baffles me why it would work 99.99% of the time and then fail.

    Curious that it broke your server. Maybe I'm not insane!

    j

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://220615]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2020-02-16 19:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (70 votes). Check out past polls.

    Notices?