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