BrowserUk has asked for the wisdom of the Perl Monks concerning the following question:
Can anyone explain what the macro MEM_WRAP_CHECK_1 is checking for?
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?
SV *g_rec = 0; int setCallback( SV* rec ) { g_rec = rec; SvREFCNT_inc( g_rec ); return 0; } void callback() { // call_sv( g_rec, 0); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: panic: memory wrap
by dave_the_m (Monsignor) on Nov 14, 2005 at 01:59 UTC | |
by BrowserUk (Patriarch) on Nov 14, 2005 at 04:21 UTC | |
by dave_the_m (Monsignor) on Nov 14, 2005 at 09:55 UTC | |
by BrowserUk (Patriarch) on Nov 14, 2005 at 16:11 UTC | |
by dave_the_m (Monsignor) on Nov 14, 2005 at 22:25 UTC | |
| |
by BrowserUk (Patriarch) on Nov 14, 2005 at 02:41 UTC | |
|
Re: panic: memory wrap
by Will_the_Chill (Pilgrim) on Dec 23, 2013 at 12:15 UTC |