Skip Menu |
 

This queue is for tickets about the CHI CPAN distribution.

Report information
The Basics
Id: 74188
Status: resolved
Priority: 0/
Queue: CHI

People
Owner: Nobody in particular
Requestors: jfuller [...] mvpbanking.com
Cc:
AdminCc:

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



From jfuller [...] mvpbanking.com Fri Jan 20 14: 41:54 2012
MIME-Version: 1.0
X-Spam-Status: No, score=-1.9 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9] autolearn=ham
X-Spam-Flag: NO
X-Virus-Checked: Checked by ClamAV on 16.mx.develooper.com
Content-Type: multipart/mixed; boundary="------------070506030608090307020709"
Message-ID: <4F19C379.4040002 [...] mvpbanking.com>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Virus-Scanned: Debian amavisd-new at mail.mvpbanking.com
X-Virus-Scanned: Debian amavisd-new at mail.mvpbanking.com
X-Spam-Score: -1.9
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 13A682415D7 for <cpan-bug+chi [...] hipster.bestpractical.com>; Fri, 20 Jan 2012 14:41:54 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PlFElGYKdXy1 for <cpan-bug+chi [...] hipster.bestpractical.com>; Fri, 20 Jan 2012 14:41:52 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 7FBC52415C9 for <bugs-chi [...] rt.cpan.org>; Fri, 20 Jan 2012 14:41:52 -0500 (EST)
Received: (qmail 16338 invoked by uid 103); 20 Jan 2012 19:41:51 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 20 Jan 2012 19:41:51 -0000
Received: from Unknown (HELO mvpbanking.com) (12.132.26.156) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with SMTP; Fri, 20 Jan 2012 11:41:49 -0800
Received: from localhost (localhost [127.0.0.1]) by mvpbanking.com (Postfix) with ESMTP id F3B81160185 for <bugs-chi [...] rt.cpan.org>; Fri, 20 Jan 2012 14:36:00 -0500 (EST)
Received: from mvpbanking.com ([127.0.0.1]) by localhost (info-pubmail.mvpbanking.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VClpxyCxTjSt for <bugs-chi [...] rt.cpan.org>; Fri, 20 Jan 2012 14:36:00 -0500 (EST)
Received: from internal.mvpbanking.com (unknown [10.10.10.3]) by mvpbanking.com (Postfix) with ESMTP id 8D9E4160177 for <bugs-chi [...] rt.cpan.org>; Fri, 20 Jan 2012 14:36:00 -0500 (EST)
Received: from localhost (localhost [127.0.0.1]) by internal.mvpbanking.com (Postfix) with ESMTP id D07D41602BC for <bugs-chi [...] rt.cpan.org>; Fri, 20 Jan 2012 14:45:17 -0500 (EST)
Received: from internal.mvpbanking.com ([127.0.0.1]) by localhost (info-inmail.mvpbanking.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YHmVVMmx39dO for <bugs-chi [...] rt.cpan.org>; Fri, 20 Jan 2012 14:45:17 -0500 (EST)
Received: from [10.10.10.73] (unknown [10.10.10.73]) by internal.mvpbanking.com (Postfix) with ESMTP id 70F111601D0 for <bugs-chi [...] rt.cpan.org>; Fri, 20 Jan 2012 14:45:17 -0500 (EST)
Delivered-To: cpan-bug+chi [...] hipster.bestpractical.com
Subject: CHI::Serializer::Storable Does Not Support Cross Architecture By Default
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20111124 Thunderbird/8.0
Return-Path: <jfuller [...] mvpbanking.com>
X-RT-Mail-Extension: chi
X-Original-To: cpan-bug+chi [...] hipster.bestpractical.com
X-Spam-Check-BY: 16.mx.develooper.com
Date: Fri, 20 Jan 2012 14:41:45 -0500
X-Spam-Level:
To: bugs-chi [...] rt.cpan.org
From: Jeffrey Fuller <jfuller [...] mvpbanking.com>
Content-Length: 0
content-type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 7bit
X-RT-Original-Encoding: ISO-8859-1
Content-Length: 922
Download (untitled) / with headers
text/plain 922b
The default serializer, Storable uses freeze/thaw for serialization. However, this does not when a cache is being used across multiple architectures. Thus, when windows machines with 32bit perl were sharing a cache with linux machines running 64bit perl a "Byte order is not compatible" error is thrown. The recommended solution is to user network order to serialize the data. *** Storable.pm 2012-01-20 14:37:18.668378773 -0500 --- Storable.pm 2012-01-20 14:37:30.416378119 -0500 *************** *** 13,23 **** __PACKAGE__->meta->make_immutable; sub serialize { ! return Storable::freeze( $_[1] ); } sub deserialize { ! return Storable::thaw( $_[1] ); } sub serializer { --- 13,23 ---- __PACKAGE__->meta->make_immutable; sub serialize { ! return Storable::nstore( $_[1] ); } sub deserialize { ! return Storable::retrieve( $_[1] ); } sub serializer {
content-type: text/x-patch; name="Storable.patch"
content-disposition: attachment; filename="Storable.patch"
Content-Transfer-Encoding: 7bit
Content-Length: 532
Download Storable.patch
text/x-diff 532b

Message body is not shown because sender requested not to inline it.

From swartz [...] pobox.com Tue Jan 31 15: 23:18 2012
MIME-Version: 1.0 (Apple Message framework v1084)
X-Spam-Status: No, score=-1.121 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_NEUTRAL=0.779] autolearn=no
In-Reply-To: <rt-3.8.HEAD-14882-1327088515-525.74188-4-0 [...] rt.cpan.org>
X-Mailer: Apple Mail (2.1084)
X-Spam-Flag: NO
References: <RT-Ticket-74188 [...] rt.cpan.org> <4F19C379.4040002 [...] mvpbanking.com> <rt-3.8.HEAD-14882-1327088515-525.74188-4-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Content-Type: text/plain; charset="utf-8"
Message-ID: <7A12223E-83BB-4546-8C34-16354CD3FA40 [...] pobox.com>
X-Sasl-Enc: trKvHbv6/ezhJH4Z/5PUmYdRcpPYGkGzCcqDLZP8fYoy 1328041390
X-RT-Original-Encoding: utf-8
X-Spam-Score: -1.121
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] messagingengine.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id AEBC4241483 for <cpan-bug+CHI [...] hipster.bestpractical.com>; Tue, 31 Jan 2012 15:23:18 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1C4zVHEuHwvL for <cpan-bug+CHI [...] hipster.bestpractical.com>; Tue, 31 Jan 2012 15:23:17 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 4BAC0241440 for <bug-CHI [...] rt.cpan.org>; Tue, 31 Jan 2012 15:23:17 -0500 (EST)
Received: (qmail 12893 invoked by uid 103); 31 Jan 2012 20:23:16 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 31 Jan 2012 20:23:16 -0000
Received: from out1-smtp.messagingengine.com (HELO out1-smtp.messagingengine.com) (66.111.4.25) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Tue, 31 Jan 2012 12:23:13 -0800
Received: from compute2.internal (compute2.nyi.mail.srv.osa [10.202.2.42]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 84BF923CFB for <bug-CHI [...] rt.cpan.org>; Tue, 31 Jan 2012 15:23:10 -0500 (EST)
Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute2.internal (MEProxy); Tue, 31 Jan 2012 15:23:10 -0500
Received: from [192.168.1.162] (dsl092-049-225.sfo4.dsl.speakeasy.net [66.92.49.225]) by mail.messagingengine.com (Postfix) with ESMTPSA id 1524F8E01BF for <bug-CHI [...] rt.cpan.org>; Tue, 31 Jan 2012 15:23:10 -0500 (EST)
Delivered-To: cpan-bug+CHI [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #74188] CHI::Serializer::Storable Does Not Support Cross Architecture By Default
Return-Path: <swartz [...] pobox.com>
Dkim-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id :references:to; s=smtpout; bh=R0UVSp+/yeb3DZhm78/p3Gv1lrY=; b=iN fH7E/NvhKznSjrPwj4Jkv+5Qp6bQmnhCxgnWSdRMV6DEMcVV9oMnPHmcqtIL5wtN dw+xtLsDYElMo9zn9uOgNjE7Psh7EpigHi3dbh6XKqUWIhERBOt2sGoIzfSLDfoZ H2FiJLkC9g/6JoOqkX/WAwxClqWWRf7aURJCl60ho=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+CHI [...] hipster.bestpractical.com
X-RT-Mail-Extension: chi
Date: Tue, 31 Jan 2012 12:23:09 -0800
X-Spam-Level:
To: bug-CHI [...] rt.cpan.org
Content-Transfer-Encoding: quoted-printable
From: Jonathan Swartz <swartz [...] pobox.com>
RT-Message-ID: <rt-3.8.HEAD-17367-1328041399-834.74188-0-0 [...] rt.cpan.org>
Content-Length: 2166
Download (untitled) / with headers
text/plain 2.1k
Ugh, that was silly of me. I would like to fix this; unfortunately if I do, when people upgrade CHI their existing caches may break. On Jan 20, 2012, at 11:41 AM, Jeffrey Fuller via RT wrote: Show quoted text
> Fri Jan 20 14:41:54 2012: Request 74188 was acted upon. > Transaction: Ticket created by jfuller@mvpbanking.com > Queue: CHI > Subject: CHI::Serializer::Storable Does Not Support Cross Architecture By Default > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: jfuller@mvpbanking.com > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=74188 > > > > The default serializer, Storable uses freeze/thaw for serialization. > However, this does not when a cache is being used across multiple > architectures. Thus, when windows machines with 32bit perl were sharing > a cache with linux machines running 64bit perl a "Byte order is not > compatible" error is thrown. > > The recommended solution is to user network order to serialize the data. > > > *** Storable.pm 2012-01-20 14:37:18.668378773 -0500 > --- Storable.pm 2012-01-20 14:37:30.416378119 -0500 > *************** > *** 13,23 **** > __PACKAGE__->meta->make_immutable; > > sub serialize { > ! return Storable::freeze( $_[1] ); > } > > sub deserialize { > ! return Storable::thaw( $_[1] ); > } > > sub serializer { > --- 13,23 ---- > __PACKAGE__->meta->make_immutable; > > sub serialize { > ! return Storable::nstore( $_[1] ); > } > > sub deserialize { > ! return Storable::retrieve( $_[1] ); > } > > sub serializer { > > *** Storable.pm 2012-01-20 14:37:18.668378773 -0500 > --- Storable.pm 2012-01-20 14:37:30.416378119 -0500 > *************** > *** 13,23 **** > __PACKAGE__->meta->make_immutable; > > sub serialize { > ! return Storable::freeze( $_[1] ); > } > > sub deserialize { > ! return Storable::thaw( $_[1] ); > } > > sub serializer { > --- 13,23 ---- > __PACKAGE__->meta->make_immutable; > > sub serialize { > ! return Storable::nstore( $_[1] ); > } > > sub deserialize { > ! return Storable::retrieve( $_[1] ); > } > > sub serializer {
MIME-Version: 1.0
In-Reply-To: <4F19C379.4040002 [...] mvpbanking.com>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <4F19C379.4040002 [...] mvpbanking.com>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-17203-1361800904-592.74188-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 255
Download (untitled) / with headers
text/plain 255b
The patch given is wrong - store/retrieve are for saving to and retrieving from disk. It should be as simple as changing freeze to nfreeze. There shouldn't be any concern with upgrading, as thaw will handle both network and native formats without issue.
MIME-Version: 1.0
In-Reply-To: <rt-3.8.HEAD-17203-1361800904-592.74188-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <4F19C379.4040002 [...] mvpbanking.com> <rt-3.8.HEAD-17203-1361800904-592.74188-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-20998-1363007738-1228.74188-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 369
Download (untitled) / with headers
text/plain 369b
D'oh, you're right! I'll put this in the next release. On Mon Feb 25 09:01:44 2013, haarg wrote: Show quoted text
> The patch given is wrong - store/retrieve are for saving to and > retrieving from disk. > > It should be as simple as changing freeze to nfreeze. > > There shouldn't be any concern with upgrading, as thaw will handle both > network and native formats without issue.


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.