Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 289152 - DB_File.pm Deep recursion, uninitialized values
Summary: DB_File.pm Deep recursion, uninitialized values
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-15 03:06 UTC by Akkana Peck
Modified: 2010-01-08 18:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Akkana Peck 2009-10-15 03:06:35 UTC
I'm trying to run sitescooper (from sitescooper.org), which works on debian/ubuntu and on fedora last I tried, but on Gentoo it sees some errors and then gets into an infinite loop. Here are the messages it prints:

Reading configuration from "/home/akkana/.sitescooper/sitescooper.cf".
Using site choices from "/home/akkana/.sitescooper/site_choices.txt".
SITE START: now scooping site "/home/akkana/.sitescooper/sites/xtra.site".
Use of uninitialized value in numeric ge (>=) at /usr/lib/perl5/5.8.8/i686-linux/DB_File.pm line 271.
Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/5.8.8/i686-linux/DB_File.pm line 275.
Deep recursion on subroutine "DB_File::AUTOLOAD" at /usr/lib/perl5/5.8.8/i686-linux/DB_File.pm line 234.

at which point it hangs until I interrupt it with ^C.

I know that's not necessarily easy to reproduce since it requires downloading sitescooper, but I figured the uninitialized values made it worth reporting anyway.

Reproducible: Always

Steps to Reproduce:
If anyone's interested in reproducing the deep recursion, the default configuration should work, then edit site_choices.txt and mark A.Word.A.Day as the site to scoop -- or create .sitescooper/site_choices.txt with this in it:
    [X] A.Word.A.Day
	URL: http://wordsmith.org/words/
	Filename: [samples]/misc/a_word_a_day.site

Sorry I don't understand the DB_File.pm code well enough to provide a minimal test script -- I know that would make it a lot easier. Maybe the infinite loop will magically go away if the uninitialized variables are fixed. :)
Comment 1 Torsten Veller (RETIRED) gentoo-dev 2009-10-19 07:58:29 UTC
Which DB_File versions are involved?

sitescooper.org is in a language i can't read.
sitescooper == http://sourceforge.net/projects/sitescooper/ ?
Comment 2 Akkana Peck 2009-10-19 17:58:21 UTC
Yes, the sourceforge link is the right one. Looks like they lost the registration on sitescooper.org (though the sf page still points to it).

My DB_File.pm is version 1.814.
Comment 3 Torsten Veller (RETIRED) gentoo-dev 2009-10-23 10:54:54 UTC
(In reply to comment #2)
> Yes, the sourceforge link is the right one. Looks like they lost the
> registration on sitescooper.org (though the sf page still points to it).
> 
> My DB_File.pm is version 1.814.

Do fedora and ubuntu use the same version?

BTW: Later versions are available as perl-core/DB_File which you can test too.
Comment 4 Torsten Veller (RETIRED) gentoo-dev 2010-01-08 13:12:46 UTC
I don't know how I can help here.
Comment 5 Akkana Peck 2010-01-08 18:42:04 UTC
Sorry, I never replied to the last question: Ubuntu karmic has version 1.816 of DB_File.pm. Not sure about Fedora.