bug-gawk
[Top][All Lists]
Advanced

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

Fwd: ERROR: AddressSanitizer: heap-buffer-overflow


From: Hermann Peifer
Subject: Fwd: ERROR: AddressSanitizer: heap-buffer-overflow
Date: Fri, 14 Oct 2022 10:26:23 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.3.1

Hi again,

In the unlikely case that it could be helpful, here some error messages
which occasionally occur after Terence suggested some days ago to add
sanitizers to the build configuration.

Terence meant that I should fw the attached errors to bug-gawk, which I
hesitated to do, as I can't reproduce them reliably.

Hermann

-------- Forwarded Message --------
Subject: ERROR: AddressSanitizer: heap-buffer-overflow
Date: Thu, 13 Oct 2022 22:33:22 +0200
From: Hermann Peifer <peifer@gmx.eu>
To: Terence Kelly <tpkelly@eecs.umich.edu>

Hi Terence,

I have seen the attached ERROR messages a couple of times during the
last days, but can't reproduce them in any reliable way. It just happens
occasionally that the 2nd run of the pma test does'nt hang endlessly,
but exits immediately with the attached error message.

I thought it is the combination of using sanitizers and configure option
--with-mpfr. But this is not the case. About 1 out of 10 builds and
subsequent make check runs ends like this, rather than ending with the
hanging pma test. Just in case you can make some sense out of the
"heap-buffer-overflow" stuff, I can't.

Disclaimer: the present mail might be the most unhelpful error report I
made during this year.

Hermann

[0] my local modification of configure.ac and configure
diff --git a/configure b/configure
index cf805142..64c580eb 100755
--- a/configure
+++ b/configure
@@ -7106,7 +7106,7 @@ printf "%s\n" "yes" >&6; }
  else
         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  printf "%s\n" "no" >&6; }
-       CFLAGS="$CFLAGS -DNDEBUG"       # turn off assertions
+       CFLAGS="$CFLAGS"        # don't turn off assertions
  fi

[1] build configuration
make distclean && rm -f test/test.pma test/_pma && CFLAGS="-g -O0
-fsanitize=address,undefined -fsanitize-undefined-trap-on-error"
./configure --with-mpfr=$(brew --prefix) && make -j && make check

Attachment: _pma.35512.txt
Description: Text document

Attachment: _pma.96280.txt
Description: Text document

Attachment: _pma.26683.txt
Description: Text document


reply via email to

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