Skip Menu |

This queue is for tickets about the Class-PObject CPAN distribution.

Report information
The Basics
Id: 4218
Status: resolved
Priority: 0/
Queue: Class-PObject

People
Owner: Nobody in particular
Requestors: Marek.Rouchal [...] gmx.net
Cc: mschwern [...] cpan.org
AdminCc:

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



Subject: test errors C:PO 2.07 w/ perl-5.8.1
CC: mschwern [...] cpan.org
I have perl-5.8.1 (ithreads, shared libperl) compiled on Solaris 7 (sparc) with gcc-3.1.1, and the current latest&greatest CPAN modules (i.e., at least the prerequisites for this module). Running the test (verbose), I get the attached logfile, i.e. a big number of errors. Please let me know if you need any further details to solve the problems. This error message however may point to a problem in Test::Builder, this is why I put MSCHWERN on CC. Best regards, Marek

Message body is not shown because it is too large.

From: "Sherzod" <sherzodr [...] handalak.com>
To: <bug-Class-PObject [...] rt.cpan.org>
Subject: RE: [cpan #4218] test errors C:PO 2.07 w/ perl-5.8.1
Date: Mon, 27 Oct 2003 15:19:32 -0500
RT-Send-Cc:
Could you send me the full test log? : -----Original Message----- : From: via RT [mailto:bug-Class-PObject@rt.cpan.org] : Sent: Monday, October 27, 2003 11:11 AM : To: AdminCc of cpan Ticket #4218 : : Subject: [cpan #4218] test errors C:PO 2.07 w/ perl-5.8.1 : : : : This message about Class-PObject was sent to you by : MAREKR <MAREKR@cpan.org> via rt.cpan.org : : Full context and any attached attachments can be found at: : <URL: https://rt.cpan.org/Ticket/Display.html?id=4218 > : : I have perl-5.8.1 (ithreads, shared libperl) compiled on Solaris 7 : (sparc) with gcc-3.1.1, and the current latest&greatest : CPAN modules : (i.e., at least the prerequisites for this module). : : Running the test (verbose), I get the attached logfile, i.e. a : big number of errors. Please let me know if you need any further : details to solve the problems. : : This error message however may point to a problem in : Test::Builder, : this is why I put MSCHWERN on CC. : : Best regards, : : Marek : : :
At this moment I am not sure what the problem might be. I can see the cpan-testers tested the library on sparc ( http://testers.cpan.org/show/Class-PObject.html ), but looks like your configuration is different than the one it was tested on. I will ask cpan-testers whoever has access to a similar system help me debug it. If you can poke around the tests yourself trying to track the problem down, I would appreciate that.
I have found several threads on google that talk about similar issue. Looks like an ithreads bug in Perl 5.8 and/or Test::Builder. Check them out: http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF- 8&safe=off&q=%22Invalid+value+for+shared+scalar%22+schwern
[SHERZODR - Tue Oct 28 04:01:48 2003]: Show quoted text
> I have found several threads on google that talk about similar issue. > Looks like an ithreads bug in Perl 5.8 and/or Test::Builder. > > Check them out: http://www.google.com/search?hl=en&lr=&ie=UTF-
8&oe=UTF-8&safe=off&q=%22Invalid+value+for+shared+scalar%22+schwern Yes, now I remember that I saw Test::Builder trouble with ithreading perl (5.8.0) before - 5.8.1 seems to add some more problems to it. However: If you look at the full test log, then you'll see t/01basic_file.t break at this one: not ok 71 # Failed test (/home/hwadm/.cpan/build/Class-PObject- 2.07/blib/lib/Class/PObject/Test/Basic.pm at line 230) [1] - Sherzod Ruzmetov <sherzodr@cpan.org> [2] - Hilola Nasyrova <some@email.com> [3] - Geek <sherzodr@cpan.org> [4] - Sherzod Ruzmetov <sherzodr@cpan.org> [5] - Hilola Nasyrova <some@email.com> [6] - Geek <sherzodr@cpan.org> As far as I can tell, there should be only three items in the list, right? So there is another problem on top of the Test::Builder issue... -Marek
[MAREKR - Tue Oct 28 11:27:40 2003]: Show quoted text
> As far as I can tell, there should be only three items in the list, > right? So there is another problem on top of the Test::Builder > issue...
Ooops, sorry - this is not a problem; doing rm -rf data before re-running the test solves this issue. I am currently looking into Test::Builder and threads::shared... -Marek
I have created a case for Test:Builder, that solves the Test::Builder problem: [cpan #4232] AutoReply: Test::Builder and ithreads I have applied this to my local Test::Builder. However, now the t/01basic.t does run ok, and I see more problems in other tests, see the attached log. Cheers, Marek

Message body is not shown because it is too large.

ok, all the problems are related to Test::Builder and ithreads - but: In your test scripts you are using ok($test, $name); where $name is an object - this is not quite what Test::Builder expects to see. In #4232 I have proposed a patch for explicit stringification of $name, which would solve the issue on a global scale. You may however rethink if you don't want to use ok($test, "$name") i.e. pass a real string to the ok() sub in all the places. Cheers, Marek