Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 914392 - net-misc/ipcalc-0.42_p2 perl error Deep recursion on subroutine "Math::BigInt::bior"
Summary: net-misc/ipcalc-0.42_p2 perl error Deep recursion on subroutine "Math::BigInt...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on: 914422 919980
Blocks: perl-5.38
  Show dependency tree
 
Reported: 2023-09-18 17:44 UTC by Christophe PEREZ
Modified: 2023-12-16 04:47 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christophe PEREZ 2023-09-18 17:44:29 UTC
Hi,

It seems that ipcalc has now a bug:

# ipcalc 192.168.0.0 - 192.168.255.255
deaggregate 192.168.0.0 - 192.168.255.255
Deep recursion on subroutine "Math::BigInt::bior" at /usr/lib64/perl5/5.38/Math/BigFloat.pm line 3883.
Deep recursion on subroutine "Math::BigFloat::bior" at /usr/lib64/perl5/5.38/Math/BigInt.pm line 3513.
^C

According to https://groups.google.com/g/linux.debian.bugs.dist/c/VMRNGwBRItM?pli=1 it seems to be du to perl.

But I don't know how to solve it.
Comment 1 Christophe PEREZ 2023-09-18 18:08:05 UTC
replacing BigInt and BigFloat perl 5.38 by 5.36 did the trick for me for the moment

# ebuild $(equery which =dev-lang/perl-5.36.1-r3) compile
# cp -a /var/tmp/portage/dev-lang/perl-5.36.1-r3/work/perl-5.36.1/lib/Math/Big[IF]* /usr/lib64/perl5/5.38/Math/
# ebuild $(equery which =dev-lang/perl-5.36.1-r3) clean
Comment 2 Larry the Git Cow gentoo-dev 2023-09-19 05:27:34 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfb01136fd82dc2235a54368f115eb59ca540c41

commit dfb01136fd82dc2235a54368f115eb59ca540c41
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-09-19 05:26:00 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-09-19 05:26:00 +0000

    virtual/perl-Math-BigInt: add 1.999.838
    
    Bug: https://bugs.gentoo.org/914392
    Signed-off-by: Sam James <sam@gentoo.org>

 virtual/perl-Math-BigInt/perl-Math-BigInt-1.999.838.ebuild | 13 +++++++++++++
 1 file changed, 13 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c13dc7384923184292df961d24d5f82fbd123873

commit c13dc7384923184292df961d24d5f82fbd123873
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-09-19 01:13:05 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-09-19 05:24:47 +0000

    perl-core/Math-BigInt: new package, add 1.999.838
    
    Fished out from 43f46bf3bb3a914898b04cb0a29736849d8f094a.
    
    Bug: https://bugs.gentoo.org/914392
    Signed-off-by: Sam James <sam@gentoo.org>

 perl-core/Math-BigInt/Manifest                     |  1 +
 perl-core/Math-BigInt/Math-BigInt-1.999.838.ebuild | 36 ++++++++++++++++++++++
 perl-core/Math-BigInt/metadata.xml                 | 16 ++++++++++
 3 files changed, 53 insertions(+)
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-19 05:28:33 UTC
(In reply to Christophe PEREZ from comment #1)
> replacing BigInt and BigFloat perl 5.38 by 5.36 did the trick for me for the
> moment
> 
> # ebuild $(equery which =dev-lang/perl-5.36.1-r3) compile
> # cp -a
> /var/tmp/portage/dev-lang/perl-5.36.1-r3/work/perl-5.36.1/lib/Math/Big[IF]*
> /usr/lib64/perl5/5.38/Math/
> # ebuild $(equery which =dev-lang/perl-5.36.1-r3) clean

Please make sure you cleanup any orphaned files as a result too (i.e. a re-emerge isn't guaranteed to clean up files which aren't installed by the new version).

Thank you for the report & investigation!
Comment 4 Larry the Git Cow gentoo-dev 2023-12-15 08:11:41 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7dbe081c7f381eea7981f6abd43dde5dccbf03dc

commit 7dbe081c7f381eea7981f6abd43dde5dccbf03dc
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-12-15 08:10:11 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-12-15 08:10:11 +0000

    virtual/perl-Math-BigInt: add 1.999.842
    
    Bug: https://bugs.gentoo.org/919888
    Bug: https://bugs.gentoo.org/914392
    Signed-off-by: Sam James <sam@gentoo.org>

 virtual/perl-Math-BigInt/perl-Math-BigInt-1.999.842.ebuild | 13 +++++++++++++
 1 file changed, 13 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=957095610b31869a336b66d9b6c7ddfca8db28c1

commit 957095610b31869a336b66d9b6c7ddfca8db28c1
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-12-15 08:09:32 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-12-15 08:09:32 +0000

    perl-core/Math-BigInt: add 1.999.842
    
    Bug: https://bugs.gentoo.org/919888
    Bug: https://bugs.gentoo.org/914392
    Signed-off-by: Sam James <sam@gentoo.org>

 perl-core/Math-BigInt/Manifest                     |  1 +
 perl-core/Math-BigInt/Math-BigInt-1.999.842.ebuild | 36 ++++++++++++++++++++++
 2 files changed, 37 insertions(+)
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-15 08:14:39 UTC
Christophe, was this fixed or did I imagine it? (did the first commits above from September work?)

I feel like you would've said if the fix hadn't worked, but it's so weird it came up again in bug 919888.

Anyway, let's hope it's sorted now. Cheers!
Comment 6 Christophe PEREZ 2023-12-15 14:22:23 UTC
(In reply to Sam James from comment #5)
> Christophe, was this fixed or did I imagine it? (did the first commits above
> from September work?)

In fact, the bug had been closed, I no longer had the problem, so I considered it resolved.

> I feel like you would've said if the fix hadn't worked, but it's so weird it
> came up again in bug 919888.

This thing is really weird

> Anyway, let's hope it's sorted now. Cheers!

fingers crossed
Comment 7 Joseph 2023-12-15 18:34:19 UTC
(In reply to Christophe PEREZ from comment #6)
> (In reply to Sam James from comment #5)
> > Christophe, was this fixed or did I imagine it? (did the first commits above
> > from September work?)
> 
> In fact, the bug had been closed, I no longer had the problem, so I
> considered it resolved.
> 
> > I feel like you would've said if the fix hadn't worked, but it's so weird it
> > came up again in bug 919888.
> 
> This thing is really weird
> 
> > Anyway, let's hope it's sorted now. Cheers!
> 
> fingers crossed

So what is the solution? My system us up-to-date, updated two days ago.
Comment 8 Larry the Git Cow gentoo-dev 2023-12-16 04:46:15 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86447c52f21cc44e4b86b44695a53bfb75c6c915

commit 86447c52f21cc44e4b86b44695a53bfb75c6c915
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-12-16 04:40:37 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-12-16 04:45:08 +0000

    dev-lang/perl: PDEPEND on >=virtual/perl-Math-BigInt-1.999.842
    
    We need this to fix the modules included with Perl itself. I think this
    explains (or partly explains) how bug #914392 came back from the dead too.
    
    We can clean this PDEPEND up (and possibly a bunch of the others, actually)
    once a new Perl release is made containing newer versions of these (or perhaps
    Perl should PDEPEND on newer virtual/* for all of these to always pull in
    updates, actually.)
    
    We can't just add this dep in ipcalc because it only uses `bignum` directly,
    which is distinct from Math::BigInt.
    
    Bug: https://bugs.gentoo.org/914392
    Closes: https://bugs.gentoo.org/919888
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-lang/perl/{perl-5.38.2.ebuild => perl-5.38.2-r1.ebuild} | 1 +
 1 file changed, 1 insertion(+)
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-16 04:47:30 UTC
(In reply to Christophe PEREZ from comment #6)
> (In reply to Sam James from comment #5)
> > Christophe, was this fixed or did I imagine it? (did the first commits above
> > from September work?)
> 
> In fact, the bug had been closed, I no longer had the problem, so I
> considered it resolved.
> 
> > I feel like you would've said if the fix hadn't worked, but it's so weird it
> > came up again in bug 919888.
> 
> This thing is really weird
> 
> > Anyway, let's hope it's sorted now. Cheers!
> 
> fingers crossed

Thank you for confirming!