<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
Yes, that is the exact same error I get with the backport. I also tried disabling all errors, but I got even more null pointer and use after free warnings. It did result in a runable `./build/linux-x86_64-server-release/images/jdk/bin/java` / JDK, however I
 no longer have confidence in the JDK generated. null pointers make me nervous, use-after-free warnings also make me nervous! Is this something I need to worry about? Or is the JDK still good?<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Aleksey Shipilev <shade@redhat.com><br>
<b>Sent:</b> Thursday, June 16, 2022 12:02 PM<br>
<b>To:</b> Browser <browseria@hotmail.com>; build-dev@openjdk.org <build-dev@openjdk.org><br>
<b>Subject:</b> Re: assembler_x86.cpp:11128:38: error: 'this' pointer is null</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">On 6/16/22 17:56, Browser wrote:<br>
> Thank you for pointing me in the right direction! I tried the backport in pull 152. Unfortunately,
<br>
> it doesn't take care of this problem 🙁<br>
<br>
Are you seeing the same failure?<br>
<br>
I just built the jdk18u on Fedora 36 / GCC 12 and it failed as you described. Then I built jdk18u
<br>
with my backport, and it now fails further down the line:<br>
<br>
* For target hotspot_variant-server_libjvm_objs_zReferenceProcessor.o:<br>
/home/test/shipilev-jdk18u/src/hotspot/share/gc/z/zReferenceProcessor.cpp: In member function
<br>
'oopDesc* ZReferenceProcessor::drop(oop, ReferenceType)':<br>
/home/test/shipilev-jdk18u/src/hotspot/share/gc/z/zReferenceProcessor.cpp:270:22: error: '%s'
<br>
directive argument is null [-Werror=format-overflow=]<br>
   270 |   log_trace(gc, ref)("Dropped Reference: " PTR_FORMAT " (%s)", p2i(reference),
<br>
reference_type_name(type));<br>
       |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
<br>
That one I'll chalk up to not-yet-resolved issue with GCC 12. Mainline does not seem to fail GCC 12
<br>
the same way, but it does fail too.<br>
<br>
Pleasing the newer compiler version is always something in progress. Meanwhile, as usual,
<br>
configuring with --disable-warnings-as-errors helps to demote these warnings to just warnings.<br>
<br>
-- <br>
Thanks,<br>
-Aleksey<br>
<br>
</div>
</span></font></div>
</body>
</html>