-
Bug
-
Resolution: Fixed
-
P4
-
21, 23
-
Additional system information:
Gcc and g++ compiler version 13.2.1.
OS: linux, CPU architecture: x86
-
b26
-
x86
-
linux
JDK builds with –enable-asan fail displaying the following build log:
Using exact match for CONF=linux-x86_64-server-release (other matches are possible)
Building target 'images' in configuration 'linux-x86_64-server-release'
ERROR: Build failed for target 'images' in configuration 'linux-x86_64-server-release' (exit code 2)
=== Output from failing command(s) repeated here ===
* For target hotspot_variant-server_libjvm_objs_zMarkStack.o:
/home/szaldana/jdk/src/hotspot/share/gc/z/zMarkStack.cpp: In constructor ‘ZMarkStripeSet::ZMarkStripeSet(uintptr_t)’:
/home/szaldana/jdk/src/hotspot/share/gc/z/zMarkStack.cpp:43:17: error: writing 80 bytes into a region of size 8 [-Werror=stringop-overflow=]
43 | _stripes[i] = ZMarkStripe(base);
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
In file included from /home/szaldana/jdk/src/hotspot/share/gc/z/zMarkStack.inline.hpp:27,
from /home/szaldana/jdk/src/hotspot/share/gc/z/zMarkStack.cpp:25:
/home/szaldana/jdk/src/hotspot/share/gc/z/zMarkStack.hpp:57:15: note: destination object ‘ZStackList<ZStack<ZMarkStackEntry, 254> >::_base’ of size 8
57 | uintptr_t _base;
| ^~~~~
/home/szaldana/jdk/src/hotspot/share/gc/z/zMarkStack.cpp:43:17: error: writing 80 bytes into a region of size 8 [-Werror=stringop-overflow=]
43 | _stripes[i] = ZMarkStripe(base);
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/home/szaldana/jdk/src/hotspot/share/gc/z/zMarkStack.hpp:57:15: note: destination object ‘ZStackList<ZStack<ZMarkStackEntry, 254> >::_base’ of size 8
57 | uintptr_t _base;
| ^~~~~
... (rest of output omitted)
* All command lines available in /home/szaldana/jdk/build/linux-x86_64-server-release/make-support/failure-logs.
=== End of repeated output ===
No indication of failed target found.
HELP: Try searching the build log for '] Error'.
HELP: Run 'make doctor' to diagnose build problems.
[Update] I filed a bug with gcc https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114757
Using exact match for CONF=linux-x86_64-server-release (other matches are possible)
Building target 'images' in configuration 'linux-x86_64-server-release'
ERROR: Build failed for target 'images' in configuration 'linux-x86_64-server-release' (exit code 2)
=== Output from failing command(s) repeated here ===
* For target hotspot_variant-server_libjvm_objs_zMarkStack.o:
/home/szaldana/jdk/src/hotspot/share/gc/z/zMarkStack.cpp: In constructor ‘ZMarkStripeSet::ZMarkStripeSet(uintptr_t)’:
/home/szaldana/jdk/src/hotspot/share/gc/z/zMarkStack.cpp:43:17: error: writing 80 bytes into a region of size 8 [-Werror=stringop-overflow=]
43 | _stripes[i] = ZMarkStripe(base);
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
In file included from /home/szaldana/jdk/src/hotspot/share/gc/z/zMarkStack.inline.hpp:27,
from /home/szaldana/jdk/src/hotspot/share/gc/z/zMarkStack.cpp:25:
/home/szaldana/jdk/src/hotspot/share/gc/z/zMarkStack.hpp:57:15: note: destination object ‘ZStackList<ZStack<ZMarkStackEntry, 254> >::_base’ of size 8
57 | uintptr_t _base;
| ^~~~~
/home/szaldana/jdk/src/hotspot/share/gc/z/zMarkStack.cpp:43:17: error: writing 80 bytes into a region of size 8 [-Werror=stringop-overflow=]
43 | _stripes[i] = ZMarkStripe(base);
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/home/szaldana/jdk/src/hotspot/share/gc/z/zMarkStack.hpp:57:15: note: destination object ‘ZStackList<ZStack<ZMarkStackEntry, 254> >::_base’ of size 8
57 | uintptr_t _base;
| ^~~~~
... (rest of output omitted)
* All command lines available in /home/szaldana/jdk/build/linux-x86_64-server-release/make-support/failure-logs.
=== End of repeated output ===
No indication of failed target found.
HELP: Try searching the build log for '] Error'.
HELP: Run 'make doctor' to diagnose build problems.
[Update] I filed a bug with gcc https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114757
- duplicates
-
JDK-8323732 Building with AddressSanitizer enabled fails
- Closed
- relates to
-
JDK-8333578 Fix uses of overaligned types induced by ZCACHE_ALIGNED
- Open