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

StackGuardPages test doesn't build with glibc 2.34

    XMLWordPrintable

Details

    • b12
    • linux

    Backports

      Description

        All OpenJDK versions fail to build with glibc 2.34 (this version in the current Fedora and Ubuntu development releases):


        /<<PKGBUILDDIR>>/test/hotspot/jtreg/runtime/StackGuardPages/exeinvoke.c: In
        function 'set_signal_handler':
        /<<PKGBUILDDIR>>/test/hotspot/jtreg/runtime/StackGuardPages/exeinvoke.c:72:15:
        error: storage size of 'altstack' isn't constant
            72 | static char altstack[SIGSTKSZ];
               | ^~~~~~~~
        gmake[4]: *** [test/JtregNativeHotspot.gmk:1525:
        /<<PKGBUILDDIR>>/build/support/test/hotspot/jtreg/native/support/exeinvoke/exeinvoke.o]
        Error 1

        caused by an intentional change in glibc 2.34:

        * Add _SC_MINSIGSTKSZ and _SC_SIGSTKSZ. When _DYNAMIC_STACK_SIZE_SOURCE
          or _GNU_SOURCE are defined, MINSIGSTKSZ and SIGSTKSZ are no longer
          constant on Linux. MINSIGSTKSZ is redefined to sysconf(_SC_MINSIGSTKSZ)
          and SIGSTKSZ is redefined to sysconf (_SC_SIGSTKSZ). This supports
          dynamic sized register sets for modern architectural features like
          Arm SVE.

        Attachments

          Issue Links

            Activity

              People

                dholmes David Holmes
                doko Matthias Klose
                Votes:
                0 Vote for this issue
                Watchers:
                16 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: