Steffen Mueller wrote:
Hi all,
Steffen Mueller wrote:
perl -Iblib/lib -Iblib/arch -MWx -e1
panic: free from wrong pool during global destruction.
The same happens for make test, of course.
Now, I'm entirely stuck here. I have no idea how to debug this issue,
my C debugging skills are sub-par. I'd love to hear how to get around
this initial obstacle, but I'd even prefer to learn how to debug these
issues myself. Any ideas how?
I'm sorry I do not have some advice... in this case it was a build
problem, and it took me a while to discover the symptom (-DDEBUGGING
not being defined when building Wx).
I have some more data:
perl -MWx -e '$ENV{foo}="bar";'
crashes with:
panic: realloc from wrong pool at -e line 1.
panic: free from wrong pool during global destruction.
The former (realloc) error is coming from that ENV assignment for sure.
If I run it in a larger app, a line with an ENV assignment is reported
to be the culprit of the first panic.
So the issue seems to be related to what Mattia mentioned in the old
thread I mentioned in my previous mail. Maybe the Configure flag that is
supposed to disable direct ENV manipulation doesn't work correctly? This
is what I get from perl -V:
I an not sure if -DPERL_USE_SAFE_PUTENV is working or not, but I found
why the workaround was not working. Could you try again with a fresh
SVN checkout? If you are interested, -DDEBUGGING is defined in CCFLAGS,
but Wx overrode CCFLAGS so -DDEBUGGING was not set when building Wx.
Regards,
Mattia