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

ARM32 execution is broken after JDK-8320278

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4
    • tbd
    • 22
    • hotspot
    • 22

    Description


      Oracle does not support this platform so has only provided cross compilation support. The rest of the build/execution needs to be completed by OpenJDK contributors that support that platform.

      After the fix ARM32 build fails with the following error:
      ---
      Optimizing the exploded image
      /usr/bin/bash: line 1: 263082 Segmentation fault (core dumped) /opt/jdk/build/linux-arm-server-release/jdk/bin/java -Xms64M -Xmx768M -cp /opt/jdk/build/linux-arm-server-release/buildtools/tools_jigsaw_classes --add-exports java.base/jdk.internal.module=ALL-UNNAMED build.tools.jigsaw.AddPackagesAttribute /opt/jdk/build/linux-arm-server-release/jdk > >(/usr/bin/tee -a /opt/jdk/build/linux-arm-server-release/jdk/_optimize_image_exec.log) 2> >(/usr/bin/tee -a /opt/jdk/build/linux-arm-server-release/jdk/_optimize_image_exec.log 1>&2)
      gmake[3]: *** [ExplodedImageOptimize.gmk:41: /opt/jdk/build/linux-arm-server-release/jdk/_optimize_image_exec.marker] Error 139
      gmake[2]: *** [make/Main.gmk:500: exploded-image-optimize] Error 2

      ERROR: Build failed for target 'default (exploded-image)' in configuration 'linux-arm-server-release' (exit code 2)
      -----

      See also https://buildd.debian.org/status/fetch.php?pkg=openjdk-22&arch=armhf&ver=22~25ea-1&stamp=1700823506&raw=0

      Failing command:
      ---
      /opt/jdk/build/linux-arm-server-release/jdk/bin/java -Xms64M -Xmx768M -cp /opt/jdk/build/linux-arm-server-release/buildtools/tools_jigsaw_classes --add-exports java.base/jdk.internal.module=ALL-UNNAMED build.tools.jigsaw.AddPackagesAttribute /opt/jdk/build/linux-arm-server-release/jdk
      ---

      Stack trace:
      ------
      Thread 2 "java" received signal SIGSEGV, Segmentation fault.
      [Switching to Thread 0xf7e4c420 (LWP 263153)]
      constantPoolHandle::constantPoolHandle (obj=0x0, thread=0x0, this=0xf7e4c718) at src/hotspot/share/runtime/handles.inline.hpp:77
      77 src/hotspot/share/runtime/handles.inline.hpp: No such file or directory.
      (gdb) where
      #0 constantPoolHandle::constantPoolHandle (obj=0x0, thread=0x0, this=0xf7e4c718) at src/hotspot/share/runtime/handles.inline.hpp:77
      #1 FieldStreamBase::FieldStreamBase (limit=<optimized out>, start=0, constants=0x0, fieldinfo_stream=0xc201c498, this=0xf7e4c704)
          at src/hotspot/share/oops/fieldStreams.inline.hpp:36
      #2 JavaFieldStream::JavaFieldStream (k=0x0, this=0xf7e4c704) at src/hotspot/share/oops/fieldStreams.hpp:142
      #3 InstanceKlass::find_local_field (this=0x0, this@entry=0xc200ee10, name=name@entry=0xc423a504, sig=0x0, sig@entry=0xc423a544, fd=0x0, fd@entry=0xf7e4c944)
          at src/hotspot/share/oops/instanceKlass.cpp:1665
      #4 0xf77bbbc6 in InstanceKlass::find_field (this=0xc200ee10, name=0xc423a504, sig=0xc423a544, fd=0xf7e4c944) at src/hotspot/share/oops/instanceKlass.cpp:1699
      #5 0xf792abe4 in LinkResolver::resolve_field (fd=..., link_info=..., byte=Bytecodes::_nop, byte@entry=Bytecodes::_putstatic, initialize_class=false,
          initialize_class@entry=true, __the_thread__=__the_thread__@entry=0xf7217b48) at src/hotspot/share/interpreter/linkResolver.cpp:975
      #6 0xf792b12a in LinkResolver::resolve_field_access (fd=..., pool=..., index=index@entry=10, method=..., byte=byte@entry=Bytecodes::_putstatic,
          __the_thread__=__the_thread__@entry=0xf7217b48) at src/hotspot/share/interpreter/linkResolver.cpp:955
      #7 0xf77ce99a in InterpreterRuntime::resolve_get_put (current=0xf7217b48, bytecode=bytecode@entry=Bytecodes::_putstatic)
          at src/hotspot/share/interpreter/interpreterRuntime.cpp:668
      #8 0xf77cf140 in InterpreterRuntime::resolve_from_cache (current=0xf7217b48, bytecode=Bytecodes::_putstatic)
          at src/hotspot/share/interpreter/interpreterRuntime.cpp:968
      #9 0xf520dbb4 in ?? ()
      Backtrace stopped: previous frame identical to this frame (corrupt stack?)
      -----


      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              coleenp Coleen Phillimore
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: