Suggestion needed to port the fix to JDK17 and JDK11

Shruthi Shruthi1 Shruthi.Shruthi1 at ibm.com
Wed Aug 23 14:16:47 UTC 2023


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 <Alan.Bateman at oracle.com>
Sent: Monday, August 21, 2023 10:55 PM
To: Shruthi Shruthi1 <Shruthi.Shruthi1 at ibm.com>; net-dev at openjdk.org <net-dev at openjdk.org>
Cc: Syed Moinudeen1 <smoinud1 at in.ibm.com>
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/net-dev/attachments/20230823/1e2b5ed7/attachment.htm>


More information about the net-dev mailing list