Skip Menu |

This queue is for tickets about the PAR CPAN distribution.

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

People
Owner: Nobody in particular
Requestors: wchartrand [...] rim.com
Cc:
AdminCc:

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



Subject: PAR and DBI
Date: Mon, 2 Oct 2006 12:04:29 -0400
To: <bug-PAR [...] rt.cpan.org.>
From: "William Chartrand" <wchartrand [...] rim.com>
I've experienced a bug with PAR 0.954 (not present in 0.952). If a perl progam using DBI is turned into a par executable, then the resulting executable starts spinning and using up lots of CPU at the end of execution. $ echo '#!/usr/bin/perl Show quoted text
> use DBI;
Show quoted text
> print "Hello World\n"' > test.pl
$ chmod +x test.pl $ time ./test.pl Hello World $ pp -o test.exe test.pl $ ./test.exe Hello World And then it hangs for a long time chewing up cpu. OS is Ubuntu 6.06.1 LTS, but I've also verified it on another linux system. Will --------------------------------------------------------------------- This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.
Hi, On Mo. 02. Okt. 2006, 12:05:00, wchartrand@rim.com wrote: Show quoted text
> I've experienced a bug with PAR 0.954 (not present in 0.952). > > If a perl progam using DBI is turned into a par executable, then the > resulting executable starts spinning and using up lots of CPU at the > end > of execution.
[example] Show quoted text
> And then it hangs for a long time chewing up cpu. > > OS is Ubuntu 6.06.1 LTS, but I've also verified it on another linux > system.
In fact, I have tested this on the same OS (and stock Perl) without seeing the program hang. That being said, basically the same bug was reported in http://rt.cpan.org/Ticket/Display.html?id=21725. Now, looking at the Changes file, the only change since 0.952 that could affect this is: - Modified -B so that if -B is in effect, all entries are stripped out of @INC except for the PAR hooks. This happens right before the script contained in the pp-ed binary is executed. This means it now specifically removes all system Perl paths if it bundles the core modules. This results in it certainly picking up the packaged modules. That wasn't the case in 0.952 where it might also have picked up any installed modules. This is also the reason why the poster of #21725 could see this behaviour with 0.952 when copying the binary to another machine. I'm investigating, thanks for the bug report! Steffen
On Mo. 02. Okt. 2006, 12:05:00, wchartrand@rim.com wrote: Show quoted text
> I've experienced a bug with PAR 0.954 (not present in 0.952).
Please try PAR 0.956 which should hit CPAN soonish. You can also get it from http://steffen-mueller.net/tmp/PAR-0.956.tar.gz for a short time. I am confident I fixed the bug you were experiencing. I'm closing the ticket, but if you just send a quick reply if something goes wrong, the ticket will be reopenend automatically. Thanks for the bug report, Steffen
CC: <par [...] perl.org>
Subject: RE: [rt.cpan.org #21845] PAR and DBI
Date: Tue, 3 Oct 2006 09:44:40 -0400
To: <bug-PAR [...] rt.cpan.org>
From: "William Chartrand" <wchartrand [...] rim.com>
Awesome. Thanks for the quick turnaround. I'll try and test it this afternoon. Will Show quoted text
-----Original Message----- From: Steffen Müller via RT [mailto:bug-PAR@rt.cpan.org] Sent: Tuesday, October 03, 2006 9:01 AM To: William Chartrand Cc: par@perl.org Subject: [rt.cpan.org #21845] PAR and DBI <URL: http://rt.cpan.org/Ticket/Display.html?id=21845 > On Mo. 02. Okt. 2006, 12:05:00, wchartrand@rim.com wrote:
> I've experienced a bug with PAR 0.954 (not present in 0.952).
Please try PAR 0.956 which should hit CPAN soonish. You can also get it from http://steffen-mueller.net/tmp/PAR-0.956.tar.gz for a short time. I am confident I fixed the bug you were experiencing. I'm closing the ticket, but if you just send a quick reply if something goes wrong, the ticket will be reopenend automatically. Thanks for the bug report, Steffen --------------------------------------------------------------------- This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.