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

Re: Perl "Out of memory!" Error signal backtrace (updated)

by LanX (Saint)
on Nov 13, 2021 at 05:37 UTC ( #11138769=note: print w/replies, xml ) Need Help??

in reply to Perl "Out of memory!" Error signal backtrace

I'd say you need to track the growth of your memory consumption. Not sure what the codepoint can tell you.

You probably have a memory leak due to recursive data structures.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery


according to splain -v it's non-trappable

DESCRIPTION OF DIAGNOSTICS These messages are classified as follows (listed in increasing ord +er of desperation): (W) A warning (optional). (D) A deprecation (enabled by default). (S) A severe warning (enabled by default). (F) A fatal error (trappable). (P) An internal error you should never see (trappable). =====> (X) A very fatal error (nontrappable). (A) An alien error message (not generated by Perl). ... Trappable errors may be trapped using the eval operator. See "eval" in perlfunc. In almost all cases, warnings may be selectiv +ely disabled or promoted to fatal errors using the warnings pragma. See warnings. Out of memory! (#1) (X) The malloc() function returned 0, indicating there was insuffi +cient remaining memory (or virtual memory) to satisfy the request. Perl + has no option but to exit immediately. At least in Unix you may be able to get past this by increasing yo +ur process datasize limits: in csh/tcsh use limit and limit datasize n (where n is the number of kilobytes) to check the current limits and change them, and in ksh/bash/zsh use ulimit + -a and ulimit -d n, respectively.

Well ...

... probably the trace options of the debugger can help?

If you log them to a file, you should see where they stop.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2023-09-28 07:22 GMT
Find Nodes?
    Voting Booth?

    No recent polls found