Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DateTime CPAN distribution.

Report information
The Basics
Id: 58261
Status: rejected
Priority: 0/
Queue: DateTime

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

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



Subject: Tests fail on Perl 5.12.1 (threaded)
DateTime 0.55's unit test t/43new-params.t fails 8 tests when run on a Perl 5.12.1 on Linux with threading enabled. I also had unit tests in my own modules fail with errors coming from DateTime. $ perl -v This is perl 5, version 12, subversion 1 (v5.12.1) built for x86_64- linux-thread-multi $ ./Build test ..... t/43new-params.t ........ 1/? # Failed test 'year must be an integer' # at t/43new-params.t line 9. # expecting: Regexp ((?-xism:is an integer)) # found: Bizarre copy of ARRAY in sassign at /usr/local/modern/perl/lib/5.12.1/Carp.pm line 95. # Failed test 'year must be an integer' # at t/43new-params.t line 11. # expecting: Regexp ((?-xism:is an integer)) # found: Bizarre copy of ARRAY in sassign at /usr/local/modern/perl/lib/5.12.1/Carp.pm line 95. # Failed test 'month must be an integer' # at t/43new-params.t line 14. # expecting: Regexp ((?-xism:an integer)) # found: Bizarre copy of ARRAY in sassign at /usr/local/modern/perl/lib/5.12.1/Carp.pm line 95. # Failed test 'day must be an integer' # at t/43new-params.t line 18. # expecting: Regexp ((?-xism:an integer)) # found: Bizarre copy of ARRAY in sassign at /usr/local/modern/perl/lib/5.12.1/Carp.pm line 95. # Failed test 'hour must be an integer' # at t/43new-params.t line 21. # expecting: Regexp ((?-xism:an integer)) # found: Bizarre copy of ARRAY in sassign at /usr/local/modern/perl/lib/5.12.1/Carp.pm line 95. # Failed test 'minute must be an integer' # at t/43new-params.t line 32. # expecting: Regexp ((?-xism:an integer)) # found: Bizarre copy of ARRAY in sassign at /usr/local/modern/perl/lib/5.12.1/Carp.pm line 95. # Failed test 'second must be an integer' # at t/43new-params.t line 44. # expecting: Regexp ((?-xism:an integer)) # found: Bizarre copy of ARRAY in sassign at /usr/local/modern/perl/lib/5.12.1/Carp.pm line 95. # Failed test 'nanosecond must be an integer' # at t/43new-params.t line 57. # expecting: Regexp ((?-xism:positive integer)) # found: Bizarre copy of ARRAY in sassign at /usr/local/modern/perl/lib/5.12.1/Carp.pm line 95. # Looks like you failed 8 tests of 8. t/43new-params.t ........ Dubious, test returned 8 (wstat 2048, 0x800) Failed 8/8 subtests
Sorry, forgot to mention - tests pass on Perl 5.12.1 withOUT the threading enabled.
On Tue Jun 08 23:50:39 2010, TJC wrote: Show quoted text
> DateTime 0.55's unit test t/43new-params.t fails 8 tests when run on a > Perl 5.12.1 on Linux with threading enabled. > > I also had unit tests in my own modules fail with errors coming from > DateTime. > > $ perl -v > > This is perl 5, version 12, subversion 1 (v5.12.1) built for x86_64- > linux-thread-multi > > $ ./Build test > ..... > t/43new-params.t ........ 1/? > # Failed test 'year must be an integer' > # at t/43new-params.t line 9. > # expecting: Regexp ((?-xism:is an integer)) > # found: Bizarre copy of ARRAY in sassign at > /usr/local/modern/perl/lib/5.12.1/Carp.pm line 95. > > # Failed test 'year must be an integer' > # at t/43new-params.t line 11. > # expecting: Regexp ((?-xism:is an integer)) > # found: Bizarre copy of ARRAY in sassign at > /usr/local/modern/perl/lib/5.12.1/Carp.pm line 95. > > # Failed test 'month must be an integer' > # at t/43new-params.t line 14. > # expecting: Regexp ((?-xism:an integer)) > # found: Bizarre copy of ARRAY in sassign at > /usr/local/modern/perl/lib/5.12.1/Carp.pm line 95. > > # Failed test 'day must be an integer' > # at t/43new-params.t line 18. > # expecting: Regexp ((?-xism:an integer)) > # found: Bizarre copy of ARRAY in sassign at > /usr/local/modern/perl/lib/5.12.1/Carp.pm line 95. > > # Failed test 'hour must be an integer' > # at t/43new-params.t line 21. > # expecting: Regexp ((?-xism:an integer)) > # found: Bizarre copy of ARRAY in sassign at > /usr/local/modern/perl/lib/5.12.1/Carp.pm line 95. > > # Failed test 'minute must be an integer' > # at t/43new-params.t line 32. > # expecting: Regexp ((?-xism:an integer)) > # found: Bizarre copy of ARRAY in sassign at > /usr/local/modern/perl/lib/5.12.1/Carp.pm line 95. > > # Failed test 'second must be an integer' > # at t/43new-params.t line 44. > # expecting: Regexp ((?-xism:an integer)) > # found: Bizarre copy of ARRAY in sassign at > /usr/local/modern/perl/lib/5.12.1/Carp.pm line 95. > > # Failed test 'nanosecond must be an integer' > # at t/43new-params.t line 57. > # expecting: Regexp ((?-xism:positive integer)) > # found: Bizarre copy of ARRAY in sassign at > /usr/local/modern/perl/lib/5.12.1/Carp.pm line 95. > # Looks like you failed 8 tests of 8. > t/43new-params.t ........ Dubious, test returned 8 (wstat 2048, 0x800) > Failed 8/8 subtests
Hmm, all I can say is WTF? I've seen this sort of error before, and generally it seems to be a bug in Perl itself. It might be better to report this with perlbug. It could also be a bug in Carp.
On Sat Jun 26 13:22:53 2010, DROLSKY wrote: Show quoted text
> On Tue Jun 08 23:50:39 2010, TJC wrote:
> > DateTime 0.55's unit test t/43new-params.t fails 8 tests when run on
a Show quoted text
> > Perl 5.12.1 on Linux with threading enabled. > >
[snip] Show quoted text
> Hmm, all I can say is WTF? > > I've seen this sort of error before, and generally it seems to be a
bug Show quoted text
> in Perl itself. It might be better to report this with perlbug. It
could Show quoted text
> also be a bug in Carp.
Thanks for checking it out; I'm happy to consider it a Perlbug and will chase things up there instead, so I'll close this ticket. Unsure what's up with my Perl 5.12.1 but I did compile it from source so maybe something went wrong there..Although I'd been doing it with perl 5.10.1 for ages with no problems previously.