Johan Vromans wrote:

In the mean time (vacation... ;-)) I isolated the problem to the
following:

 $ perl -MWx -e 0
 panic: free from wrong pool during global destruction.

This happens at perl exit, and it is mostly harmless (for some meaning
of mostly).

 $ perl -MWx -e '$ENV{foo} = "bar"'
 panic: realloc from wrong pool at -e line 1.
 panic: free from wrong pool during global destruction.

  Got it.  It can reproduced on Debian (and I expect most other
environments).  The key is compiling Perl with -DDEBUGGING.

  I think I have isolated the problem to perl having its own putenv(),
which conflicts with the one called inside wxGTK/GTK+.  The only
"solution" I found is forcing PL_use_safe_putenv to 1.  I suspect this
might cause leaks since I can't set it right after perl_construct()
as per the documentation.

Regards,
Mattia

Reply via email to