Hi Alan., We are seeing the issue in AIX 7.2 and Java 11.0.11+9. And SO_LINGER is not enabled.
Thanks Shruthi ________________________________ From: Alan Bateman <[email protected]> Sent: Monday, August 21, 2023 10:55 PM To: Shruthi Shruthi1 <[email protected]>; [email protected] <[email protected]> Cc: Syed Moinudeen1 <[email protected]> Subject: [EXTERNAL] Re: Suggestion needed to port the fix to JDK17 and JDK11 On 21/08/2023 17: 28, Shruthi Shruthi1 wrote: The preClose() method internally calls the dup2() system call. If there is a dup2() call on a file descriptor on a thread while another thread is blocked in a read/write operation on the same file ZjQcmQRYFpfptBannerStart This Message Is From an External Sender This message came from outside your organization. <https://us-phishalarm-ewt.proofpoint.com/EWT/v1/PjiDSg!2c-hA57_IBmaGoYbOIuFrV0W1Mt2z4xvKmBMvyO9s1eaEYOakuP3J5zp-ErdZEe6ZklbgGeI1NRiu0ViTVBKh8YiNf1gKcorswcLMw$> Report Suspicious ZjQcmQRYFpfptBannerEnd On 21/08/2023 17:28, Shruthi Shruthi1 wrote: The preClose() method internally calls the dup2() system call. If there is a dup2() call on a file descriptor on a thread while another thread is blocked in a read/write operation on the same file descriptor, then the dup2() call is known to hang. Currently, preClose() experiences a hang because we call dup2() before killing the reader/writer thread(s). The JDK has a lot of tests for async close so if dup2 is hanging then I would expect at least some test failure. Which operating system (and version) is still happening on? Do you know SO_LINGER has been enabled? -Alan
