Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Hello,
I have the fork()ed application which I believe to execute the native Perl code only.
It reports that forks are exiting with codes 512 and 2304 and doesn't if they exit(0) normally.
I'd like to know what do those codes mean. The only thing I notice is: exit after loop.
my STDERR looks detached and I should like to investigate the exit code first. It is reported spontaneously by FCGI::ProcManager, so the only STDERR I can see is in the FastCGI requester logs. There are unsignificant warnings there like the one I mentioned and undefined variable, too.
I expect this to be the memory insufficience: I limited the memory hardly and enhanced the comsumption a bit recently, so I even don't expect a human-readable thing out there.
I tried to grep perl sources for 2304 and had no luck of that.
UPDATE. I have the *CORE::GLOBAL::exit redefined in the BEGIN{} of the main package and after I changed things about variable undeclared, I see it's 65280 now which is CORE::exit(255). Should I seek for that on the code included in %INC? But I consider this inconvinient that I can't google out by those numbers. I think it's reasonable to assume the exit codes reported by the daemon to the console are the shell-explainable. Anyway, if Perl process exits with a non-zero status and the value depends on the runtime error like "label not found" there should be a hash constant defined anywhere to be a human-readable explanation for that, just why not?
Thank you.
Peter Vereshagin peter@vereshagin.org http://vereshagin.org

In reply to native exit codes 512 and 2304 by petr999

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Domain Nodelet?
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this?Last hourOther CB clients
    Other Users?
    Others having an uproarious good time at the Monastery: (5)
    As of 2024-07-16 19:20 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found

      Notices?
      erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.