bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gawk] Occasional overflow with gmp


From: arnold
Subject: Re: [bug-gawk] Occasional overflow with gmp
Date: Sat, 19 Oct 2019 20:47:20 -0600
User-agent: Heirloom mailx 12.5 7/5/10

Please report this to the GMP bug list.  It's not anything I can fix.

Thanks,

Arnold

James Milne <address@hidden> wrote:

> `awk -V`
>
> > GNU Awk 5.0.1, API: 2.0 (GNU MPFR 4.0.2, GNU MP 6.1.2)
>
>
> Problem seems to be an occasional overflow with gmp.
>
>
> This works as expected:
>
> > echo '' | awk -M '{print 200000000000000000000000000000000000000000 *
> 200000000000000000000000000000000000000000 ^ 20000000000000000000}'
>
> > +inf
>
>
> This crashes:
>
> > echo '' | awk -M '{print 200000000000000000000000000000000000000000 *
> 200000000000000000000000000000000000000000 ^ 2000000000000000000}'
>
> > gmp: overflow in mpz type
> > breaking.awk: line 3: 197234 Done                    echo ''
> >     197235 Aborted                 (core dumped) | awk -M '{print
> 200000000000000000000000000000000000000000 *
> 200000000000000000000000000000000000000000 ^ 2000000000000000000}'
>
>
> Should be noted the crash is a slightly smaller number than the larger.
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]