Skip Menu |
 

This queue is for tickets about the Math-BigInt CPAN distribution.

Report information
The Basics
Id: 103844
Status: rejected
Priority: 0/
Queue: Math-BigInt

People
Owner: Nobody in particular
Requestors: cheako [...] mikemestnik.net
Cc:
AdminCc:

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



MIME-Version: 1.0
X-Spam-Status: No, score=-3.6 tagged_above=-99.9 required=10 tests=[AWL=-1.000, BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
X-Spam-Flag: NO
content-type: text/plain; charset="utf-8"
Message-ID: <CAF8px57qrkH6M3GekQgj9Y=4zHK_JpSoyz23uHDw=2sFyGUCTA [...] mail.gmail.com>
X-Received: by 10.152.36.136 with SMTP id q8mr17217725laj.96.1429572156107; Mon, 20 Apr 2015 16:22:36 -0700 (PDT)
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -3.6
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 62F9B240442 for <cpan-bug+Math-BigInt [...] hipster.bestpractical.com>; Mon, 20 Apr 2015 19:22:45 -0400 (EDT)
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 B8+B5M1-FBbP for <cpan-bug+Math-BigInt [...] hipster.bestpractical.com>; Mon, 20 Apr 2015 19:22:44 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id F36A22402F7 for <bug-Math-BigInt [...] rt.cpan.org>; Mon, 20 Apr 2015 19:22:43 -0400 (EDT)
Received: (qmail 5754 invoked by alias); 20 Apr 2015 23:22:43 -0000
Received: from mail-la0-f50.google.com (HELO mail-la0-f50.google.com) (209.85.215.50) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Mon, 20 Apr 2015 16:22:40 -0700
Received: by laat2 with SMTP id t2so138656756laa.1 for <bug-Math-BigInt [...] rt.cpan.org>; Mon, 20 Apr 2015 16:22:36 -0700 (PDT)
Received: by 10.112.3.169 with HTTP; Mon, 20 Apr 2015 16:22:36 -0700 (PDT)
Delivered-To: cpan-bug+Math-BigInt [...] hipster.bestpractical.com
Subject: is_zero on unblessed reference line 506.
Return-Path: <cheako [...] mikemestnik.net>
X-RT-Mail-Extension: math-bigint
X-Original-To: cpan-bug+Math-BigInt [...] hipster.bestpractical.com
X-Spam-Check-BY: la.mx.develooper.com
X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=qU0KdNO/Oh/b+Fpj4mWqiNV2yOrvq5T3k/ObGgrXK50=; b=D47IjKBwKwkG+Cd4lHF9QkolsHOCPHvmqMd/Vn1SqKLrs0CnmEiHEQ9wwQj/nnID6o q/puaY0X8I6E8DTyM6YpGWvZEqN98vNeuZmvd+K5Sx38Muh5WDNFhGrSfVHZHMxiIXMb C8fp1+NL91UvKhVB0DC2yD9NwEg3+jhhi9tPsPniOAp1woySNVd6WPks2N5eE5+btO1f vYFVXb3kUx4SMIF/io2hdIBeC9qODGJ/uf5ISNVeeHnx5f0+5X2GxYDVfS/kwJ1XKa7N IoVWNA7w1OjV0jMDcO/xsYxQf6uT5YMtoxLgdG2y+66+ARjsnwYtCM5blJ2wtXxSw9Te Q3Cg==
Date: Mon, 20 Apr 2015 18:22:36 -0500
X-Spam-Level:
X-Originating-Ip: [2001:470:1f11:9e9:54d3:38a6:b55:534f]
To: bug-Math-BigInt [...] rt.cpan.org
From: Mike Mestnik <cheako [...] mikemestnik.net>
X-GM-Message-State: ALoCoQlq9ADrwrjvNG+5WKN8LP7AcOv6uMy8f3ZPr7A+M8R5bDuJOVNmIvlJUsb9qLngBAi2fxuD
X-RT-Original-Encoding: utf-8
X-RT-Interface: Email
Content-Length: 292
Download (untitled) / with headers
text/plain 292b
Looks like bcmp in VERSION 1.9991 does not handle scalars. Can't call method "is_zero" on unblessed reference at /usr/share/perl/5.20/Math/BigFloat.pm line 506. I've added the following to capture more information. die ref($x).":".ref($y) unless ($x->can('is_zero') && $y->can('is_zero'));
MIME-Version: 1.0
X-Spam-Status: No, score=-5.266 tagged_above=-99.9 required=10 tests=[AWL=1.334, BAYES_00=-1.9, FROM_OUR_RT=-4, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
In-Reply-To: <rt-4.0.18-519-1429572166-539.103844-3-0 [...] rt.cpan.org>
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-103844 [...] rt.cpan.org> <CAF8px57qrkH6M3GekQgj9Y=4zHK_JpSoyz23uHDw=2sFyGUCTA [...] mail.gmail.com> <rt-4.0.18-519-1429572166-539.103844-3-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Received: by 10.152.7.209 with SMTP id l17mr20297235laa.100.1429622311245; Tue, 21 Apr 2015 06:18:31 -0700 (PDT)
Message-ID: <CAF8px56N9=DPJ27sCHj=NTVeyka59vKwiF3Yeqe4v0i=xgVbNA [...] mail.gmail.com>
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -5.266
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 0F0CF2403AE for <cpan-bug+Math-BigInt [...] hipster.bestpractical.com>; Tue, 21 Apr 2015 09:18:42 -0400 (EDT)
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 6dHCRDPokcfd for <cpan-bug+Math-BigInt [...] hipster.bestpractical.com>; Tue, 21 Apr 2015 09:18:40 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 8177E240375 for <bug-Math-BigInt [...] rt.cpan.org>; Tue, 21 Apr 2015 09:18:40 -0400 (EDT)
Received: (qmail 19147 invoked by alias); 21 Apr 2015 13:18:39 -0000
Received: from mail-la0-f49.google.com (HELO mail-la0-f49.google.com) (209.85.215.49) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Tue, 21 Apr 2015 06:18:36 -0700
Received: by lagv1 with SMTP id v1so150914391lag.3 for <bug-Math-BigInt [...] rt.cpan.org>; Tue, 21 Apr 2015 06:18:31 -0700 (PDT)
Received: by 10.112.3.169 with HTTP; Tue, 21 Apr 2015 06:18:31 -0700 (PDT)
Delivered-To: cpan-bug+Math-BigInt [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #103844] AutoReply: is_zero on unblessed reference line 506.
Return-Path: <cheako [...] mikemestnik.net>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+Math-BigInt [...] hipster.bestpractical.com
X-RT-Mail-Extension: math-bigint
X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=3xv2klpeGk18Dh1Wf710Le6iiu8UIJc/AcCaLew68d4=; b=hAQbL7G4f8pQwMIpivNl+2zEsmiQcUNkNVqaAD7E7Jv7CfLTbUoSgSGK47p6vQoiNG oSSxklnRG8lABtaiP65iNiOr9Dxvpk4i7ltdSGUA8kiIVS0lx/yWbP+UJciAIk2qdvvN jtTe2Z5XTH3I6va/uZs15OTioSSxapNOKH93qLk2hDfN1yfm5DzhpCq7jyzoJPlFbBf7 O5Y3C93GJR7gOctFKsDYu5zDBt3rcIUHgS0V6y6jfFHLXMVH7rybIDMmfsvdL07Xhy4z Hud6xmCBB/W4ktYfElAxlOV9T3Hjjr+BcCKNe7RHnZoCjM8cpSbvKrdw3VYyOkkmjIsy a9xg==
Date: Tue, 21 Apr 2015 08:18:31 -0500
X-Spam-Level:
X-Originating-Ip: [2001:470:1f11:9e9:1cbb:904e:6657:e089]
To: bug-Math-BigInt [...] rt.cpan.org
X-GM-Message-State: ALoCoQlxYOY93Cm+SX80V2zFBVAxcqSs+evqc4SrFzG2QzvD3gSMfKUiasGLtFuAXHJji5yUB7kd
From: Mike Mestnik <cheako [...] mikemestnik.net>
RT-Message-ID: <rt-4.0.18-21527-1429622323-33.103844-0-0 [...] rt.cpan.org>
Content-Length: 1434
Download (untitled) / with headers
text/plain 1.4k
Resulted in Can't call method "can" on unblessed reference, so I changed the code: use Scalar::Util qw(blessed); die ref($x).":".blessed($x).", ".ref($y).":".blessed($y) unless ((ref($x) ? blessed($x) : 1)||(ref($y) ? blessed($y) : 1)); On Mon, Apr 20, 2015 at 6:22 PM, Bugs in Math-BigInt via RT <bug-Math-BigInt@rt.cpan.org> wrote: Show quoted text
> > Greetings, > > This message has been automatically generated in response to the > creation of a trouble ticket regarding: > "is_zero on unblessed reference line 506.", > a summary of which appears below. > > There is no need to reply to this message right now. Your ticket has been > assigned an ID of [rt.cpan.org #103844]. Your ticket is accessible > on the web at: > > https://rt.cpan.org/Ticket/Display.html?id=103844 > > Please include the string: > > [rt.cpan.org #103844] > > in the subject line of all future correspondence about this issue. To do so, > you may reply to this message. > > Thank you, > bug-Math-BigInt@rt.cpan.org > > ------------------------------------------------------------------------- > Looks like bcmp in VERSION 1.9991 does not handle scalars. > > Can't call method "is_zero" on unblessed reference at > /usr/share/perl/5.20/Math/BigFloat.pm line 506. > > I've added the following to capture more information. > die ref($x).":".ref($y) unless ($x->can('is_zero') && $y->can('is_zero'));
MIME-Version: 1.0
X-Spam-Status: No, score=-5.6 tagged_above=-99.9 required=10 tests=[AWL=1.000, BAYES_00=-1.9, FROM_OUR_RT=-4, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
In-Reply-To: <CAF8px56N9=DPJ27sCHj=NTVeyka59vKwiF3Yeqe4v0i=xgVbNA [...] mail.gmail.com>
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-103844 [...] rt.cpan.org> <CAF8px57qrkH6M3GekQgj9Y=4zHK_JpSoyz23uHDw=2sFyGUCTA [...] mail.gmail.com> <rt-4.0.18-519-1429572166-539.103844-3-0 [...] rt.cpan.org> <CAF8px56N9=DPJ27sCHj=NTVeyka59vKwiF3Yeqe4v0i=xgVbNA [...] mail.gmail.com>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Received: by 10.112.78.105 with SMTP id a9mr22305464lbx.70.1429663853067; Tue, 21 Apr 2015 17:50:53 -0700 (PDT)
Message-ID: <CAF8px55DDyk8RjZ-SYtTYQj173HfDVDQGq3uGO2d74vFqZyUPA [...] mail.gmail.com>
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -5.6
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id DD7962403A8 for <cpan-bug+Math-BigInt [...] hipster.bestpractical.com>; Tue, 21 Apr 2015 20:51:09 -0400 (EDT)
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 tXwlxd27o+GJ for <cpan-bug+Math-BigInt [...] hipster.bestpractical.com>; Tue, 21 Apr 2015 20:51:08 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 1EF052401BB for <bug-Math-BigInt [...] rt.cpan.org>; Tue, 21 Apr 2015 20:51:08 -0400 (EDT)
Received: (qmail 25366 invoked by alias); 22 Apr 2015 00:51:07 -0000
Received: from mail-la0-f48.google.com (HELO mail-la0-f48.google.com) (209.85.215.48) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Tue, 21 Apr 2015 17:50:57 -0700
Received: by laat2 with SMTP id t2so163467019laa.1 for <bug-Math-BigInt [...] rt.cpan.org>; Tue, 21 Apr 2015 17:50:53 -0700 (PDT)
Received: by 10.112.3.169 with HTTP; Tue, 21 Apr 2015 17:50:53 -0700 (PDT)
Delivered-To: cpan-bug+Math-BigInt [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #103844] AutoReply: is_zero on unblessed reference line 506.
Return-Path: <cheako [...] mikemestnik.net>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+Math-BigInt [...] hipster.bestpractical.com
X-RT-Mail-Extension: math-bigint
X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=QJX/aA9wIxzu4QIjsUpkSru8EdVeC26NMyYmSwL6GLk=; b=CbtE0ftPhMYPkU/zwnC+3Q6hS1IeWg1nxSAATX5w7DXiHvosOLbzGhcBvs08/P9ToS FQQhDMx2cexYIXPn4gppXK95ovyufipGQnZBiHWElDog+QlgQ9Tys9cxkJqd9ADn/iWw LriV74ZSn7pT1ClqXHAK8B+0PC4doDfJSqlKDMLqLb/qRAVNPhC3R7jdBJ9eEBUVgElJ od6rB8P08LfWOvYD5t/D7ybWp8zSnPuyGsuI4d3H4BCoa4jJnMH827xWoln9Eq4GMbcu cjdWJfMEP4wHYFQnBki3RuDULhCbZUC1MOhM5lm39p1pL3A1iFu+O4T/YmrP9B+YO/IK splg==
Date: Tue, 21 Apr 2015 19:50:53 -0500
X-Spam-Level:
X-Originating-Ip: [2001:470:1f11:9e9:1cbb:904e:6657:e089]
To: bug-Math-BigInt [...] rt.cpan.org
X-GM-Message-State: ALoCoQnXh+LLrF3mLey0uF1ewKwoakC94At33IsKHg1uUCryMECV51jsPtGw71jK9HfTUhNOGGO/
From: Mike Mestnik <cheako [...] mikemestnik.net>
RT-Message-ID: <rt-4.0.18-3071-1429663870-1752.103844-0-0 [...] rt.cpan.org>
Content-Length: 119
Download (untitled) / with headers
text/plain 119b
HASH:, Math::BigFloat:Math::BigFloat at /usr/share/perl/5.20/Math/BigFloat.pm line 507. I'll find out why a hash ref.
MIME-Version: 1.0
X-Spam-Status: No, score=-5.8 tagged_above=-99.9 required=10 tests=[AWL=0.800, BAYES_00=-1.9, FROM_OUR_RT=-4, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
In-Reply-To: <CAF8px55DDyk8RjZ-SYtTYQj173HfDVDQGq3uGO2d74vFqZyUPA [...] mail.gmail.com>
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-103844 [...] rt.cpan.org> <CAF8px57qrkH6M3GekQgj9Y=4zHK_JpSoyz23uHDw=2sFyGUCTA [...] mail.gmail.com> <rt-4.0.18-519-1429572166-539.103844-3-0 [...] rt.cpan.org> <CAF8px56N9=DPJ27sCHj=NTVeyka59vKwiF3Yeqe4v0i=xgVbNA [...] mail.gmail.com> <CAF8px55DDyk8RjZ-SYtTYQj173HfDVDQGq3uGO2d74vFqZyUPA [...] mail.gmail.com>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Received: by 10.152.87.70 with SMTP id v6mr17223765laz.30.1429741861752; Wed, 22 Apr 2015 15:31:01 -0700 (PDT)
Message-ID: <CAF8px57o28jrWYWhtq=s-FXW-s9K-eng8Bp2t+_faUgnFgvMDQ [...] mail.gmail.com>
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -5.8
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 56B8E240407 for <cpan-bug+Math-BigInt [...] hipster.bestpractical.com>; Wed, 22 Apr 2015 18:31:18 -0400 (EDT)
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 U7ekxtP89n5P for <cpan-bug+Math-BigInt [...] hipster.bestpractical.com>; Wed, 22 Apr 2015 18:31:17 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 127DF2402FB for <bug-Math-BigInt [...] rt.cpan.org>; Wed, 22 Apr 2015 18:31:16 -0400 (EDT)
Received: (qmail 10736 invoked by alias); 22 Apr 2015 22:31:16 -0000
Received: from mail-la0-f44.google.com (HELO mail-la0-f44.google.com) (209.85.215.44) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Wed, 22 Apr 2015 15:31:06 -0700
Received: by laat2 with SMTP id t2so392704laa.1 for <bug-Math-BigInt [...] rt.cpan.org>; Wed, 22 Apr 2015 15:31:01 -0700 (PDT)
Received: by 10.112.3.169 with HTTP; Wed, 22 Apr 2015 15:31:01 -0700 (PDT)
Delivered-To: cpan-bug+Math-BigInt [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #103844] AutoReply: is_zero on unblessed reference line 506.
Return-Path: <cheako [...] mikemestnik.net>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+Math-BigInt [...] hipster.bestpractical.com
X-RT-Mail-Extension: math-bigint
X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=KMcCSsvYK8lbaFBXHTTa4EGGDfFd8mFTgYh/8Zy+9+4=; b=Op2CGakhn9xLiJVwwdUOauyQcTVujITGDsv4bBNuRpXfOvKBBln1HbluIg2MuvbiHM aV4Cqq9aRYB1JZ2ORTuLsfw40r+NCabguU/T2xWeGJ5q++weEdEFO9ZtR99F+jjrf1QC DfL+OPCPrhMtmDfll/4aj7/Dj99EglWDrUtlztxdXSreqpoIkdx7xecfTH/Xf7UF66xq Sh2PoLEibuUwoKTK8IP/7E/JcH9d/efIBV73NdfELZeCzGTSjL+m0puS8Inhwi3hRhym tJ6PaMIxBCJ1CgAIgofvIdEjSMJ13HPrD11x2r++c1wbPXJB6/Z4/D8IYo/7A0ALMi5B 1PuA==
Date: Wed, 22 Apr 2015 17:31:01 -0500
X-Spam-Level:
X-Originating-Ip: [2001:470:1f11:9e9:71e9:985c:e8ec:4908]
To: bug-Math-BigInt [...] rt.cpan.org
X-GM-Message-State: ALoCoQk41litosUHHjrgw63tef/OE55G6MZFvTZvyf+Fe/ItpTH78YEiPD5E4g7QpU3Z55bTFGW9
From: Mike Mestnik <cheako [...] mikemestnik.net>
RT-Message-ID: <rt-4.0.18-32702-1429741879-1655.103844-0-0 [...] rt.cpan.org>
Content-Length: 260
Download (untitled) / with headers
text/plain 260b
It was an empty hasref, trying to get a backtrace now. On Tue, Apr 21, 2015 at 7:50 PM, Mike Mestnik <cheako@mikemestnik.net> wrote: Show quoted text
> HASH:, Math::BigFloat:Math::BigFloat at > /usr/share/perl/5.20/Math/BigFloat.pm line 507. > > I'll find out why a hash ref.
MIME-Version: 1.0
X-Spam-Status: No, score=-5.933 tagged_above=-99.9 required=10 tests=[AWL=0.667, BAYES_00=-1.9, FROM_OUR_RT=-4, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
In-Reply-To: <CAF8px57o28jrWYWhtq=s-FXW-s9K-eng8Bp2t+_faUgnFgvMDQ [...] mail.gmail.com>
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-103844 [...] rt.cpan.org> <CAF8px57qrkH6M3GekQgj9Y=4zHK_JpSoyz23uHDw=2sFyGUCTA [...] mail.gmail.com> <rt-4.0.18-519-1429572166-539.103844-3-0 [...] rt.cpan.org> <CAF8px56N9=DPJ27sCHj=NTVeyka59vKwiF3Yeqe4v0i=xgVbNA [...] mail.gmail.com> <CAF8px55DDyk8RjZ-SYtTYQj173HfDVDQGq3uGO2d74vFqZyUPA [...] mail.gmail.com> <CAF8px57o28jrWYWhtq=s-FXW-s9K-eng8Bp2t+_faUgnFgvMDQ [...] mail.gmail.com>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Received: by 10.112.143.137 with SMTP id se9mr628732lbb.60.1429759570863; Wed, 22 Apr 2015 20:26:10 -0700 (PDT)
Message-ID: <CAF8px55J=sUfk2+H3N2O80x2yrXpCg5gwNYDgjQmQbLtyqTTLw [...] mail.gmail.com>
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -5.933
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 07DC924041C for <cpan-bug+Math-BigInt [...] hipster.bestpractical.com>; Wed, 22 Apr 2015 23:26:25 -0400 (EDT)
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 87mPllDMGlzA for <cpan-bug+Math-BigInt [...] hipster.bestpractical.com>; Wed, 22 Apr 2015 23:26:23 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 810CD2402FB for <bug-Math-BigInt [...] rt.cpan.org>; Wed, 22 Apr 2015 23:26:23 -0400 (EDT)
Received: (qmail 28615 invoked by alias); 23 Apr 2015 03:26:22 -0000
Received: from mail-la0-f46.google.com (HELO mail-la0-f46.google.com) (209.85.215.46) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Wed, 22 Apr 2015 20:26:15 -0700
Received: by labbd9 with SMTP id bd9so3674057lab.2 for <bug-Math-BigInt [...] rt.cpan.org>; Wed, 22 Apr 2015 20:26:11 -0700 (PDT)
Received: by 10.112.3.169 with HTTP; Wed, 22 Apr 2015 20:26:10 -0700 (PDT)
Delivered-To: cpan-bug+Math-BigInt [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #103844] AutoReply: is_zero on unblessed reference line 506.
Return-Path: <cheako [...] mikemestnik.net>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+Math-BigInt [...] hipster.bestpractical.com
X-RT-Mail-Extension: math-bigint
X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=qA4LOaRjPUJqQjkT5V6JBXveNmQo83QE1BKhn3hd9Xo=; b=QgIy9/NqGI/1nmrwvAlB/RUrGawzvAD80NszeDkpZxNBfaoudPRRod3gqOa1VxOGP9 E0uoGQJj//7569Bw+cLgW1XK3A6PTgeY/fwM7eRuTtkRwLnYY8qeNnjGMOrCQEdpKGlz Y6ftCDGkghF9/hdlLmADOerHb3ln/ooxSxsTejjk/a9mlQsW8aLZHAeGycODhBx+Kdga 5Tx+ShxMUf6kgaH49Rj5qgcnbU0801cnQ8xh8+VQlJliVirS2oT2yN6Ku8FWFZSxvyC9 tB3XAlNnEJrVMWkJ15CS4RI/jtEGQ8N4VZTrLGVleYDf6c9jiH8ateg3Uj0hAefpJEuP R/DA==
Date: Wed, 22 Apr 2015 22:26:10 -0500
X-Spam-Level:
X-Originating-Ip: [2001:470:1f11:9e9:71e9:985c:e8ec:4908]
To: bug-Math-BigInt [...] rt.cpan.org
X-GM-Message-State: ALoCoQl/veYuhJ7Fuc5PqDExyVWpVkZHKAa8rE1x+3edK52u9+eoSr7d1Uq1Q1V79E3vCVYalMDn
From: Mike Mestnik <cheako [...] mikemestnik.net>
RT-Message-ID: <rt-4.0.18-14908-1429759585-1915.103844-0-0 [...] rt.cpan.org>
Content-Length: 446
Download (untitled) / with headers
text/plain 446b
I didn't have parentheses around something. Still should call Carp::confess instead of crashing. On Wed, Apr 22, 2015 at 5:31 PM, Mike Mestnik <cheako@mikemestnik.net> wrote: Show quoted text
> It was an empty hasref, trying to get a backtrace now. > > On Tue, Apr 21, 2015 at 7:50 PM, Mike Mestnik <cheako@mikemestnik.net> wrote:
>> HASH:, Math::BigFloat:Math::BigFloat at >> /usr/share/perl/5.20/Math/BigFloat.pm line 507. >> >> I'll find out why a hash ref.
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-14908-1429759585-1915.103844-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <RT-Ticket-103844 [...] rt.cpan.org> <CAF8px57qrkH6M3GekQgj9Y=4zHK_JpSoyz23uHDw=2sFyGUCTA [...] mail.gmail.com> <rt-4.0.18-519-1429572166-539.103844-3-0 [...] rt.cpan.org> <CAF8px56N9=DPJ27sCHj=NTVeyka59vKwiF3Yeqe4v0i=xgVbNA [...] mail.gmail.com> <CAF8px55DDyk8RjZ-SYtTYQj173HfDVDQGq3uGO2d74vFqZyUPA [...] mail.gmail.com> <CAF8px57o28jrWYWhtq=s-FXW-s9K-eng8Bp2t+_faUgnFgvMDQ [...] mail.gmail.com> <CAF8px55J=sUfk2+H3N2O80x2yrXpCg5gwNYDgjQmQbLtyqTTLw [...] mail.gmail.com> <rt-4.0.18-14908-1429759585-1915.103844-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-19196-1439661932-164.103844-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 651
Download (untitled) / with headers
text/plain 651b
If I understand you correctly, you are doing something like this $ perl -MMath::BigInt -wle '$x = {}; print $x -> is_zero()' Can't call method "is_zero" on unblessed reference at -e line 1. If that is the case, this has nothing to do with Math::BigInt. The error message is from Perl itself, not from Math::BigInt. Actually, your code is equivalent to the following, where there is no Math::BigInt involved. $ perl -wle '$x = {}; print $x -> is_zero()' Can't call method "is_zero" on unblessed reference at -e line 1. This is not a bug in Math::BigInt. It is a bug in your code. There is nothing I can do with Math::BigInt that will fix your code.
MIME-Version: 1.0
In-Reply-To: <CAF8px57qrkH6M3GekQgj9Y=4zHK_JpSoyz23uHDw=2sFyGUCTA [...] mail.gmail.com>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <CAF8px57qrkH6M3GekQgj9Y=4zHK_JpSoyz23uHDw=2sFyGUCTA [...] mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-23835-1439801767-1390.103844-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 50
This is not a bug in the Math-BigInt distribution.
MIME-Version: 1.0
X-Spam-Status: No, score=-6.599 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, FROM_OUR_RT=-4, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
In-Reply-To: <rt-4.0.18-19196-1439661933-450.103844-6-0 [...] rt.cpan.org>
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-103844 [...] rt.cpan.org> <CAF8px57qrkH6M3GekQgj9Y=4zHK_JpSoyz23uHDw=2sFyGUCTA [...] mail.gmail.com> <rt-4.0.18-519-1429572166-539.103844-3-0 [...] rt.cpan.org> <CAF8px56N9=DPJ27sCHj=NTVeyka59vKwiF3Yeqe4v0i=xgVbNA [...] mail.gmail.com> <CAF8px55DDyk8RjZ-SYtTYQj173HfDVDQGq3uGO2d74vFqZyUPA [...] mail.gmail.com> <CAF8px57o28jrWYWhtq=s-FXW-s9K-eng8Bp2t+_faUgnFgvMDQ [...] mail.gmail.com> <CAF8px55J=sUfk2+H3N2O80x2yrXpCg5gwNYDgjQmQbLtyqTTLw [...] mail.gmail.com> <rt-4.0.18-14908-1429759585-1915.103844-6-0 [...] rt.cpan.org> <rt-4.0.18-19196-1439661933-450.103844-6-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Received: by 10.112.147.201 with SMTP id tm9mr1536039lbb.40.1439824382079; Mon, 17 Aug 2015 08:13:02 -0700 (PDT)
Message-ID: <CAF8px54Cf=y=eNpHhmbd==5377UwnXveNqeGUepD7HbKF+pUwg [...] mail.gmail.com>
Content-Type: multipart/alternative; boundary="047d7b34391ad54c3d051d833ca1"
X-Spam-Score: -6.599
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 7B93424061E for <cpan-bug+Math-BigInt [...] hipster.bestpractical.com>; Mon, 17 Aug 2015 11:13:15 -0400 (EDT)
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 R5YS4dAkD1n4 for <cpan-bug+Math-BigInt [...] hipster.bestpractical.com>; Mon, 17 Aug 2015 11:13:14 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id A3F51240275 for <bug-Math-BigInt [...] rt.cpan.org>; Mon, 17 Aug 2015 11:13:13 -0400 (EDT)
Received: (qmail 9310 invoked by alias); 17 Aug 2015 15:13:13 -0000
Received: from mail-la0-f47.google.com (HELO mail-la0-f47.google.com) (209.85.215.47) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Mon, 17 Aug 2015 08:13:06 -0700
Received: by lalv9 with SMTP id v9so81132204lal.0 for <bug-Math-BigInt [...] rt.cpan.org>; Mon, 17 Aug 2015 08:13:02 -0700 (PDT)
Received: by 10.112.129.7 with HTTP; Mon, 17 Aug 2015 08:13:01 -0700 (PDT)
Received: by 10.112.129.7 with HTTP; Mon, 17 Aug 2015 08:13:01 -0700 (PDT)
Delivered-To: cpan-bug+Math-BigInt [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #103844] is_zero on unblessed reference line 506.
Return-Path: <cheako [...] mikemestnik.net>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+Math-BigInt [...] hipster.bestpractical.com
X-RT-Mail-Extension: math-bigint
X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=/kcK6mNGbw+u+e+eDLatqOemtEwcHr92NpJ1yzz0SM0=; b=GzMYc73ki/nVQlXtU//CTImLhYLTH9rjv5lOY/g74iqiqr1AYV58q/11tT+opevXtV hYdWJ2uHZ32W8/ofDALZiB66kcgEQwpVSwvmWPpn3KWIDmEBoadCpu3MhZweVd6UxT4r BgzUT97bayQV/PXQdl0PN9RTOXhUa+5H387Xw/V2chs3Chz/WeFNbXjwbzbVhnLrswa4 Ba6+osrFRSuB32/2m36GYsC7A72VBBxjZSUtuKhnCq5Ir/XhxmykfF6rv7qamCyk7fmG bq4ck4DxIySZbZbntgeOl/jt7vHsqUQRxuWONoix2jRwOghNfdkRmLaBz8Kx8yPA/+F0 FefA==
Date: Mon, 17 Aug 2015 10:13:01 -0500
X-Spam-Level:
X-Originating-Ip: [66.41.81.163]
To: bug-Math-BigInt [...] rt.cpan.org
X-GM-Message-State: ALoCoQn4tVuj3vNfLQPP7WMoJgBIYxNzeNB3Fz/bq/3eWtpSinPFWkisLduuHTWY9+kxS9ldgYkq
From: Mike Mestnik <cheako [...] mikemestnik.net>
RT-Message-ID: <rt-4.0.18-22259-1439824396-1091.103844-0-0 [...] rt.cpan.org>
Content-Length: 0
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Content-Length: 1276
Download (untitled) / with headers
text/plain 1.2k
That may be. I don't have the code for this but I'd found that adding () around the hashref fixed this. So the above example didn't track as the same problem. Instead of letting perl handle the error and then point out a module as being the reason for the error, and it is the cause of perl crashing, the module should confes that it does not support hashref. This should give a stack trace that indicates the code that caused perl to crash. On Aug 15, 2015 1:05 PM, "Peter John Acklam via RT" < bug-Math-BigInt@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=103844 > > > If I understand you correctly, you are doing something like this > > $ perl -MMath::BigInt -wle '$x = {}; print $x -> is_zero()' > Can't call method "is_zero" on unblessed reference at -e line 1. > > If that is the case, this has nothing to do with Math::BigInt. The error > message is from Perl itself, not from Math::BigInt. Actually, your code > is equivalent to the following, where there is no Math::BigInt involved. > > $ perl -wle '$x = {}; print $x -> is_zero()' > Can't call method "is_zero" on unblessed reference at -e line 1. > > This is not a bug in Math::BigInt. It is a bug in your code. There is > nothing I can do with Math::BigInt that will fix your code. >
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 1732
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-22259-1439824396-1091.103844-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <CAF8px55DDyk8RjZ-SYtTYQj173HfDVDQGq3uGO2d74vFqZyUPA [...] mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-16435-1439837236-293.103844-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 587
Download (untitled) / with headers
text/plain 587b
You say that the error happened at Math::BigFloat version 1.9991 at line 507. This is inside the bcmp() method. The code around line 507 looks like this: 506 my $xz = $x->is_zero(); 507 my $yz = $y->is_zero(); 508 return 0 if $xz && $yz; # 0 <=> 0 For some reason, $y is an unblessed reference. I have tried to reproduce the error you are seeing, but every attempt so far has made my program fail before it gets to line 507 of Math::BigFloat. If you want me to dig further into this, I am afraid you have to show me what $x and $y are in the call to bcmp().
MIME-Version: 1.0
X-Spam-Status: No, score=-6.599 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, FROM_OUR_RT=-4, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
In-Reply-To: <rt-4.0.18-16435-1439837236-989.103844-6-0 [...] rt.cpan.org>
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-103844 [...] rt.cpan.org> <CAF8px55DDyk8RjZ-SYtTYQj173HfDVDQGq3uGO2d74vFqZyUPA [...] mail.gmail.com> <rt-4.0.18-22259-1439824396-1091.103844-6-0 [...] rt.cpan.org> <rt-4.0.18-16435-1439837236-989.103844-6-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Received: by 10.152.27.134 with SMTP id t6mr2366027lag.100.1439839190012; Mon, 17 Aug 2015 12:19:50 -0700 (PDT)
Message-ID: <CAF8px54maiNycmk2owk3K=5XOHhaTZqmz=vJMd3KL0gYgWOqMw [...] mail.gmail.com>
Content-Type: multipart/alternative; boundary="089e0160bf68746de7051d86af0d"
X-Spam-Score: -6.599
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id DB90E24060E for <cpan-bug+Math-BigInt [...] hipster.bestpractical.com>; Mon, 17 Aug 2015 15:20:08 -0400 (EDT)
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 ezimnEfA+FR0 for <cpan-bug+Math-BigInt [...] hipster.bestpractical.com>; Mon, 17 Aug 2015 15:20:06 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id B9A8A24051E for <bug-Math-BigInt [...] rt.cpan.org>; Mon, 17 Aug 2015 15:20:05 -0400 (EDT)
Received: (qmail 22671 invoked by alias); 17 Aug 2015 19:20:05 -0000
Received: from mail-la0-f42.google.com (HELO mail-la0-f42.google.com) (209.85.215.42) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Mon, 17 Aug 2015 12:19:55 -0700
Received: by lagz9 with SMTP id z9so85527793lag.3 for <bug-Math-BigInt [...] rt.cpan.org>; Mon, 17 Aug 2015 12:19:50 -0700 (PDT)
Received: by 10.112.129.7 with HTTP; Mon, 17 Aug 2015 12:19:49 -0700 (PDT)
Received: by 10.112.129.7 with HTTP; Mon, 17 Aug 2015 12:19:49 -0700 (PDT)
Delivered-To: cpan-bug+Math-BigInt [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #103844] is_zero on unblessed reference line 506.
Return-Path: <cheako [...] mikemestnik.net>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+Math-BigInt [...] hipster.bestpractical.com
X-RT-Mail-Extension: math-bigint
X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=M+Jgog906sDi1J9+qMj2rbfSQP/YZVuNBhS/MDCaMeo=; b=MQ2HH2YVSj26g76Y6Gwh0/Wv+VSbOIQY4bwWEQYP3U29Uk+HOpavLvSkDcUZUJyJeg 8QQkzN3GfQOCU46eijbiZtwDWfY23APlhsUR2ZFpNgsWmps44ibqbOPEidYAu6fZi76u f0lM7U2BBw+mKJr9VsGr3kxa0H/wGGA7p+EP5T3tdhcpkhsmVHY1/MkBCYZbdQZN+Ttu +v5ae4XiYGN+/XhUohYxkENxg+4yuJSutgTxnt+doRtklxTWhZlZqwWXO9oH5CLFD5i+ yTFIn8jBIOuVIEEj5SOShkepFpiiGn/MJA8fKFK/468bJzkPDoSyRlR+Z4EoOEk1zbWK 0h+A==
Date: Mon, 17 Aug 2015 14:19:49 -0500
X-Spam-Level:
X-Originating-Ip: [173.209.211.233]
To: bug-Math-BigInt [...] rt.cpan.org
X-GM-Message-State: ALoCoQlD4j4fyZYVHUyTSFaIVf0OttGVNISZqIsZEpn53jTaufJHdAkRqGiSYheMqvHv504nwA2O
From: Mike Mestnik <cheako [...] mikemestnik.net>
RT-Message-ID: <rt-4.0.18-18184-1439839209-891.103844-0-0 [...] rt.cpan.org>
Content-Length: 0
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Content-Length: 1325
Download (untitled) / with headers
text/plain 1.2k
The original report says 506, review that error msg. After I altered the code it says line 507, but there is now information about what $x is. The information says empty and unblessed hash ref, but the calling code was an equation, I'll see if I can't find it. The calling code was fixed by putting parentheses around something and I remember that they should have been a no-op in that they seemingly did nothing. So I'm asking for there to be handling in the case $x or $y are unblessed hash ref, even if it seems impossible for that code to ever run. On Aug 17, 2015 1:47 PM, "Peter John Acklam via RT" < bug-Math-BigInt@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=103844 > > > You say that the error happened at Math::BigFloat version 1.9991 at line > 507. This is inside the bcmp() method. The code around line 507 looks like > this: > > 506 my $xz = $x->is_zero(); > 507 my $yz = $y->is_zero(); > 508 return 0 if $xz && $yz; # 0 <=> 0 > > For some reason, $y is an unblessed reference. I have tried to reproduce > the error you are seeing, but every attempt so far has made my program fail > before it gets to line 507 of Math::BigFloat. > > If you want me to dig further into this, I am afraid you have to show me > what $x and $y are in the call to bcmp(). >
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 1745


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.