Skip Menu |
 

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

Report information
The Basics
Id: 120240
Status: resolved
Priority: 0/
Queue: Math-BigInt

People
Owner: Nobody in particular
Requestors: Stefan.Welscher [...] telekom.de
Cc:
AdminCc:

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



CC: <bug-bignum [...] rt.cpan.org>
MIME-Version: 1.0
X-Cpan.org: This message routed through the cpan.org mail forwarding service. Please use PAUSE pause.perl.org to configure your delivery settings.
X-Spam-Flag: NO
X-MS-Exchange-Transport-Fromentityheader: Hosted
Content-Type: multipart/alternative; boundary="_000_e196b9d644274409869d4d7bcb1ac135HE106162emea1cdstintern_"
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -1.789
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 6250324031E for <cpan-bug+Math-BigInt [...] hipster.bestpractical.com>; Tue, 14 Feb 2017 07:44:02 -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 ZG4ShUlZxYum for <cpan-bug+Math-BigInt [...] hipster.bestpractical.com>; Tue, 14 Feb 2017 07:44:01 -0500 (EST)
Received: from xx1.develooper.com (xx1.develooper.com [207.171.7.115]) by hipster.bestpractical.com (Postfix) with ESMTPS id ABC042400AF for <bug-Math-BigInt [...] rt.cpan.org>; Tue, 14 Feb 2017 07:44:00 -0500 (EST)
Received: from localhost (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with ESMTP id F0A1911F296 for <bug-Math-BigInt [...] rt.cpan.org>; Tue, 14 Feb 2017 04:43:58 -0800 (PST)
Received: from xx1.develooper.com (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with SMTP id C495911F215 for <bug-Math-BigInt [...] rt.cpan.org>; Tue, 14 Feb 2017 04:43:55 -0800 (PST)
Received: from mailout23.telekom.de (MAILOUT23.telekom.de [80.149.113.253]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by xx1.develooper.com (Postfix) with ESMTPS id AB21667239 for <bug-Math-BigInt [...] rt.cpan.org>; Tue, 14 Feb 2017 04:43:51 -0800 (PST)
Received: from q4de8ssaz61.gppng.telekom.de ([10.206.166.200]) by MAILOUT21.telekom.de with ESMTP/TLS/DHE-RSA-AES128-SHA; 14 Feb 2017 13:42:38 +0100
Received: from he106161.emea1.cds.t-internal.com ([10.169.118.72]) by q4de8ssazdv.gppng.telekom.de with ESMTP/TLS/AES256-SHA; 14 Feb 2017 13:42:11 +0100
Received: from HE106162.EMEA1.cds.t-internal.com (10.169.118.73) by HE106161.emea1.cds.t-internal.com (10.169.118.72) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Tue, 14 Feb 2017 13:42:10 +0100
Received: from HE106162.EMEA1.cds.t-internal.com ([fe80::18a5:6ec:b055:cc19]) by HE106162.emea1.cds.t-internal.com ([fe80::18a5:6ec:b055:cc19%26]) with mapi id 15.00.1263.000; Tue, 14 Feb 2017 13:42:10 +0100
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=softfail (fail, message has been altered) header.i= [...] telekom.de
Delivered-To: cpan-bug+Math-BigInt [...] hipster.bestpractical.com
Subject: Warnings from BigInt.pm: Use of uninitiated value
Thread-Index: AdKGv8HbXUrHsSa2S0a/2NTZorkEwA==
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telekom.de; i= [...] telekom.de; q=dns/txt; s=dtag1; t=1487076233; x=1518612233; h=from:to:cc:subject:date:message-id:mime-version; bh=6hECWmNgY3cMofGw7EIurZKZmxtVBEHH+vZjYawlXmg=; b=JGPzqK6VB7hhYFpJA35TBo/O6AZL7rEzCiWS8lKV5igXMYrbXtefTaod N6E7tqQ43+Rl9Nl5uw8W3VfvbSbuOFfmYrt8n0SV81Fdw4oXSEHDqaGRI KrgmostVW0j0STfxdcWLGZibWjUM4CuIKJ05mJCmCTk5U+1rJqlKBN8p8 Yg9GiJIaAAiODHc2AuTUGewcMGAbxZiwY+wiUtKUPxnzco4COay53NJRu /Ec1DBN2ZHqYMFmyX2F1uCDSyvfcjOd4IVpLWvQ78TJTWbfQ7/SkC79uH 1aA2g7w3nx0+IOXCQOZ5ah7of+kprnFZf7gk5ms+BC0eLJteVhF/I2NTV w==;
X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_50_70 0.1, BODYTEXTH_SIZE_10000_LESS 0, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_2000_2999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, DKIM_SIGNATURE 0, NO_REAL_NAME 0, NO_URI_HTTPS 0, SPF_NONE 0, WEBMAIL_SOURCE 0, WEBMAIL_XOIP 0, WEBMAIL_X_IP_HDR 0, __ANY_URI 0, __CP_URI_IN_BODY 0, __CT 0, __CTYPE_HAS_BOUNDARY 0, __CTYPE_MULTIPART 0, __CTYPE_MULTIPART_ALT 0, __FRAUD_MONEY_CURRENCY 0, __FRAUD_MONEY_CURRENCY_DOLLAR 0, __HAS_CC_HDR 0, __HAS_FROM 0, __HAS_HTML 0, __HAS_MSGID 0, __HAS_XOIP 0, __HTML_AHREF_TAG 0, __HTML_TAG_DIV 0, __MIME_HTML 0, __MIME_TEXT_H 0, __MIME_TEXT_H1 0, __MIME_TEXT_H2 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_TEXT_P2 0, __MIME_VERSION 0, __MSGID_32HEX 0, __MULTIPLE_URI_TEXT 0, __SANE_MSGID 0, __STYLE_RATWARE_NEG 0, __STYLE_TAG 0, __SUBJ_ALPHA_END 0, __TAG_EXISTS_HTML 0, __TELEKOM_FROM_DOMAIN 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_IN_BODY 0, __URI_NO_MAILTO 0, __URI_NO_WWW 0, __URI_NS , __URI_WITH_PATH 0, __zen.spamhaus.org_ERROR '
Date: Tue, 14 Feb 2017 12:42:10 +0000
X-Spam-Level:
X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2017.2.14.123317
To: <bug-Math-BigInt [...] rt.cpan.org>
X-Spam-Status: No, score=-1.789 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, HTML_MESSAGE=0.001, T_DKIM_INVALID=0.01] autolearn=no
Content-Language: de-DE
Message-ID: <e196b9d644274409869d4d7bcb1ac135 [...] HE106162.emea1.cds.t-internal.com>
X-MS-Tnef-Correlator:
X-Ironport-Av: E=Sophos;i="5.35,161,1484002800"; d="scan'208,217";a="1126482510"
Return-Path: <prvs=211aa6d67=Stefan.Welscher [...] telekom.de>
X-Original-To: cpan-bug+Math-BigInt [...] hipster.bestpractical.com
X-RT-Mail-Extension: math-bigint
X-Greylist: delayed 64 seconds by postgrey-1.34 at xx1.develooper.com; Tue, 14 Feb 2017 04:43:52 PST
Thread-Topic: Warnings from BigInt.pm: Use of uninitiated value
X-MS-Has-Attach:
X-Originating-Ip: [10.204.199.25]
Accept-Language: de-DE, en-US
From: <Stefan.Welscher [...] telekom.de>
X-RT-Interface: Email
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: ascii
Content-Length: 681
Download (untitled) / with headers
text/plain 681b
Hello there, I get the following warnings from my scripts after updating Math::BigInt (1.999809): Use of uninitialized value in string eq at /usr/lib/perl5/5.10.0/Math/BigInt.pm line 1527, <LIST> line 34. Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/5.10.0/Math/BigInt.pm line 1536, <LIST> line 34. Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/5.10.0/Math/BigInt.pm line 1525, <LIST> line 34. Math::BigInt is used by bigint (0.47) in this case. http://search.cpan.org/~pjacklam/bignum-0.47/lib/bigint.pm It looks like $x->{sign} on badd is the uninitialized value. Can you please check/fix this? Thanks a lot, Stefan Welscher
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: ascii
Content-Length: 1654
MIME-Version: 1.0
In-Reply-To: <e196b9d644274409869d4d7bcb1ac135 [...] HE106162.emea1.cds.t-internal.com>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <e196b9d644274409869d4d7bcb1ac135 [...] HE106162.emea1.cds.t-internal.com>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-6618-1487083787-1089.120240-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: 205
Download (untitled) / with headers
text/plain 205b
No changes were made to badd() in version 1.999809, so I suspect this problem is related to an earlier version. Anyway, there isn't much I can do unless you provide some code so I can reproduce the error.
MIME-Version: 1.0
X-Cpan.org: This message routed through the cpan.org mail forwarding service. Please use PAUSE pause.perl.org to configure your delivery settings.
X-Spam-Flag: NO
X-MS-Exchange-Transport-Fromentityheader: Hosted
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -3.894
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] telekom.de
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 123392402C5 for <cpan-bug+Math-BigInt [...] hipster.bestpractical.com>; Tue, 14 Feb 2017 11:42:55 -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 SSKy6nu5TFDS for <cpan-bug+Math-BigInt [...] hipster.bestpractical.com>; Tue, 14 Feb 2017 11:42:53 -0500 (EST)
Received: from xx1.develooper.com (xx1.develooper.com [207.171.7.115]) by hipster.bestpractical.com (Postfix) with ESMTPS id 4468724021C for <bug-Math-BigInt [...] rt.cpan.org>; Tue, 14 Feb 2017 11:42:52 -0500 (EST)
Received: from localhost (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with ESMTP id 60B5811F3FB for <bug-Math-BigInt [...] rt.cpan.org>; Tue, 14 Feb 2017 08:42:51 -0800 (PST)
Received: from xx1.develooper.com (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with SMTP id 1AF9211F41A for <bug-Math-BigInt [...] rt.cpan.org>; Tue, 14 Feb 2017 08:42:46 -0800 (PST)
Received: from MAILOUT11.telekom.de (MAILOUT11.telekom.de [80.149.113.179]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by xx1.develooper.com (Postfix) with ESMTPS id AC30D11F414 for <bug-Math-BigInt [...] rt.cpan.org>; Tue, 14 Feb 2017 08:42:27 -0800 (PST)
Received: from q4de8psa169.blf.telekom.de ([10.151.13.200]) by MAILOUT11.telekom.de with ESMTP/TLS/DHE-RSA-AES128-SHA; 14 Feb 2017 17:42:24 +0100
Received: from he106163.emea1.cds.t-internal.com ([10.169.118.74]) by q4de8psazkj.blf.telekom.de with ESMTP/TLS/AES256-SHA; 14 Feb 2017 17:42:24 +0100
Received: from HE106162.EMEA1.cds.t-internal.com (10.169.118.73) by HE106163.emea1.cds.t-internal.com (10.169.118.74) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Tue, 14 Feb 2017 17:42:24 +0100
Received: from HE106162.EMEA1.cds.t-internal.com ([fe80::18a5:6ec:b055:cc19]) by HE106162.emea1.cds.t-internal.com ([fe80::18a5:6ec:b055:cc19%26]) with mapi id 15.00.1263.000; Tue, 14 Feb 2017 17:42:24 +0100
Delivered-To: cpan-bug+Math-BigInt [...] hipster.bestpractical.com
Subject: AW: [rt.cpan.org #120240] Warnings from BigInt.pm: Use of uninitiated value
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telekom.de; i= [...] telekom.de; q=dns/txt; s=dtag1; t=1487090551; x=1518626551; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=DBZuKUMJ4YYb8t/RT9qC+DU5GzRF45lWfrJ2j6cecnc=; b=PTmpt+GRmDmeQQvv0D62eebAkxgzWBnyPLZVfoTFpi1MosRbnyhwGF4h +73w21dY1k8vkoHI6NFo2u4Bwr7byjL3mb09yH8QfuDkEele61W+svzta DNlQYC0bZlC5MuP1gQzMi68K+FGKyPnC8Z7qM9BQwKUVsShed4WoK7Uh6 rwIRyHq0rSHFKraEG/2huGjftuH0Yb7CgoREXjzdpB6hmgQdjfk1ZfVks f0pmS1FRhem5LIVoflWOOhUB5Wi7CpSj67yW+e9D6K1r5H8VnoDc5xoOy IZCVNpM1TbhoH+gOemWcC9coDFb7x2Awkk8Wd8C5K0h8IZsLFz4Si+DUs Q==;
Thread-Index: AQHShtKWigNSFzz91ESYfqV420OPnaFomQHw
Date: Tue, 14 Feb 2017 16:42:24 +0000
X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_00_01 0.05, HTML_00_10 0.05, BODY_SIZE_3000_3999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, CTE_BASE64 0, DKIM_SIGNATURE 0, IN_REP_TO 0, LEGITIMATE_SIGNS 0, MSG_THREAD 0, NO_REAL_NAME 0, REFERENCES 0, SINGLE_URI_IN_BODY 0, SPF_NONE 0, URI_ENDS_IN_HTML 0, WEBMAIL_SOURCE 0, WEBMAIL_XOIP 0, WEBMAIL_X_IP_HDR 0, __ANY_URI 0, __BOUNCE_CHALLENGE_SUBJ 0, __CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __FRAUD_MONEY_CURRENCY 0, __FRAUD_MONEY_CURRENCY_DOLLAR 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_XOIP 0, __HTTPS_URI 0, __IN_REP_TO 0, __MIME_TEXT_ONLY 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_VERSION 0, __MSGID_32HEX 0, __NO_HTML_TAG_RAW 0, __REFERENCES 0, __SANE_MSGID 0, __SINGLE_URI_TEXT 0, __SUBJ_ALPHA_END 0, __TELEKOM_FROM_DOMAIN 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_IN_BODY 0, __URI_NO_WWW 0, __URI_NS , __URI_WITH_PATH 0, __zen.spamhaus.org_ERROR '
X-Spam-Level:
X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2017.2.14.162717
To: <bug-Math-BigInt [...] rt.cpan.org>
Content-Transfer-Encoding: base64
In-Reply-To: <rt-4.0.18-6618-1487083788-1154.120240-6-0 [...] rt.cpan.org>
X-Spam-Status: No, score=-3.894 tagged_above=-99.9 required=10 tests=[AWL=2.106, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FROM_OUR_RT=-4] autolearn=ham
X-RT-Interface: API
Content-Language: de-DE
References: <RT-Ticket-120240 [...] rt.cpan.org> <e196b9d644274409869d4d7bcb1ac135 [...] HE106162.emea1.cds.t-internal.com> <rt-4.0.18-6618-1487083788-1154.120240-6-0 [...] rt.cpan.org>
Message-ID: <4a8038254fb4417f9ba22a53558777de [...] HE106162.emea1.cds.t-internal.com>
X-MS-Tnef-Correlator:
X-Ironport-Av: E=Sophos;i="5.35,162,1484002800"; d="scan'208";a="1264405428"
Return-Path: <prvs=211aa6d67=Stefan.Welscher [...] telekom.de>
X-RT-Mail-Extension: math-bigint
X-Original-To: cpan-bug+Math-BigInt [...] hipster.bestpractical.com
X-MS-Has-Attach:
Thread-Topic: [rt.cpan.org #120240] Warnings from BigInt.pm: Use of uninitiated value
X-Originating-Ip: [10.204.199.25]
Accept-Language: de-DE, en-US
From: <Stefan.Welscher [...] telekom.de>
RT-Message-ID: <rt-4.0.18-6618-1487090575-293.120240-0-0 [...] rt.cpan.org>
Content-Length: 2210
Download (untitled) / with headers
text/plain 2.1k
Hello Peter, I made some test code showing the issue: #!/usr/bin/perl use bigint; use strict; my %testhash = (); my @testarray = (); my $testscalar; print "\nDEBUG:Test hash:\n"; $testhash{test}+=3; print "\nDEBUG:Test array:\n"; $testarray[1]+=3; print "\nDEBUG:Test scalar:\n"; $testscalar+=3; print "FIN\n"; Show quoted text
_____________________________________________________________________________________________________________ Rose:/opt/perl # perl test_bigint.pl DEBUG:Test hash: Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1525. Use of uninitialized value in string eq at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1527. Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1536. DEBUG:Test array: Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1525. Use of uninitialized value in string eq at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1527. Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1536. DEBUG:Test scalar: Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1525. Use of uninitialized value in string eq at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1527. Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1536. FIN
_____________________________________________________________________________________________________________ Thanks/Regards, Stefan Welscher
-----Ursprüngliche Nachricht----- Von: Peter John Acklam via RT [mailto:bug-Math-BigInt@rt.cpan.org] Gesendet: Dienstag, 14. Februar 2017 15:50 An: Welscher, Stefan Betreff: [rt.cpan.org #120240] Warnings from BigInt.pm: Use of uninitiated value <URL: https://rt.cpan.org/Ticket/Display.html?id=120240 > No changes were made to badd() in version 1.999809, so I suspect this problem is related to an earlier version. Anyway, there isn't much I can do unless you provide some code so I can reproduce the error.
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-6618-1487090575-293.120240-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <RT-Ticket-120240 [...] rt.cpan.org> <e196b9d644274409869d4d7bcb1ac135 [...] HE106162.emea1.cds.t-internal.com> <rt-4.0.18-6618-1487083788-1154.120240-6-0 [...] rt.cpan.org> <4a8038254fb4417f9ba22a53558777de [...] HE106162.emea1.cds.t-internal.com> <rt-4.0.18-6618-1487090575-293.120240-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-23605-1487684482-908.120240-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: 1021
Download (untitled) / with headers
text/plain 1021b
I have run your program with every combination of Math::BigInt, Math::BigInt::Lite, and bignum that I have installed on my system, and I am not able to reproduce what you are seeing. I tried each version of Math::BigInt from version 1.999701 to version 1.999809 with each version of Math::BigInt::Lite from version 0.03 to version 0.16 with each version of bignum from version 0.05 to 0.47. Perhaps you can run the following script and show me the output. The program displays the name and version of every module that is loaded when the program runs. #!/usr/bin/perl use strict; use warnings; use bigint; printf "%20s %s\n", "Perl", $]; for my $file (sort keys %INC) { my $mod = $file; $mod =~ s|\.pm$||; $mod =~ s|/|::|g; printf "%20s %s\n", $mod, $mod -> VERSION() // 'undef'; } my %testhash = (); my @testarray = (); my $testscalar; print "\nDEBUG:Test hash:\n"; $testhash{test}+=3; print "\nDEBUG:Test array:\n"; $testarray[1]+=3; print "\nDEBUG:Test scalar:\n"; $testscalar+=3; print "FIN\n";
MIME-Version: 1.0
X-Cpan.org: This message routed through the cpan.org mail forwarding service. Please use PAUSE pause.perl.org to configure your delivery settings.
X-Spam-Flag: NO
X-MS-Exchange-Transport-Fromentityheader: Hosted
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -4.947
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] telekom.de
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id DAD4524026A for <cpan-bug+Math-BigInt [...] hipster.bestpractical.com>; Tue, 21 Feb 2017 10:13:55 -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 61s3yaK18GNA for <cpan-bug+Math-BigInt [...] hipster.bestpractical.com>; Tue, 21 Feb 2017 10:13:53 -0500 (EST)
Received: from xx1.develooper.com (xx1.develooper.com [207.171.7.115]) by hipster.bestpractical.com (Postfix) with ESMTPS id 66670240101 for <bug-Math-BigInt [...] rt.cpan.org>; Tue, 21 Feb 2017 10:13:53 -0500 (EST)
Received: from localhost (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with ESMTP id 1268611D9E0 for <bug-Math-BigInt [...] rt.cpan.org>; Tue, 21 Feb 2017 07:13:49 -0800 (PST)
Received: from xx1.develooper.com (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with SMTP id EEF6911D8C5 for <bug-Math-BigInt [...] rt.cpan.org>; Tue, 21 Feb 2017 07:13:44 -0800 (PST)
Received: from MAILOUT21.telekom.de (MAILOUT21.telekom.de [80.149.113.251]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by xx1.develooper.com (Postfix) with ESMTPS id 5110F11D8A5 for <bug-Math-BigInt [...] rt.cpan.org>; Tue, 21 Feb 2017 07:13:39 -0800 (PST)
Received: from q4de8psa04t.blf.telekom.de ([10.151.13.130]) by MAILOUT21.telekom.de with ESMTP/TLS/DHE-RSA-AES128-SHA; 21 Feb 2017 16:13:34 +0100
Received: from he106163.emea1.cds.t-internal.com ([10.169.118.74]) by Q4DE8PSA04V.blf.telekom.de with ESMTP/TLS/AES256-SHA; 21 Feb 2017 16:13:34 +0100
Received: from HE106162.EMEA1.cds.t-internal.com (10.169.118.73) by HE106163.emea1.cds.t-internal.com (10.169.118.74) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Tue, 21 Feb 2017 16:13:33 +0100
Received: from HE106162.EMEA1.cds.t-internal.com ([fe80::18a5:6ec:b055:cc19]) by HE106162.emea1.cds.t-internal.com ([fe80::18a5:6ec:b055:cc19%26]) with mapi id 15.00.1263.000; Tue, 21 Feb 2017 16:13:34 +0100
Delivered-To: cpan-bug+Math-BigInt [...] hipster.bestpractical.com
Subject: AW: [rt.cpan.org #120240] Warnings from BigInt.pm: Use of uninitiated value
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telekom.de; i= [...] telekom.de; q=dns/txt; s=dtag1; t=1487690023; x=1519226023; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=Sn8OxKIjBcbgc5dlAgUULzv1mZrq51VaY+3Iii1tpD0=; b=4gLyg8v+s8wvKt2RSvPXhkwP+hHbFP2W0d2WKHr2WEdjU7cVQqeFK/Mm O8R3+25dG5JiE+7CxSGdesLt8/M+JfLII/LInR+wacdIxDj3ms+1axpu7 NCokOzq9YJK4bwc/IqVIJyIBoXi5eEm4/31x7OINEux3aBGWNbQucfQGF Zyr3vEeZqjMKuEAPdyQOoyj4LNQipXoHpmzqR2S1iZ+pAwFSs5/8bN7Ho 1W3D5aw8IJ7ioyx4lN3rssMSCpgxn7H7AZdt0D6mg6AgGjuWYYkYcjk0S DcLIkKHXDy0fEjzBsSuSQTLReFCPeTnP4HC1FsOS47i55ZIvm28E7q15g A==;
Thread-Index: AQHSjEsEyZqKmDKlbE62JQwYl5TSRqFzhnog
Date: Tue, 21 Feb 2017 15:13:34 +0000
X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_00_01 0.05, HTML_00_10 0.05, SUPERLONG_LINE 0.05, BODY_SIZE_10000_PLUS 0, CTE_BASE64 0, DKIM_SIGNATURE 0, IN_REP_TO 0, LEGITIMATE_SIGNS 0, MSG_THREAD 0, NO_REAL_NAME 0, REFERENCES 0, SPF_NONE 0, URI_ENDS_IN_HTML 0, WEBMAIL_SOURCE 0, WEBMAIL_XOIP 0, WEBMAIL_X_IP_HDR 0, __ANY_URI 0, __BOUNCE_CHALLENGE_SUBJ 0, __CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __FRAUD_CONTACT_NAME 0, __FRAUD_MONEY 0, __FRAUD_MONEY_CURRENCY 0, __FRAUD_MONEY_CURRENCY_DOLLAR 0, __FRAUD_MONEY_DENOMINATION 0, __FRAUD_MONEY_VALUE 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_XOIP 0, __HTTPS_URI 0, __IN_REP_TO 0, __MIME_TEXT_ONLY 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_VERSION 0, __MSGID_32HEX 0, __NO_HTML_TAG_RAW 0, __REFERENCES 0, __SANE_MSGID 0, __STOCK_PHRASE_7 0, __SUBJ_ALPHA_END 0, __TELEKOM_FROM_DOMAIN 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_IN_BODY 0, __URI_NO_WWW 0, __URI_NS , __URI_WITH_PATH 0, __zen.spamhaus.org_ERROR '
X-Spam-Level:
X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2017.2.21.150617
To: <bug-Math-BigInt [...] rt.cpan.org>
Content-Transfer-Encoding: base64
In-Reply-To: <rt-4.0.18-23605-1487684482-1316.120240-6-0 [...] rt.cpan.org>
X-Spam-Status: No, score=-4.947 tagged_above=-99.9 required=10 tests=[AWL=1.053, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FROM_OUR_RT=-4] autolearn=ham
X-RT-Interface: API
Content-Language: de-DE
References: <RT-Ticket-120240 [...] rt.cpan.org> <e196b9d644274409869d4d7bcb1ac135 [...] HE106162.emea1.cds.t-internal.com> <rt-4.0.18-6618-1487083788-1154.120240-6-0 [...] rt.cpan.org> <4a8038254fb4417f9ba22a53558777de [...] HE106162.emea1.cds.t-internal.com> <rt-4.0.18-6618-1487090575-293.120240-6-0 [...] rt.cpan.org> <rt-4.0.18-23605-1487684482-1316.120240-6-0 [...] rt.cpan.org>
Message-ID: <57ee79f49b7c48158baec26f9d3b1fa2 [...] HE106162.emea1.cds.t-internal.com>
X-MS-Tnef-Correlator:
X-Ironport-Av: E=Sophos;i="5.35,190,1484002800"; d="scan'208";a="623151921"
Return-Path: <prvs=218e7f90a=Stefan.Welscher [...] telekom.de>
X-RT-Mail-Extension: math-bigint
X-Original-To: cpan-bug+Math-BigInt [...] hipster.bestpractical.com
X-MS-Has-Attach:
Thread-Topic: [rt.cpan.org #120240] Warnings from BigInt.pm: Use of uninitiated value
X-Originating-Ip: [10.204.199.25]
Accept-Language: de-DE, en-US
From: <Stefan.Welscher [...] telekom.de>
RT-Message-ID: <rt-4.0.18-8124-1487690036-1640.120240-0-0 [...] rt.cpan.org>
Content-Length: 7951
Download (untitled) / with headers
text/plain 7.7k
Hello Peter, thank you for the reply. The output of your addon is as follows: Rose:/opt/perl # perl test_bigint.pl Perl 5.018002 Carp 1.29 Exporter 5.68 Exporter::Heavy 5.68 Math::BigInt 1.999809 Math::BigInt::Calc 1.999809 Math::BigInt::Lib 1.999809 bigint 0.47 constant 1.27 integer 1.00 overload 1.22 overloading 0.02 strict 1.07 vars 1.03 warnings 1.18 warnings::register 1.02 DEBUG:Test hash: Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1525. Use of uninitialized value in string eq at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1527. Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1536. DEBUG:Test array: Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1525. Use of uninitialized value in string eq at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1527. Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1536. DEBUG:Test scalar: Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1525. Use of uninitialized value in string eq at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1527. Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1536. FIN This output was created on a test system. On production environment, we deactivated "use warnings" in BigInt.pm to get rid of the warnings (we couldn't find a way for a quick rollback). The modules loaded with the test script are: Perl 5.010000 Carp 1.38 Exporter 5.72 Exporter::Heavy 5.72 Math::BigInt 1.999809 Math::BigInt::Calc 1.999809 Math::BigInt::Lib 1.999809 bigint 0.47 constant 1.33 integer 1.00 overload 1.06 strict 1.04 warnings 1.06 warnings::register 1.01 But today we also had a crash on the production script more or less caused by the BigInt-Module: " Can't call method "is_zero" on an undefined value at /usr/lib/perl5/5.10.0/Math/BigInt.pm line 1578." Because this error happens in the middle of >130.000 lines of code I was not yet able to specify a line causing it. On the production script, the following modules are loaded (I had to skip the Version method, because I got 'Can't call method "VERSION" without a package or object reference'): (I delete our own modules from the output) Perl 5.010000 ::usr::lib::perl5::5.10.0::x86_64-linux-thread-multi::auto::POSIX::autosplit.ix ::usr::lib::perl5::5.10.0::x86_64-linux-thread-multi::auto::POSIX::load_imports.al ::usr::lib::perl5::vendor_perl::5.10.0::x86_64-linux-thread-multi::auto::Net::SSLeay::autosplit.ix ::usr::lib::perl5::vendor_perl::5.10.0::x86_64-linux-thread-multi::auto::Net::SSLeay::randomize.al Algorithm::Diff Archive::Zip Archive::Zip::Archive Archive::Zip::DirectoryMember Archive::Zip::FileMember Archive::Zip::Member Archive::Zip::NewFileMember Archive::Zip::StringMember Archive::Zip::ZipFileMember AutoLoader Carp Carp::Heavy Compress::Raw::Bzip2 Compress::Raw::Zlib Config Config_heavy.pl Convert Cwd DBI Data::Dumper DynaLoader Encode Encode::Alias Encode::Config Encode::Encoding Errno Excel::Writer::XLSX Excel::Writer::XLSX::Chart Excel::Writer::XLSX::Chartsheet Excel::Writer::XLSX::Drawing Excel::Writer::XLSX::Format Excel::Writer::XLSX::Package::App Excel::Writer::XLSX::Package::Comments Excel::Writer::XLSX::Package::ContentTypes Excel::Writer::XLSX::Package::Core Excel::Writer::XLSX::Package::Custom Excel::Writer::XLSX::Package::Packager Excel::Writer::XLSX::Package::Relationships Excel::Writer::XLSX::Package::SharedStrings Excel::Writer::XLSX::Package::Styles Excel::Writer::XLSX::Package::Table Excel::Writer::XLSX::Package::Theme Excel::Writer::XLSX::Package::VML Excel::Writer::XLSX::Package::XMLwriter Excel::Writer::XLSX::Shape Excel::Writer::XLSX::Utility Excel::Writer::XLSX::Workbook Excel::Writer::XLSX::Worksheet Expect Exporter Exporter::Heavy Fcntl File::Basename File::Copy File::Find File::Glob File::GlobMapper File::Path File::Spec File::Spec::Unix File::Temp FileHandle IO IO::Compress::Adapter::Bzip2 IO::Compress::Adapter::Deflate IO::Compress::Adapter::Identity IO::Compress::Base IO::Compress::Base::Common IO::Compress::Bzip2 IO::Compress::Gzip::Constants IO::Compress::RawDeflate IO::Compress::Zip IO::Compress::Zip::Constants IO::Compress::Zlib::Extra IO::File IO::Handle IO::Pty IO::Seekable IO::Select IO::Socket IO::Socket::INET IO::Socket::INET6 IO::Socket::SSL IO::Socket::UNIX IO::Stty IO::Tty IO::Tty::Constant List::Util MIME::Base64 Math::BigInt Math::BigInt::Calc Math::BigInt::Lib Net::DNS Net::DNS::Domain Net::DNS::DomainName Net::DNS::Header Net::DNS::Packet Net::DNS::Parameters Net::DNS::Question Net::DNS::RR Net::DNS::Resolver Net::DNS::Resolver::Base Net::DNS::Resolver::UNIX Net::DNS::Update Net::SSLeay POSIX Scalar::Util SelectSaver Socket Socket6 Symbol Text::Diff Tie::Hash Time::Local WWW::Curl WWW::Curl::Easy XSLoader autouse base bigint bytes constant integer lib overload parent re strict utf8 vars warnings warnings::register I hope this helps you on debugging. Thanks/regards, Stefan Welscher Show quoted text
-----Ursprüngliche Nachricht----- Von: Peter John Acklam via RT [mailto:bug-Math-BigInt@rt.cpan.org] Gesendet: Dienstag, 21. Februar 2017 14:41 An: Welscher, Stefan Betreff: [rt.cpan.org #120240] Warnings from BigInt.pm: Use of uninitiated value <URL: https://rt.cpan.org/Ticket/Display.html?id=120240 > I have run your program with every combination of Math::BigInt, Math::BigInt::Lite, and bignum that I have installed on my system, and I am not able to reproduce what you are seeing. I tried each version of Math::BigInt from version 1.999701 to version 1.999809 with each version of Math::BigInt::Lite from version 0.03 to version 0.16 with each version of bignum from version 0.05 to 0.47. Perhaps you can run the following script and show me the output. The program displays the name and version of every module that is loaded when the program runs. #!/usr/bin/perl use strict; use warnings; use bigint; printf "%20s %s\n", "Perl", $]; for my $file (sort keys %INC) { my $mod = $file; $mod =~ s|\.pm$||; $mod =~ s|/|::|g; printf "%20s %s\n", $mod, $mod -> VERSION() // 'undef'; } my %testhash = (); my @testarray = (); my $testscalar; print "\nDEBUG:Test hash:\n"; $testhash{test}+=3; print "\nDEBUG:Test array:\n"; $testarray[1]+=3; print "\nDEBUG:Test scalar:\n"; $testscalar+=3; print "FIN\n";
MIME-Version: 1.0
X-Cpan.org: This message routed through the cpan.org mail forwarding service. Please use PAUSE pause.perl.org to configure your delivery settings.
X-Spam-Flag: NO
X-MS-Exchange-Transport-Fromentityheader: Hosted
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -5.298
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] telekom.de
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 6187E24039A for <cpan-bug+Math-BigInt [...] hipster.bestpractical.com>; Tue, 21 Feb 2017 11:52: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 B99cuo89EQ7V for <cpan-bug+Math-BigInt [...] hipster.bestpractical.com>; Tue, 21 Feb 2017 11:52:13 -0500 (EST)
Received: from xx1.develooper.com (xx1.develooper.com [207.171.7.115]) by hipster.bestpractical.com (Postfix) with ESMTPS id 668CE24036C for <bug-Math-BigInt [...] rt.cpan.org>; Tue, 21 Feb 2017 11:52:12 -0500 (EST)
Received: from localhost (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with ESMTP id 2DD2711F674 for <bug-Math-BigInt [...] rt.cpan.org>; Tue, 21 Feb 2017 08:52:11 -0800 (PST)
Received: from xx1.develooper.com (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with SMTP id DCCB711F625 for <bug-Math-BigInt [...] rt.cpan.org>; Tue, 21 Feb 2017 08:52:07 -0800 (PST)
Received: from MAILOUT31.telekom.de (MAILOUT31.telekom.de [80.149.113.193]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by xx1.develooper.com (Postfix) with ESMTPS id E414467239 for <bug-Math-BigInt [...] rt.cpan.org>; Tue, 21 Feb 2017 08:51:59 -0800 (PST)
Received: from q4de8psa04t.blf.telekom.de ([10.151.13.130]) by MAILOUT31.telekom.de with ESMTP/TLS/DHE-RSA-AES128-SHA; 21 Feb 2017 17:51:56 +0100
Received: from he106161.emea1.cds.t-internal.com ([10.169.118.72]) by Q4DE8PSA04V.blf.telekom.de with ESMTP/TLS/AES256-SHA; 21 Feb 2017 17:51:47 +0100
Received: from HE106162.EMEA1.cds.t-internal.com (10.169.118.73) by HE106161.emea1.cds.t-internal.com (10.169.118.72) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Tue, 21 Feb 2017 17:51:47 +0100
Received: from HE106162.EMEA1.cds.t-internal.com ([fe80::18a5:6ec:b055:cc19]) by HE106162.emea1.cds.t-internal.com ([fe80::18a5:6ec:b055:cc19%26]) with mapi id 15.00.1263.000; Tue, 21 Feb 2017 17:51:47 +0100
Delivered-To: cpan-bug+Math-BigInt [...] hipster.bestpractical.com
Subject: AW: [rt.cpan.org #120240] Warnings from BigInt.pm: Use of uninitiated value
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telekom.de; i= [...] telekom.de; q=dns/txt; s=dtag1; t=1487695925; x=1519231925; h=from:to:subject:date:message-id:references: content-transfer-encoding:mime-version; bh=zf+l5e1YtD7wh/Wp2t6sedvgxG3VG27ORUglVWTx17A=; b=NdVQTtqr+q4+iNwHlK60mYv5gydEqiYO7s8Ynw6ycY6Wr0FQ00EFApNi RazVb6PPZoQKxfJR2RW+cCoevbiTDxVXsBCPeJXTHomwt/b5GlL8U/jjU +chiojMpZ2X9p5+7e6jNNaOHfcJrjI6c4vJ6AR8buFETkBvKy3wb1ILbV HuQB5Ltp+bSZJ/R9IDbWx9tDTxWGPdusg+FfM3JNiJdKVnLTdGQWqWktP fXDqJxR3/FxHkknk2+R9fRXPp6gAu8bFpN1VaGqbk5lPwl1kHqkazSPsO 7wbcJs3WKS/WhQ0VFxwzzldamNnKJOuXfBmwxUshCd7hgkHvqlSmy4wLt Q==;
Thread-Index: AQHSjEsEyZqKmDKlbE62JQwYl5TSRqFzhnoggAAi9bA=
Date: Tue, 21 Feb 2017 16:51:47 +0000
X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_00_01 0.05, HTML_00_10 0.05, SUPERLONG_LINE 0.05, BODY_SIZE_10000_PLUS 0, CTE_BASE64 0, DKIM_SIGNATURE 0, NO_REAL_NAME 0, REFERENCES 0, SPF_NONE 0, URI_ENDS_IN_HTML 0, WEBMAIL_SOURCE 0, WEBMAIL_XOIP 0, WEBMAIL_X_IP_HDR 0, __ANY_URI 0, __BOUNCE_CHALLENGE_SUBJ 0, __CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __FRAUD_CONTACT_NAME 0, __FRAUD_MONEY 0, __FRAUD_MONEY_CURRENCY 0, __FRAUD_MONEY_CURRENCY_DOLLAR 0, __FRAUD_MONEY_DENOMINATION 0, __FRAUD_MONEY_VALUE 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_XOIP 0, __HTTPS_URI 0, __MIME_TEXT_ONLY 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_VERSION 0, __MSGID_32HEX 0, __NO_HTML_TAG_RAW 0, __REFERENCES 0, __SANE_MSGID 0, __STOCK_PHRASE_7 0, __SUBJ_ALPHA_END 0, __TELEKOM_FROM_DOMAIN 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_IN_BODY 0, __URI_NO_WWW 0, __URI_NS , __URI_WITH_PATH 0, __zen.spamhaus.org_ERROR '
X-Spam-Level:
X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2017.2.21.164516
To: <bug-Math-BigInt [...] rt.cpan.org>
Content-Transfer-Encoding: base64
X-Spam-Status: No, score=-5.298 tagged_above=-99.9 required=10 tests=[AWL=0.702, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FROM_OUR_RT=-4] autolearn=ham
X-RT-Interface: API
Content-Language: de-DE
References: <RT-Ticket-120240 [...] rt.cpan.org> <e196b9d644274409869d4d7bcb1ac135 [...] HE106162.emea1.cds.t-internal.com> <rt-4.0.18-6618-1487083788-1154.120240-6-0 [...] rt.cpan.org> <4a8038254fb4417f9ba22a53558777de [...] HE106162.emea1.cds.t-internal.com> <rt-4.0.18-6618-1487090575-293.120240-6-0 [...] rt.cpan.org> <rt-4.0.18-23605-1487684482-1316.120240-6-0 [...] rt.cpan.org>
Message-ID: <0bca6a967cbc40e8b392db902faeb1e4 [...] HE106162.emea1.cds.t-internal.com>
X-MS-Tnef-Correlator:
X-Ironport-Av: E=Sophos;i="5.35,190,1484002800"; d="scan'208";a="623206812"
Return-Path: <prvs=218e7f90a=Stefan.Welscher [...] telekom.de>
X-RT-Mail-Extension: math-bigint
X-Original-To: cpan-bug+Math-BigInt [...] hipster.bestpractical.com
X-MS-Has-Attach:
Thread-Topic: [rt.cpan.org #120240] Warnings from BigInt.pm: Use of uninitiated value
X-Originating-Ip: [10.204.199.25]
Accept-Language: de-DE, en-US
From: <Stefan.Welscher [...] telekom.de>
RT-Message-ID: <rt-4.0.18-20654-1487695939-119.120240-0-0 [...] rt.cpan.org>
Content-Length: 11903
Download (untitled) / with headers
text/plain 11.6k
Hello Peter, I found the line on which the production script crashed today. It's basically, when the second parameter of a calculation is not initiated: #!/usr/bin/perl use bigint; use strict; use warnings; printf "%20s %s\n", "Perl", $]; for my $file (sort keys %INC) { my $mod = $file; $mod =~ s|\.pm$||; $mod =~ s|/|::|g; printf "%20s %s\n", $mod, $mod -> VERSION() // 'undef'; } my %testhash = (); my @testarray = (); my $testscalar; print "\nDEBUG:Addition:\n--------------\n"; print "\nDEBUG:Test hash:\n"; $testhash{test}+=3; print "\nDEBUG:Test array:\n"; $testarray[1]+=3; print "\nDEBUG:Test scalar:\n"; $testscalar+=3; my $testscalar2; print "\nDEBUG:Substraction:\n--------------\n"; print "\nDEBUG:Test scalar: ".(1-$testscalar2)."\n"; my $testscalar3; print "\nDEBUG:Multiplication:\n--------------\n"; print "\nDEBUG:Test scalar: ".(1*$testscalar3)."\n"; my $testscalar4; print "\nDEBUG:Division:\n--------------\n"; print "\nDEBUG:Test scalar: ".(1/$testscalar4)."\n"; print "FIN\n"; Output of the script (concatenated, because of the crashes): Rose:/opt/perl # perl test_bigint.pl Perl 5.018002 Carp 1.29 Exporter 5.68 Exporter::Heavy 5.68 Math::BigInt 1.999809 Math::BigInt::Calc 1.999809 Math::BigInt::Lib 1.999809 bigint 0.47 constant 1.27 integer 1.00 overload 1.22 overloading 0.02 strict 1.07 vars 1.03 warnings 1.18 warnings::register 1.02 DEBUG:Addition: -------------- DEBUG:Test hash: Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1525. Use of uninitialized value in string eq at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1527. Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1536. DEBUG:Test array: Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1525. Use of uninitialized value in string eq at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1527. Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1536. DEBUG:Test scalar: Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1525. Use of uninitialized value in string eq at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1527. Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1536. DEBUG:Substraction: -------------- Can't call method "is_zero" on an undefined value at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1578. DEBUG:Multiplication: -------------- Use of uninitialized value in string eq at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1609. Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1612. Use of uninitialized value in string eq at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1627. Can't use an undefined value as an ARRAY reference at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt/Calc.pm line 483. DEBUG:Division: -------------- Can't call method "is_nan" on an undefined value at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1716. Of course division by undefined/zero will always cause an error, so this surely is the least critical one. But with only that error given it is very hard to find the corresponding line on large scripts. Thanks/regards, Stefan Welscher Show quoted text
-----Ursprüngliche Nachricht----- Von: Welscher, Stefan Gesendet: Dienstag, 21. Februar 2017 16:14 An: 'bug-Math-BigInt@rt.cpan.org' Betreff: AW: [rt.cpan.org #120240] Warnings from BigInt.pm: Use of uninitiated value Hello Peter, thank you for the reply. The output of your addon is as follows: Rose:/opt/perl # perl test_bigint.pl Perl 5.018002 Carp 1.29 Exporter 5.68 Exporter::Heavy 5.68 Math::BigInt 1.999809 Math::BigInt::Calc 1.999809 Math::BigInt::Lib 1.999809 bigint 0.47 constant 1.27 integer 1.00 overload 1.22 overloading 0.02 strict 1.07 vars 1.03 warnings 1.18 warnings::register 1.02 DEBUG:Test hash: Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1525. Use of uninitialized value in string eq at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1527. Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1536. DEBUG:Test array: Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1525. Use of uninitialized value in string eq at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1527. Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1536. DEBUG:Test scalar: Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1525. Use of uninitialized value in string eq at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1527. Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/5.18.2/Math/BigInt.pm line 1536. FIN This output was created on a test system. On production environment, we deactivated "use warnings" in BigInt.pm to get rid of the warnings (we couldn't find a way for a quick rollback). The modules loaded with the test script are: Perl 5.010000 Carp 1.38 Exporter 5.72 Exporter::Heavy 5.72 Math::BigInt 1.999809 Math::BigInt::Calc 1.999809 Math::BigInt::Lib 1.999809 bigint 0.47 constant 1.33 integer 1.00 overload 1.06 strict 1.04 warnings 1.06 warnings::register 1.01 But today we also had a crash on the production script more or less caused by the BigInt-Module: " Can't call method "is_zero" on an undefined value at /usr/lib/perl5/5.10.0/Math/BigInt.pm line 1578." Because this error happens in the middle of >130.000 lines of code I was not yet able to specify a line causing it. On the production script, the following modules are loaded (I had to skip the Version method, because I got 'Can't call method "VERSION" without a package or object reference'): (I delete our own modules from the output) Perl 5.010000 ::usr::lib::perl5::5.10.0::x86_64-linux-thread-multi::auto::POSIX::autosplit.ix ::usr::lib::perl5::5.10.0::x86_64-linux-thread-multi::auto::POSIX::load_imports.al ::usr::lib::perl5::vendor_perl::5.10.0::x86_64-linux-thread-multi::auto::Net::SSLeay::autosplit.ix ::usr::lib::perl5::vendor_perl::5.10.0::x86_64-linux-thread-multi::auto::Net::SSLeay::randomize.al Algorithm::Diff Archive::Zip Archive::Zip::Archive Archive::Zip::DirectoryMember Archive::Zip::FileMember Archive::Zip::Member Archive::Zip::NewFileMember Archive::Zip::StringMember Archive::Zip::ZipFileMember AutoLoader Carp Carp::Heavy Compress::Raw::Bzip2 Compress::Raw::Zlib Config Config_heavy.pl Convert Cwd DBI Data::Dumper DynaLoader Encode Encode::Alias Encode::Config Encode::Encoding Errno Excel::Writer::XLSX Excel::Writer::XLSX::Chart Excel::Writer::XLSX::Chartsheet Excel::Writer::XLSX::Drawing Excel::Writer::XLSX::Format Excel::Writer::XLSX::Package::App Excel::Writer::XLSX::Package::Comments Excel::Writer::XLSX::Package::ContentTypes Excel::Writer::XLSX::Package::Core Excel::Writer::XLSX::Package::Custom Excel::Writer::XLSX::Package::Packager Excel::Writer::XLSX::Package::Relationships Excel::Writer::XLSX::Package::SharedStrings Excel::Writer::XLSX::Package::Styles Excel::Writer::XLSX::Package::Table Excel::Writer::XLSX::Package::Theme Excel::Writer::XLSX::Package::VML Excel::Writer::XLSX::Package::XMLwriter Excel::Writer::XLSX::Shape Excel::Writer::XLSX::Utility Excel::Writer::XLSX::Workbook Excel::Writer::XLSX::Worksheet Expect Exporter Exporter::Heavy Fcntl File::Basename File::Copy File::Find File::Glob File::GlobMapper File::Path File::Spec File::Spec::Unix File::Temp FileHandle IO IO::Compress::Adapter::Bzip2 IO::Compress::Adapter::Deflate IO::Compress::Adapter::Identity IO::Compress::Base IO::Compress::Base::Common IO::Compress::Bzip2 IO::Compress::Gzip::Constants IO::Compress::RawDeflate IO::Compress::Zip IO::Compress::Zip::Constants IO::Compress::Zlib::Extra IO::File IO::Handle IO::Pty IO::Seekable IO::Select IO::Socket IO::Socket::INET IO::Socket::INET6 IO::Socket::SSL IO::Socket::UNIX IO::Stty IO::Tty IO::Tty::Constant List::Util MIME::Base64 Math::BigInt Math::BigInt::Calc Math::BigInt::Lib Net::DNS Net::DNS::Domain Net::DNS::DomainName Net::DNS::Header Net::DNS::Packet Net::DNS::Parameters Net::DNS::Question Net::DNS::RR Net::DNS::Resolver Net::DNS::Resolver::Base Net::DNS::Resolver::UNIX Net::DNS::Update Net::SSLeay POSIX Scalar::Util SelectSaver Socket Socket6 Symbol Text::Diff Tie::Hash Time::Local WWW::Curl WWW::Curl::Easy XSLoader autouse base bigint bytes constant integer lib overload parent re strict utf8 vars warnings warnings::register I hope this helps you on debugging. Thanks/regards, Stefan Welscher
-----Ursprüngliche Nachricht----- Von: Peter John Acklam via RT [mailto:bug-Math-BigInt@rt.cpan.org] Gesendet: Dienstag, 21. Februar 2017 14:41 An: Welscher, Stefan Betreff: [rt.cpan.org #120240] Warnings from BigInt.pm: Use of uninitiated value <URL: https://rt.cpan.org/Ticket/Display.html?id=120240 > I have run your program with every combination of Math::BigInt, Math::BigInt::Lite, and bignum that I have installed on my system, and I am not able to reproduce what you are seeing. I tried each version of Math::BigInt from version 1.999701 to version 1.999809 with each version of Math::BigInt::Lite from version 0.03 to version 0.16 with each version of bignum from version 0.05 to 0.47. Perhaps you can run the following script and show me the output. The program displays the name and version of every module that is loaded when the program runs. #!/usr/bin/perl use strict; use warnings; use bigint; printf "%20s %s\n", "Perl", $]; for my $file (sort keys %INC) { my $mod = $file; $mod =~ s|\.pm$||; $mod =~ s|/|::|g; printf "%20s %s\n", $mod, $mod -> VERSION() // 'undef'; } my %testhash = (); my @testarray = (); my $testscalar; print "\nDEBUG:Test hash:\n"; $testhash{test}+=3; print "\nDEBUG:Test array:\n"; $testarray[1]+=3; print "\nDEBUG:Test scalar:\n"; $testscalar+=3; print "FIN\n";
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-20654-1487695939-119.120240-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <RT-Ticket-120240 [...] rt.cpan.org> <e196b9d644274409869d4d7bcb1ac135 [...] HE106162.emea1.cds.t-internal.com> <rt-4.0.18-6618-1487083788-1154.120240-6-0 [...] rt.cpan.org> <4a8038254fb4417f9ba22a53558777de [...] HE106162.emea1.cds.t-internal.com> <rt-4.0.18-6618-1487090575-293.120240-6-0 [...] rt.cpan.org> <rt-4.0.18-23605-1487684482-1316.120240-6-0 [...] rt.cpan.org> <0bca6a967cbc40e8b392db902faeb1e4 [...] HE106162.emea1.cds.t-internal.com> <rt-4.0.18-20654-1487695939-119.120240-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-10129-1487930948-871.120240-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: 545
Download (untitled) / with headers
text/plain 545b
Thank you! With the modified version of the script (the one above) I am now able to reproduce the warnings and the crash. That certainly helps me a lot. Using uninitialized values is generally not a good thing, but Perl itself does not crash (it only gives a warning): # Using an uninitialized value in an arithmetic operation gives a warning: $ perl -Mstrict -wle 'my $x; print $x + 2' Use of uninitialized value $x in addition (+) at -e line 1. 2 # The exit status is zero: $ echo $? 0 I will look further into what is causing the crash.
MIME-Version: 1.0
In-Reply-To: <e196b9d644274409869d4d7bcb1ac135 [...] HE106162.emea1.cds.t-internal.com>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <e196b9d644274409869d4d7bcb1ac135 [...] HE106162.emea1.cds.t-internal.com>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-20403-1488558404-1872.120240-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: 323
Download (untitled) / with headers
text/plain 323b
This is fixed in v1.999810. However, I strongly recommend that you fix your code so it doesn't use uninitialized variables. When the -w switch or the "use warnings" pragma is used, Perl gives a warning when an uninitialized variable is used. I will likely introduce something similar into the Math::BigInt-related modules.


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.