Skip Menu |

This queue is for tickets about the Archive-Extract CPAN distribution.

Report information
The Basics
Id: 45671
Status: open
Priority: 0/
Queue: Archive-Extract

People
Owner: Nobody in particular
Requestors: m.faustino [...] gmail.com
Cc:
AdminCc:

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



Subject: Extracting archives while using threads
Date: Sun, 03 May 2009 19:09:10 +0100
To: bug-Archive-Extract [...] rt.cpan.org
From: Márcio Faustino <m.faustino [...] gmail.com>
Hi, I'm trying to extract zip files while using threads (with Archive::Extract v0.30 and perl v5.10.0 on Windows XP), but every time I enable them the files are extracted to the current directory instead of the specified one. For example, using the test script attached, if I set $use_threads to true then the files are extracted to the current directory, otherwise they are correctly extracted to the home directory. Is this a problem with Archive::Extract or my script? Thanks, -- Márcio Faustino
Download y.zip
application/zip 102b

Message body not shown because it is not plain text.

Message body is not shown because sender requested not to inline it.

Download x.zip
application/zip 102b

Message body not shown because it is not plain text.

On Sun May 03 14:10:07 2009, m.faustino@gmail.com wrote: Show quoted text
> I'm trying to extract zip files while using threads (with
Archive::Extract Show quoted text
> v0.30 and perl v5.10.0 on Windows XP), but every time I enable them the > files are extracted to the current directory instead of the specified one.
The problem is that A::E chdir's to the extraction directory. This isn't threadsafe (obviously). Fixing this however would be a larger undertaking as all the extract implementations would have to be made aware of this. This is particularly painful for paths with spaces in them. I'm not sure what a good work around would be for the moment, but at least I can confirm it's Not Your Bug(tm).
On Sun May 03 14:10:07 2009, m.faustino@gmail.com wrote: Show quoted text
> I'm trying to extract zip files while using threads (with
Archive::Extract Show quoted text
> v0.30 and perl v5.10.0 on Windows XP), but every time I enable them the > files are extracted to the current directory instead of the specified one.
For now, I've added a note in the docs about lack of thread safety, while we work on a better fix. This has been uploaded as 0.32. Cheers,