tadeja commented on PR #49961:
URL: https://github.com/apache/arrow/pull/49961#issuecomment-4429802606

   Both failing tests throw `bad_weak_ptr` at the same [line 
dataset_writer.cc:212 
DatasetWriterFileQueue::ScheduleBatch](https://github.com/tadeja/arrow/blob/c3d2f5eca82cb21ada18bf96318ca2ddbf35dbe8/cpp/src/arrow/dataset/dataset_writer.cc#L212):
   ```c++
     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
   ```shell
   [ 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 sec
   ```
   
   
https://github.com/apache/arrow/actions/runs/25690826182/job/75426470835#step:12:794
   ```shell
   [ 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
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to