Skip Menu |

This queue is for tickets about the PAR CPAN distribution.

Report information
The Basics
Id: 33494
Status: resolved
Priority: 0/
Queue: PAR

People
Owner: Nobody in particular
Requestors: kisto [...] o2.pl
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.977
Fixed in: (no value)



Subject: packaged script crashes when creating a new thread
Hi, I'm trying to package a multithreaded script with pp, and the executable crashes with "munmap_chunk(): invalid pointer" and a backtrace (see attached full output) when calling threads->create(). The script works fine when not packaged. This error can be triggered with a simple one-liner like this: pp -e 'use threads; threads->create(sub {})->join()' I'm using PAR 0.977 and PAR::Packer 0.977 with perl 5.8.8 i486-linux-thread-multi. Regards, Michal
Subject: backtrace
Download backtrace
application/octet-stream 5.4k

Message body not shown because it is not plain text.

Hi Michal, On Thu Feb 21 11:12:10 2008, bunch wrote: Show quoted text
> I'm trying to package a multithreaded script with pp, and the executable > crashes with "munmap_chunk(): invalid pointer" and a backtrace (see > attached full output) when calling threads->create(). The script works > fine when not packaged. > > This error can be triggered with a simple one-liner like this: > pp -e 'use threads; threads->create(sub {})->join()' > > I'm using PAR 0.977 and PAR::Packer 0.977 with perl 5.8.8 > i486-linux-thread-multi.
I've experienced similar trouble with threads and pp. I'm sorry, I have not solution. This is just a heads-up that it's a known bug and you're not ignored. (Not entirely anyway :) Cheers, Steffen
This should be fixed by PAR::Packer 0.979 which is on its way to CPAN.