You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2024/11/08 23:39:00 UTC

[jira] [Updated] (SPARK-50274) DirectByteBufferOutputStream may crash if used after close

     [ 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org