Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the WWW-Mechanize CPAN distribution.

Report information
The Basics
Id: 2133
Status: resolved
Priority: 0/
Queue: WWW-Mechanize

People
Owner: Nobody in particular
Requestors: gjbloom [...] yahoo.com
Cc:
AdminCc:

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



Date: Thu, 20 Feb 2003 17:26:44 -0800 (PST)
From: Gregory Bloom <gjbloom [...] yahoo.com>
Subject: WWW:Mechanize incompatible with threads module
To: bug-WWW-Mechanize [...] rt.cpan.org
use threads; use WWW::Mechanize; Crashes perl with memory read error. I'm running: This is perl, v5.8.0 built for MSWin32-x86-multi-thread (with 1 registered patch, see perl -V for more detail) Copyright 1987-2002, Larry Wall Binary build 805 provided by ActiveState Corp. http://www.ActiveState.com Built 18:08:02 Feb 4 2003 on Win2K. --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more
Show quoted text
> use threads; > use WWW::Mechanize; > > Crashes perl with memory read error.
Just those two lines? What if you use LWP::UserAgent instead of WWW::Mechanize? If you get the memory read error there, too, then it's not WWW::Mechanize's fault.
Show quoted text
> Yep. Just those two lines. And using LWP::UserAgent is okay. (Well, > I haven't converted my code to use LWP yet, so I don't know if there > are runtime issues. But doing a "use" for both doesn't crash.).
I suspect the problem is with Clone. Can you please investigate this further by: 1) Try using "use Clone" instead of "use WWW::Mechanize" and see if that crashes. 2) Comment out the line in Mechanize.pm that has "use Clone", and try the original "use threads; use WWW::Mechanize;" two-liner. Thanks, Andy
Show quoted text
> Commenting out "use Clone" in line 44 of WWW:Mechanize allows both > modules to be used with no crash. > Will you be reporting this to the owner of Clone? Or would you prefer > me to do it?
I'll let you do it. I've been meaning to remove the dependency on Clone anyway (ticket #1709). Thanks for bein' Mr. Research on this.
WWW::Mechanize no longer uses the Clone module as of 0.37. Let's hope this thread problem goes away.