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

Generate stripped/public pdbs on Windows for jdk images

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 11, 14, 15
    • Fix Version/s: 15
    • Component/s: infrastructure
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      master
    • CPU:
      generic
    • OS:
      windows

      Description

      Currently the JDK bundle on Windows does not contain pdb files (full pdb files are in a separate symbols bundle).
      This leads currently to bad native stack traces e.g. when crashes occur.
      One reason not to deliver the full pdb files might be the large size of these files.

      However there exist also "public" or stripped pdb files on Windows, see :

      https://docs.microsoft.com/en-us/cpp/build/reference/pdbstripped-strip-private-symbols?view=vs-2017

      Those are much smaller (often only 10-20% of the full pdb files) and they offer a good compromise (no "file:linenumber" info in the native stacks but at least the function name+hex-offset is visible)
      to delivering full pdbs in the JDK.

      Example sizes for the currently built full pdbs / stripped pdbs from VS2017 based 64bit build of jdk/jdk :
      jvm.pdb : 73,1 MB / 9,46 MB
      awt.pdb : 7,05 MB / 1,48 MB

      The patch will introduce a new configure option to the build system that gives the builder 3 possibilites. Either ship no debug symbols, public (stripped) pdbs or full pdbs. The option is named '--with-external-symbols-in-bundles' and can have the values 'none', 'public' or 'full'. Default is none.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                clanger Christoph Langer
                Reporter:
                mbaesken Matthias Baesken
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: