[
https://issues.apache.org/jira/browse/PDFBOX-6372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18155711#comment-18155711
]
Tilman Hausherr commented on PDFBOX-6372:
-----------------------------------------
There is a second issue:
https://github.com/shinguakira/pdfbox-go/blob/migration-base/go/migration/JAVA-BUGS.md#66-scratchfile-takes-its-two-locks-in-both-orders-and-deadlocks
but I specifically asked Claude for deadlocks ("try harder to check if there
are any deadlocks"), so I hope that the patch fixes that as well.
> ScratchFile.close walks the buffer list without the lock the list has
> ---------------------------------------------------------------------
>
> Key: PDFBOX-6372
> URL: https://issues.apache.org/jira/browse/PDFBOX-6372
> Project: PDFBox
> Issue Type: Sub-task
> Components: IO
> Affects Versions: 2.0.37, 3.0.8 PDFBox
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Priority: Major
> Fix For: 2.0.38, 3.0.9 PDFBox, 4.0.0
>
> Attachments: ScratchFile-close-2.0.patch, ScratchFile-close.patch
>
>
> Because I didn't fully understand the report nor the changes, I asked Claude
> Sonnet for a review on that topic, this can be read here. I also asked to
> create a patch (attached). Additionally it recommends to synchronize
> ScratchFileBuffer.close().
> Chat:
> https://claude.ai/share/a46f0280-f472-4933-8d5d-629829f762f1
> This may or may not explain a problem I observed, during parallel rendering
> tests sometimes it seems to hang for a minute, it's unclear if this is a real
> deadlock, poor performance or just busy.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]