Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Strange die message at print line: hacker attack?

by Somni (Friar)
on Oct 26, 2007 at 19:39 UTC ( #647477=note: print w/replies, xml ) Need Help??


in reply to Strange die message at print line: hacker attack?

"Connection closed by foreign host" has nothing specifically to do with "telnet hacker attempts", whatever that means. Where did you get that one?

This is a CGI script, there is a remote host involved. When that host closes the connection and you attempt to write to the now-closed socket you receive a SIGPIPE. It's probable something is catching this signal and turning it into a croak().

As for why the error is in Portuguese, it's hard to say. Perhaps your $LANG has been set at some point, or perhaps the module that setup the SIGPIPE handler is using a locale.

The DATA business is a little odd. Something along the way is in the middle of reading from its DATA handle, but it's hard to tell what.

Finally, looking for secret "hackers" is probably counter-productive to finding the actual cause of the problem. Look at what modules you're using, look for where the SIGPIPE handler could be coming from, and look for any locale usage.

  • Comment on Re: Strange die message at print line: hacker attack?

Replies are listed 'Best First'.
Re^2: Strange die message at print line: hacker attack?
by graff (Chancellor) on Oct 27, 2007 at 00:47 UTC
    The DATA business is a little odd. Something along the way is in the middle of reading from its DATA handle

    Or at the end. It's typical for this sort of error report from perl to mention the current value of $. along with the file handle that was last read (i.e. the one that set $. to its current value) -- even after the script has reached the end of that file and has closed the handle. It's also not uncommon for this portion of the error message to be irrelevant to the cause of the problem.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2023-12-06 17:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (31 votes). Check out past polls.

    Notices?