bug-gawk
[Top][All Lists]
Advanced

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

Re: Fatal error after pressing [Enter] at the debug prompt


From: arnold
Subject: Re: Fatal error after pressing [Enter] at the debug prompt
Date: Sun, 18 Dec 2022 12:20:48 -0700
User-agent: Heirloom mailx 12.5 7/5/10

Hi.

I have updated README_d/README.macosx, mainly recommending the use of
homebrew or macports. On Intel, I could not find a way to use the readline
library, so I recommend configuring with --without-readline.

The 5.1 configure apparently doesn't find the readline library, which
is why that line is missing and why there's no problem with it.

Thanks,

Arnold

Hermann Peifer <peifer@gmx.eu> wrote:

> Thanks for taking care.
>
> Indeed, the error does not occur when using gawk-5.2.1 from homebrew.
>
> Some more observations below, in case this information would help. As
> mentioned, the "--with-readline" fix works fine with me.
>
> Regards, Hermann
>
> The fatal error does not occur when compiling from gawk-5.0.1 sources.
> However, this version does not generate a .gawk_history file
>
> The error appears from version 5.1.0 onwards. It's config.log has this
> line which I don't see in version 5.0.1:
> #define HAVE_LIBREADLINE 1
>
> Version 5.1.0 generates a history file, which looks a bit different than
> the usual one:
> [gawk-5.1.0]> cat .gawk_history
> _HiStOrY_V2_
> w\040x
> w\040y\040
> w\040z
> r
> n
> n
> q
>
>
> On 15/12/2022 05.13, arnold@skeeve.com wrote:
> > Hi.
> >
> > Thanks for the report. I see the same thing on the GCC Compile Farm's M1.
> > There's not a lot I can do about it, except mention it in the README.macosx
> > file.  I would like to think that the Homebrew people take care of this for
> > their version, so that it's not a problem for most people.
> >
> > FWIW, the same thing happens on Intel systems. But I don't have
> > /opt/homebrew there, not sure what the right solution is other than
> > to configure without readline.
> >
> > Thanks,
> >
> > Arnold
> >
> > Hermann Peifer <peifer@gmx.eu> wrote:
> >
> >> Hi again,
> >>
> >> Here an observation while using Gawk's debugger (in my local git
> >> sandbox, on my M1 Macbook). More info below.
> >>
> >> Regards, Hermann
> >>
> >> ========================
> >>
> >> Configuration Information [Automatically generated, do not change]:
> >> Machine: aarch64
> >> OS: darwin21.6.0
> >> Compiler: gcc
> >> Compilation CFLAGS: -g -O2 -DNDEBUG
> >> uname output: Darwin hal.local 21.6.0 Darwin Kernel Version 21.6.0: Mon
> >> Aug 22 20:20:05 PDT 2022; root:xnu-8020.140.49~2
> >> Machine Type: aarch64-apple-darwin21.6.0
> >>
> >> Gawk Version: 5.2.60
> >>
> >> Attestation 1:
> >>       I have read
> >> https://www.gnu.org/software/gawk/manual/html_node/Bugs.html.
> >>       Yes
> >>
> >> Attestation 2:
> >>       I have not modified the sources before building gawk.
> >>       True
> >>
> >> Description:
> >>       Simply pressing [Enter] at the debug prompt generates a fatal error.
> >>
> >> Repeat-By: Simply pressing [Enter] at the debug prompt
> >>   > ./gawk -D -f test/hello.awk
> >> gawk>
> >> gawk: fatal error: internal error
> >> Abort trap: 6
> >>
> >> Fix:
> >>       The error goes away when configuring like this:
> >> ./configure --with-readline=/opt/homebrew/opt/readline



reply via email to

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