Can anyone explain what the macro MEM_WRAP_CHECK_1 is checking for?Consider if your code does New(p, 0x40000000, int). Perl will try to do malloc(0x40000000 x sizeof(int)), but on a 32-bit system that would wrap round to malloc(0). The macro's there to check for it.
And how calling the callback() sub below, with the commented out line enabled, would cause that macro to be invoked, and fail, producing the message "panic: memory wrap at...", but not when the line is disabled?Something called by the call_sv() is trying to allocate a very large structure. We can't tell what from the information supplied.
Dave.
In reply to Re: panic: memory wrap
by dave_the_m
in thread panic: memory wrap
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |