bug-gnucobol
[Top][All Lists]
Advanced

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

gnucobol-3.1-rc1 and UBsan finding


From: Jeffrey Walton
Subject: gnucobol-3.1-rc1 and UBsan finding
Date: Mon, 13 Jul 2020 19:36:18 -0400

Hi Everyone,

Here's the result of a 'make check' when using '-fsanitize=undefined
-fno-sanitize-recover=all'. It looks like there is one new failure.

This is a good result. I usually see a lot more UBsan findings.

...
993: System routine CBL_EQ                           ok
994: System routine CBL_GC_GETOPT                    FAILED
(run_extensions.at:4292)
995: System routine CBL_GC_FORK                      ok


$ cat gnucobol-3.1-rc1/tests/testsuite.dir/0994/testsuite.log
#                             -*- compilation -*-
994. run_extensions.at:3874: testing System routine CBL_GC_GETOPT ...
./run_extensions.at:4291: $COMPILE prog.cob
./run_extensions.at:4292: $COBCRUN_DIRECT ./prog --version --verbose -jkl
--- /dev/null    2020-07-10 09:37:43.139999945 -0400
+++ 
/home/jwalton/Build-Scripts/gnucobol-3.1-rc1/tests/testsuite.dir/at-groups/994/stderr
   2020-07-13 19:31:08.042245440 -0400
@@ -0,0 +1,4 @@
+/home/jwalton/tmp/cob11730_0.c:372:54: runtime error: store to
misaligned address 0x564ae611a97a for type 'unsigned char *', which
requires 8 byte alignment
+0x564ae611a97a: note: pointer points here
+ 20 20  20 30 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00
00 00 00 00  00 00 00 00 00 00
+              ^
./run_extensions.at:4292: exit code was 1, expected 0
994. run_extensions.at:3874: 994. System routine CBL_GC_GETOPT
(run_extensions.at:3874): FAILED (run_extensions.at:4292)

Jeff



reply via email to

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