JDK-8307210 : Dangling reference warnings for harfbuzz
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 20,21
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2023-05-02
  • Updated: 2023-05-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Relates :  
Relates :  
Description
When compiling with gcc13.1 we get a large number (>500) `-Wdangling-reference` warnings from harfbuzz code. Many appear to be duplicates, so the actual number of places in the code triggering these warnings is much smaller.

Given that harfbuzz seems to be working fine, it's possible these are all false positives. `-Wdangling-reference` warnings are new in this (gcc13.1) newly released version, and it may be there are still bugs in gcc's analysis to be worked out.

Comments
Perhaps that is what we've done in the past.... We should revisit this after the upcoming hb upgrade which will happen this side of RDP 1.
03-05-2023