Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#77710 - [jdk-openjdk] missing symbols while package

Attached to Project: Arch Linux
Opened by Shi Zhan (eshizhan) - Friday, 03 March 2023, 07:36 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:18 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Levente Polyak (anthraxx)
freswa (frederik)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


The jdk package missing all symbols, makes some features failed:
jhsdb tools failed, running `jhsdb jmap --heap --pid PID`, throw exception.

Can not debug using gdb, can not found symbols in async-profiler.
same problem I think here:  FS#60955

The reason is we package jdk striped symbols by makepkg default behavior, to keep it by
add `!strip` to `options`, finally changed: `options=(!lto !strip)`

Additional info:
* all jdk current version(8, 11, 17, 19)

Steps to reproduce:
`gdb $JAVA_HOME/lib/server/ -ex 'info address UseG1GC'`
`jhsdb jmap --heap --pid PID`
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:18 GMT
Reason for closing:  Moved
Additional comments about closing: ackaging/packages/java-openjdk/issues/6