Skip Menu |
 

This queue is for tickets about the DB_File CPAN distribution.

Report information
The Basics
Id: 28885
Status: open
Priority: 0/
Queue: DB_File

People
Owner: Nobody in particular
Requestors: dmuey [...] cpan.org
Cc:
AdminCc:

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



Subject: Infinite loop bug w/ root user
Download (untitled) / with headers
text/plain 800b
multivac-2:~ dmuey$ whoami dmuey multivac-2:~ dmuey$ perl db_file_bug.pl DB_File Version: 1.815 Elapsed: 0.008934 multivac-2:~ dmuey$ multivac-2:~ root# whoami root multivac-2:~ root# date;perl /Users/dmuey/db_file_bug.pl;date Sat Aug 18 12:33:55 CDT 2007 DB_File Version: 1.815 ^C Sat Aug 18 12:35:05 CDT 2007 multivac-2:~ root# Here's the script: multivac-2:~ dmuey$ cat db_file_bug.pl #!/usr/bin/perl use strict; use warnings; use Time::HiRes; use DB_File; print "DB_File Version: $DB_File::VERSION\n"; my $start = [Time::HiRes::gettimeofday]; use DB_File; open(my $fake_lock_fh,'>','__db.breakme'); close($fake_lock_fh); tie my %x, 'DB_File', 'breakme', O_RDWR | O_CREAT, 0600; print "Elapsed: " . Time::HiRes::tv_interval( $start, [Time::HiRes::gettimeofday] ) . "\n"; multivac-2:~ dmuey$
Subject: Infinite loop bug
Download (untitled) / with headers
text/plain 256b
The 'root' only problem is on OS X, on Linux its *all* users: dan@deathstar ~ $ whoami dan dan@deathstar ~ $ date;perl db_file_bug.pl;date Sat Aug 18 11:20:28 CDT 2007 DB_File Version: 1.814 Sat Aug 18 11:20:54 CDT 2007 dan@deathstar ~ $
From: DMUEY [...] cpan.org
Bug is in db 4.2 but fixed in db 4.3 ... Perhaps a work around could be employed if 4.2 is found?
Download (untitled) / with headers
text/plain 172b
This happens with spam assassin's use of DB_File, they have a work around that might be applied to DB_File at http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5612


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.