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

Possible out of bounds access in print_pointer_information

    XMLWordPrintable

Details

    • b23

    Backports

      Description

        Currently the gtests
        gtest/GTestWrapper.java
        gtest/NMTGtests.java#nmt-detail
        gtest/NMTGtests.java#nmt-summary

        crash on AIX. Crashes look like this :

        #
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # SIGSEGV (0xb) at pc=0x090000000bbaa898, pid=16712006, tid=258
        #
        # JRE version: OpenJDK Runtime Environment (21.0) (build 21-internal-adhoc.openjdk.jdk-dev)
        # Java VM: OpenJDK 64-Bit Server VM (21-internal-adhoc.openjdk.jdk-dev, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, aix-ppc64)
        # Problematic frame:
        # V [libjvm.so+0xffffffff] MallocTracker::print_pointer_information(void const*, outputStream*)+0xb8
        #
        # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
        #
         
        --------------- S U M M A R Y ------------
         
        Command Line: -XX:+ExecutingUnitTests -XX:NativeMemoryTracking=detail
         
        Host: PV_8_Compat, 24 cores, 96G, 2 7
        Time: Wed Apr 12 23:19:00 2023 CEST elapsed time: 0.995633 seconds (0d 0h 0m 0s)
         
        --------------- T H R E A D ---------------
         
        Current thread (0x00000001102bc0a0): JavaThread "main" [_thread_in_native, id=258, stack(0x0000000110093000,0x0000000110294888)]
         
        Stack: [0x0000000110093000,0x0000000110294888], sp=0x0000000110293880, free space=2050k
        Native frame:
        iar: 0x090000000bbaa898 libjvm.so::MallocTracker::print_pointer_information(void const*, outputStream*)+0xb8 (C++ saves_lr stores_bc gpr_saved:13 fixedparms:2 )
        lr: 0x090000000bbaa88c libjvm.so::MallocTracker::print_pointer_information(void const*, outputStream*)+0xac (C++ saves_lr stores_bc gpr_saved:13 fixedparms:2 )
        sp: 0x0000000110293880 (base - 0x1008)
        rtoc: 0x08001000a049a700
        |---stackaddr----| |----lrsave------|: <function name>
        0x0000000110293990 - 0x090000000bba46e0 libjvm.so::_ZN10MemTracker23print_containing_regionEPKvP12outputStream@AF130_13+0x20 (C++ saves_lr stores_bc gpr_saved:2 fixedparms:2 )
        0x0000000110293a10 - 0x090000000d4ddbd0 libjvm.so::test_pointer(void const*, bool, char const*)+0x90 (C++ saves_lr stores_bc gpr_saved:14 fixedparms:3 parmsonstk:1)
        0x0000000110293f60 - 0x090000000d4de770 libjvm.so::NMT_location_printing_mmap_2_vm_Test::TestBody()+0x70 (C++ saves_lr stores_bc gpr_saved:3 fixedparms:1 )
        0x0000000110293ff0 - 0x090000000b4e24b4 libjvm.so::void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*)+0x174 (C++ saves_lr stores_bc gpr_saved:5 fixedparms:4 )
        0x0000000110294090 - 0x090000000b4e20a8 libjvm.so::testing::Test::Run()+0x308 (C++ saves_lr stores_bc gpr_saved:10 fixedparms:1 )
        0x0000000110294160 - 0x090000000b4e4de8 libjvm.so::testing::TestInfo::Run()+0x528 (C++ saves_lr stores_bc gpr_saved:14 fixedparms:1 )
        0x0000000110294280 - 0x090000000b4e7598 libjvm.so::testing::TestSuite::Run()+0x718 (C++ saves_cr saves_lr stores_bc gpr_saved:10 fixedparms:1 )
        0x0000000110294380 - 0x090000000b5074a8 libjvm.so::testing::internal::UnitTestImpl::RunAllTests()+0x7a8 (C++ saves_cr saves_lr stores_bc gpr_saved:18 fixedparms:1 )
        0x0000000110294570 - 0x090000000b506c2c libjvm.so::testing::UnitTest::Run()+0x40c (C++ saves_lr stores_bc gpr_saved:9 fixedparms:1 )
        0x0000000110294670 - 0x090000000b463504 libjvm.so::IPRA.$_ZL17runUnitTestsInneriPPc+0x224 (C++ saves_lr stores_bc gpr_saved:9 fixedparms:2 parmsonstk:1)
        0x0000000110294730 - 0x090000000b4632a0 libjvm.so::thread_wrapper+0x20 (C++ saves_lr stores_bc fixedparms:1 )
        0x00000001102947a0 - 0x090000000054bfec libpthreads.a::_pthread_body+0xec (C saves_lr stores_bc gpr_saved:1 fixedparms:1 )
        0x0000000110294820 - 0x0000000000000000
        *** end of backchain ***

        Attachments

          Issue Links

            Activity

              People

                tobermeier Thomas Obermeier
                mbaesken Matthias Baesken
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: