Bug#522099: [perl #64326] panic: MUTEX_LOCK (22) [op.c:453] in Perl 5.10.0 on Debian

Niko Tyni ntyni at debian.org
Thu Apr 2 18:07:10 UTC 2009


On Tue, Mar 31, 2009 at 11:38:15AM -0700, David F. Skoll wrote:
> In Perl 5.10.0, it does not seem possible to create an interpreter,
> destroy it, and create another in the same process by following the
> perlembed instructions.  The attached test case works fine under
> Debian Etch (perl 5.8.8); running "./configure && make && ./embperl"
> prints "I'm very happy!" twice.  On lenny running Perl 5.10.0, the first
> one works, but then it prints:
> 
> panic: MUTEX_LOCK (22) [op.c:453] at script.pl line 1.
> BEGIN failed--compilation aborted at script.pl line 1.
> panic: MUTEX_LOCK (22) [op.c:453] at script.pl line 1.

This is also <http://bugs.debian.org/522099>, and as discussed there,
it seems to be a misunderstanding about the needed arguments for
PERL_SYS_INIT3(). The test case calls the macro (twice) with the
perl_parse() arguments, but apparently the "real" main() argc, argv and
env are the right ones.

If this is correct, maybe the attached documentation patch would help
to avoid similar confusion in the future?
-- 
Niko Tyni   ntyni at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Clarify-PERL_SYS_INIT3-usage.patch
Type: text/x-diff
Size: 0 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/perl-maintainers/attachments/20090402/4c2269c9/attachment.patch 


More information about the Perl-maintainers mailing list