develooper Front page | perl.perl5.porters | Postings from April 2007

Re: Resend: Re: Invalid value for shared scalar? (threads?)

Thread Previous | Thread Next
From:
Tels
Date:
April 27, 2007 07:34
Subject:
Re: Resend: Re: Invalid value for shared scalar? (threads?)
Message ID:
200704271638.43531@bloodgate.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Moin,

On Friday 27 April 2007 12:42:45 Dave Mitchell wrote:
> On Fri, Apr 27, 2007 at 02:09:02PM +0000, Tels wrote:
> > > 	t/biglog............ok 1/66Invalid value for shared scalar
> >
> > does anybody have an insight into what this error means and why it
> > could be occuring?
>
> Well, usually means that someone has tried to assign to a shared var, a
> value that is itself neither a simple scalar value, nor a shared value;
> eg:
>
>     use threads;
>     use threads::shared;
>
>     my $s : shared;
>     my %h : shared;
>
>     $s = "foo";	# ok
>     $s = \%h;	# ok
>     $s = {};	# error
>
> As to why it's occurring in your case, I don't know - quite possibly a
> bug in Test::Builder or Threads::Shared, which presumably has been fixed
> by 5.8.8.

Thanx for the info. The problem I have with the failure is that my 
testscript doesn't even use threads, nor does the rest of my code....

All the best,

Tels


- -- 
 Signed on Fri Apr 27 16:38:08 2007 with key 0x93B84C15.
 Get one of my photo posters: http://bloodgate.com/posters
 PGP key on http://bloodgate.com/tels.asc or per email.

 "In my opiniation, "burglarize" is a perfectionally validative
 wordification. How else would reportization of the securitial/policial
 forceship appearize to be importantive enoughly to be respectative by
 the massmediaship and influentate the societyness?"

  -- SharpFang (651121) on 2004-12-13 at /. about "burgle" vs. "burglarize"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iQEVAwUBRjInE3cLPEOTuEwVAQKXGwf+IpB4rmFeRZcck75LVSS1pMB47+ADI0+D
QCdFUiQhtIcp49fI7KywLfeZyBO28hzTvhYZM/BFJLFaGeeN+Uhy8Og7imGt3U+D
K9e63oOFqlg/mOC2crVX/g7EQs04nEPXd2e2Z2ADDeVZQZLAAtrAkM2zTnUbakM7
3IhSwW/Aj6NH0wahieF2akG4sGTNpjHNnpUL+ZUQxk1+hJh1QnM8Ka3MtRfOt/6c
96dbru5O0jqAAhBjj11MZ/8Gd0WACxfTwm/znZURUGbSDT21RQ1mQs7oSXvv0Avv
pMsrGn1t2UAAahKegpoGl07cVv9LtjeObLduDp1daE/y4u9XBZ7g6A==
=8muW
-----END PGP SIGNATURE-----

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About