bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] integer comparison/assignment bug


From: arnold
Subject: Re: [bug-gawk] integer comparison/assignment bug
Date: Sun, 01 Apr 2018 11:52:41 -0600
User-agent: Heirloom mailx 12.4 7/29/08

Hi.

Thanks for the report. This is indeed a bug, although I do not
get a crash on my Linux system. I think I have found the cause and
hope to have a fix for it in the next few days.

Thanks!

Arnold

Noah Dean <address@hidden> wrote:

> Good evening!  This is my first time submitting a bug report (for any
> program, not just gawk), so please forgive me if I leave out something
> obvious.  I use gawk almost every day, and I think it's a fantastic tool.
> I would like to thank all of the maintainers and developers for their
> time and effort on this project.
> 
> I've been able to reproduce a consistent bug that causes my gawk to abort.
> Attached are a MWE of a simple data file, simple script, and the dump
> from the crash.  The print command in the 'END' section is not reached.
>
> ------------------------
>
> Details on my systems (I reproduced the bug on two similarly configured 
> systems):
>
> 64-bit Cygwin on Windows 7
>
> $ gawk --version
> GNU Awk 4.2.1, API: 2.0 (GNU MPFR 4.0.1, GNU MP 6.1.2)
>
> ------------------------
>
> A few observations as I was trying to narrow this down:
>
> - It appears to only exist when the '-M' flag is enabled.  Without -M,
>   the script runs successfully and produces the expected minimum result.
> - The behavior is sensitive to seemingly unrelated details.  While adding
>   additional print commands to better see what was going on, the crash
>   stopped, although the script still could not successfully find the
>   minimum.  (It prints blank for min)
> - Forcing the $1 to integer via '+0' before assignment to the min variable
>   also fixes the issue.
>
> ------------------------
>
> If there is any other information I can provide that would be helpful,
> please don't hesitate to let me know.
>
> Best,
>
> Noah Dean



reply via email to

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