Bug 529220 - Fedora::Bugzilla - script gets stuck when getting a big BZ
Summary: Fedora::Bugzilla - script gets stuck when getting a big BZ
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-XML-Twig
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Stepan Kasal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-10-15 14:59 UTC by Jiri Pirko
Modified: 2015-05-05 01:17 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-02-09 12:32:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
test script (427 bytes, application/x-perl)
2009-10-15 14:59 UTC, Jiri Pirko
no flags Details


Links
System ID Private Priority Status Summary Last Updated
CPAN 35672 0 None None None Never
CPAN 50612 0 None None None Never

Description Jiri Pirko 2009-10-15 14:59:17 UTC
Created attachment 364932 [details]
test script

Description of problem:

When I use Fedora::Bugzilla->get_bug() to get a big BZ (e.g. with 4MB attachment), it gets stuck after a while and top shows ~99% cpu usage for this script. I use bz504799 to trigger this.

Version-Release number of selected component (if applicable):

0.10-1 - I tried 0.13 from CPAN and problem is still there.
How reproducible:
always

Steps to Reproduce:
run attached script
  
Actual results:
Script will never finish and consumes ~98% of cpu.

Expected results:
Script finishes.

Comment 1 Chris Weyl 2009-10-16 01:23:46 UTC
Thanks for the reports!  I'm working on a number of enhancements/fixes, and will address these shortly.

Comment 2 Chris Weyl 2009-10-16 04:18:05 UTC
Interesting -- Im "not authorized to access bug#504799".  Do you have another bug where you're seeing this?

Comment 3 Jiri Pirko 2009-10-16 08:29:55 UTC
(In reply to comment #2)
> Interesting -- Im "not authorized to access bug#504799".  Do you have another
> bug where you're seeing this?  

Ups, this is private bz. I'll try to find another...

Comment 4 Jiri Pirko 2009-10-16 08:43:29 UTC
ok - here's the bz you can use (16MB attachment) - bz515677

Comment 5 Chris Weyl 2009-10-18 07:55:21 UTC
Hmmm....  Looks like this is actually an XML::Twig issue, reportes as rt35672; there's a 3.33 "development" kicking around on xmltwig.com that resolves this.

http://rt.cpan.org/Public/Bug/Display.html?id=35672
http://xmltwig.com/xmltwig/XML-Twig-3.33.tar.gz

I've filed another tix asking that it be "officially" released to the CPAN; if that happens we can easily update perl-XML-Twig...  If it doesn't, we should still look at updating perl-XML-Twig, as there are 2+ years of fixes/enhancements in there.

Comment 6 Jiri Pirko 2009-10-18 16:34:37 UTC
Right, I installed XML-Twig-3.33.tar.gz and the issue does not occur.

Thanks Chris.

Comment 7 Marcela Mašláňová 2009-10-19 15:29:35 UTC
I believe these bug fixes are valuable and we should update XML::Twig. In Changes are mainly bugfixes so I hope it will be ok.

Comment 8 Chris Weyl 2009-10-22 03:51:41 UTC
Ok, so no response from the author.  I'm going to deploy 3.33 into production on a couple systems at work tomorrow and see what happens...  Assuming everything goes OK (as I believe it will) I'll update our package here.

Comment 9 Marcela Mašláňová 2009-10-22 07:38:47 UTC
Um, I've already update to 0.33 in F-12 and rawhide. I believe with comparison to other Fedora updates, this is only small risk.

Comment 10 Chris Weyl 2009-10-22 14:44:03 UTC
No problem. :) The author did just respond and state that he is going to cut a new GA release "ASAP", so hopefully we can switch over when that comes out.  (I have a feeling it's also going to be called 3.33)

Comment 11 Marcela Mašláňová 2010-02-09 12:32:31 UTC
I'd like to close it as nextrelease (F-12).


Note You need to log in before you can comment on or make changes to this bug.