[
https://issues.apache.org/jira/browse/SPARK-50274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hyukjin Kwon resolved SPARK-50274.
----------------------------------
Fix Version/s: 4.0.0
Resolution: Fixed
Issue resolved by pull request 48807
[https://github.com/apache/spark/pull/48807]
> 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
> Fix For: 4.0.0
>
>
> `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]