You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "andygrove (via GitHub)" <gi...@apache.org> on 2025/08/12 18:29:03 UTC
[I] Memory corruption due to unsafe use of mutable buffers [datafusion-comet]
andygrove opened a new issue, #2131:
URL: https://github.com/apache/datafusion-comet/issues/2131
### Describe the bug
During testing of the Iceberg integration, we ran into memory corruption issues caused by unsafe reuse of mutable buffers.
In one example, the following plan has a `SortExec`, which caches batches, but the batches are coming from a `ScanExec` which reuses the underlying buffers. There is a `CopyExec` in the plan, but it uses the mode `UnpackOrClone` rather than `UnpackOrDeepCopy`.
```
SortExec: expr=[col_0@0 ASC, col_2@2 ASC], preserve_partitioning=[false]
CopyExec [UnpackOrClone]
FilterExec: col_0@0 IS NOT NULL
ScanExec: source=[CometBatchScan testhadoop.default.table (unknown)], schema=[col_0: Int64, col_1: Int32, col_2: Timestamp(Microsecond, Some("UTC"))]
```
This issue is to track the work of reviewing this issue again and writing better internal documentation and improving testing.
### Steps to reproduce
_No response_
### Expected behavior
_No response_
### Additional context
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] [iceberg] Memory corruption due to unsafe reuse of mutable buffers [datafusion-comet]
Posted by "andygrove (via GitHub)" <gi...@apache.org>.
andygrove closed issue #2131: [iceberg] Memory corruption due to unsafe reuse of mutable buffers
URL: https://github.com/apache/datafusion-comet/issues/2131
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] [iceberg] Memory corruption due to unsafe reuse of mutable buffers [datafusion-comet]
Posted by "andygrove (via GitHub)" <gi...@apache.org>.
andygrove commented on issue #2131:
URL: https://github.com/apache/datafusion-comet/issues/2131#issuecomment-3202337015
Fixed in https://github.com/apache/datafusion-comet/pull/2156
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org