GH-49958: [C++][Dataset] DEBUG: log shared_from_this() callsite throwing bad_weak_ptr#49961
GH-49958: [C++][Dataset] DEBUG: log shared_from_this() callsite throwing bad_weak_ptr#49961tadeja wants to merge 4 commits into
Conversation
|
|
|
Both failing tests throw void ScheduleBatch(std::shared_ptr<RecordBatch> batch) {
file_tasks_->AddSimpleTask(
[self = SfwDbg(__LINE__) /* was shared_from_this() */, batch = std::move(batch)]() {
return self->WriteNext(std::move(batch));
},
"DatasetWriter::WriteBatch"sv);
}https://github.com/apache/arrow/actions/runs/25690826182/job/75426470835#step:12:614 [ RUN ] DatasetWriterTestFixture.BatchWriteConcurrent
GH-49958: bad_weak_ptr DatasetWriterFileQueue dataset_writer.cc:212
terminate called after throwing an instance of 'std::bad_weak_ptr'
what(): bad_weak_ptr
Start 62: arrow-dataset-dataset-writer-test
Test #62: arrow-dataset-dataset-writer-test ............Exit code 0xc0000374***Exception: 0.34 sechttps://github.com/apache/arrow/actions/runs/25690826182/job/75426470835#step:12:794 [ RUN ] TestFileSystemDataset.MultiThreadedWritePersistsOrder
GH-49958: bad_weak_ptr DatasetWriterFileQueue dataset_writer.cc:212
terminate called after throwing an instance of 'std::bad_weak_ptr'
what(): bad_weak_ptr
Start 65: arrow-dataset-file-test
Test #65: arrow-dataset-file-test ......................***Exception: SegFault 0.20 sec |
|
Diagnosed - The [ RUN ] DatasetWriterTestFixture.BatchWriteConcurrent
GH-49958: ScheduleBatch this=000002f3e2fda080 EXPIRED use_count=0
GH-49958: bad_weak_ptr DatasetWriterFileQueue dataset_writer.cc:218
terminate called after throwing an instance of 'std::bad_weak_ptr'
what(): bad_weak_ptr( (1) It's not the |
Rationale for this change
Debug #49958
What changes are included in this PR?
Only debug for now.
Are these changes tested?
CI debug
Are there any user-facing changes?
No