Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8330047

ASAN build error with gcc 13

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • 21, 23
    • hotspot
    • Additional system information: 
      Gcc and g++ compiler version 13.2.1. 
      OS: linux, CPU architecture: x86

    • gc
    • 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

            szaldana Sonia Zaldana Calles
            szaldana Sonia Zaldana Calles
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: