[
https://issues.apache.org/jira/browse/SPARK-50274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated SPARK-50274:
-----------------------------------
Labels: pull-request-available (was: )
> DirectByteBufferOutputStream may crash if used after close
> ----------------------------------------------------------
>
> Key: SPARK-50274
> URL: https://issues.apache.org/jira/browse/SPARK-50274
> Project: Spark
> Issue Type: Bug
> Components: Spark Core
> Affects Versions: 4.0.0
> Reporter: Ankur Dave
> Assignee: Ankur Dave
> Priority: Minor
> Labels: pull-request-available
>
> `DirectByteBufferOutputStream#close()` calls `StorageUtils.dispose()` to free
> its direct byte buffer. This puts the object into an unspecified and
> dangerous state after being closed, and can cause unpredictable JVM crashes
> if it the object is used after close.
> We can make this safer by modifying `close()` to place the object into a
> known-closed state, and modify all methods to assert not closed.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]