ARM: jdk-8 runtime/NMT/MallocStressTest.java crashes with segmentation fault on armhf Ubuntu

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 8
    • Component/s: hotspot
    • arm
    • linux

      When running hotspot tests at tag jdk8u422-b05-aarch32-20240718, hotspot/test/runtime/NMT/MallocStressTest.java fails with the following stack trace:

      Program received signal SIGSEGV, Segmentation fault.
      os::is_first_C_frame (fr=fr@entry=0xfffea48c) at /usr/src/openjdk-8-8u422-b05-1ubuntu1/src/hotspot/src/cpu/aarch32/vm/frame_aarch32.inline.hpp:150
      warning: 150 /usr/src/openjdk-8-8u422-b05-1ubuntu1/src/hotspot/src/cpu/aarch32/vm/frame_aarch32.inline.hpp: No such file or directory
      (gdb) where
      #0 os::is_first_C_frame (fr=fr@entry=0xfffea48c) at /usr/src/openjdk-8-8u422-b05-1ubuntu1/src/hotspot/src/cpu/aarch32/vm/frame_aarch32.inline.hpp:150
      #1 0xf679d6ae in os::current_frame () at /usr/src/openjdk-8-8u422-b05-1ubuntu1/src/hotspot/src/os_cpu/linux_aarch32/vm/os_linux_aarch32.cpp:190
      #2 0xf67a0660 in os::get_native_stack (stack=0xfffea538, frames=frames@entry=4, toSkip=toSkip@entry=1) at /usr/src/openjdk-8-8u422-b05-1ubuntu1/src/hotspot/src/os/posix/vm/os_posix.cpp:84
      #3 0xf676c6f4 in NativeCallStack::NativeCallStack (this=this@entry=0xfffea538, toSkip=toSkip@entry=1, fillStack=fillStack@entry=true)
          at /usr/src/openjdk-8-8u422-b05-1ubuntu1/src/hotspot/src/share/vm/utilities/nativeCallStack.cpp:40
      #4 0xf6447968 in ResourceObj::operator new (type=ResourceObj::C_HEAP, flags=mtCompiler, size=8) at /usr/src/openjdk-8-8u422-b05-1ubuntu1/src/hotspot/src/share/vm/memory/allocation.cpp:88
      #5 ResourceObj::operator new (size=size@entry=8, type=type@entry=ResourceObj::C_HEAP, flags=flags@entry=mtCompiler)
          at /usr/src/openjdk-8-8u422-b05-1ubuntu1/src/hotspot/src/share/vm/memory/allocation.cpp:84
      #6 0xf643d01e in __static_initialization_and_destruction_0 () at /usr/src/openjdk-8-8u422-b05-1ubuntu1/src/hotspot/src/share/vm/c1/c1_LinearScan.cpp:2491
      #7 _GLOBAL__sub_I_c1_LinearScan.cpp(void) () at /usr/src/openjdk-8-8u422-b05-1ubuntu1/src/hotspot/src/share/vm/c1/c1_LinearScan.cpp:6333
      #8 0xf7fd471c in call_init (env=0x4033f0, argv=0xfffeee44, argc=21, l=<optimized out>) at dl-init.c:74
      #9 call_init (l=<optimized out>, argc=21, argv=0xfffeee44, env=0x4033f0) at dl-init.c:26
      #10 0xf7fd47c4 in _dl_init (main_map=0x4034a0, argc=21, argv=0xfffeee44, env=0x4033f0) at dl-init.c:121
      #11 0xf7fd1d9e in __GI__dl_catch_exception (exception=0x0, operate=0xf7fd8d01 <call_dl_init>, args=args@entry=0xfffea760) at dl-catch.c:211
      #12 0xf7fd8e70 in dl_open_worker (a=0xfffea948) at dl-open.c:829
      #13 0xf7fd1d50 in __GI__dl_catch_exception (exception=exception@entry=0xfffea93c, operate=0xf7fd8e11 <dl_open_worker>, args=args@entry=0xfffea948) at dl-catch.c:237
      #14 0xf7fd90fa in _dl_open (file=0xfffeac54 "/build/magic/openjdk-8/build/jdk/lib/arm/client/libjvm.so", mode=-2147483390, caller_dlopen=0xf7faa8c9 <LoadJavaVM+28>, nsid=-2, argc=21,
          argv=0xfffeee44, env=0x4033f0) at dl-open.c:905
      #15 0xf7ee6008 in dlopen_doit (a=0xfffeabac) at dlopen.c:56
      #16 0xf7fd1d50 in __GI__dl_catch_exception (exception=exception@entry=0xfffeab5c, operate=0xf7ee5fb1 <dlopen_doit>, args=args@entry=0xfffeabac) at dl-catch.c:237
      #17 0xf7fd1e1c in _dl_catch_error (objname=0xfffeab84, errstring=0xfffeab88, mallocedp=0xfffeab83, operate=<optimized out>, args=0xfffeabac) at dl-catch.c:256
      #18 0xf7ee5c32 in _dlerror_run (operate=0xf7ee5fb1 <dlopen_doit>, args=args@entry=0xfffeabac) at dlerror.c:138
      #19 0xf7ee60ac in dlopen_implementation (dl_caller=<optimized out>, mode=<optimized out>, file=0xfffeac54 "/build/magic/openjdk-8/build/jdk/lib/arm/client/libjvm.so") at dlopen.c:71
      #20 ___dlopen (file=0xfffeac54 "/build/magic/openjdk-8/build/jdk/lib/arm/client/libjvm.so", mode=<optimized out>) at dlopen.c:81
      #21 0xf7faa8c8 in LoadJavaVM (jvmpath=jvmpath@entry=0xfffeac54 "/build/magic/openjdk-8/build/jdk/lib/arm/client/libjvm.so", ifn=0xfffeac38, ifn@entry=0x62696c2f)
          at /usr/src/openjdk-8-8u422-b05-1ubuntu1/src/jdk/src/solaris/bin/java_md_solinux.c:847
      #22 0xf7fa87f0 in JLI_Launch (argc=<optimized out>, argv=<optimized out>, jargc=jargc@entry=1, jargv=0x622f382d, jargv@entry=0x0, appclassc=appclassc@entry=1, appclassv=appclassv@entry=0x0,
          fullversion=fullversion@entry=0x4006bc "1.8.0_422-8u422-b05-1ubuntu1-b05", dotversion=dotversion@entry=0x4006b8 "1.8", pname=0x4006b0 "java", lname=0x4006a8 "openjdk",
          javaargs=javaargs@entry=0 '\000', cpwildcard=cpwildcard@entry=1 '\001', javaw=javaw@entry=0 '\000', ergo=<optimized out>, ergo@entry=0)
          at /usr/src/openjdk-8-8u422-b05-1ubuntu1/src/jdk/src/share/bin/java.c:253
      #23 0x004004fa in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/openjdk-8-8u422-b05-1ubuntu1/src/jdk/src/share/bin/main.c:125

      $lsb_release --codename
      No LSB modules are available.
      Codename: noble


            Assignee:
            Unassigned
            Reporter:
            Vladimir Petko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: