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

serviceability/sa/ClhsdbPmap.java fails when built with Clang

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • hotspot

      The problem seems to be in read_lib_segments (ps_core.c), this check is too harsh:

      ROUNDUP(existing_map->memsz, page_size) != ROUNDUP(lib_php->p_memsz, page_size)

      existing_map->memsz is 0xe24000, while the rhs is 0xe23000. According to the NT_FILE entry, this segment of libjvm.so has a file offset of 0x67f000. It seems that the linker aligned it down according to the page size (0x1000). The offset of the same segment according to "readelf -l libjvm.so" is 0x67fc80. This additional offset should be added to p_memsz to obtain the 0xe24000, which we see in the core dump.

      I see a similar failure was reported in JDK-8337196.

        1. core_notes.txt
          149 kB
        2. jtreg.log
          20 kB
        3. libjvm_sections.txt
          2 kB
        4. mappings.txt
          9 kB

            fandreuzzi Francesco Andreuzzi
            fandreuzzi Francesco Andreuzzi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: