Describe the bug, including details regarding any error messages, version, and platform.
Update: not an Arrow bug - gcc 15.2->16.1 toolchain regression. Diagnosis in #49961 + comment below.
Keeping workaround of #49931's MSYS2 pin step. #49945 stays waiting, parent issue: #49948.
On AMD64 Windows MinGW MINGW64 C++ with MSYS gcc 15.2 -> 16.1 update (post 2026 April 30: mingw-w64-x86_64-gcc-16.1.0-3 and mingw-w64-x86_64-gcc-libs) two tests started failing every run with std::bad_weak_ptr: arrow-dataset-dataset-writer-test and arrow-dataset-file-test. Also affected, with no dataset code involved: arrow-async-utility-test (heap corruption in PushGenerator.Stress), arrow-threading-utility-test (Timeout), ...
CLANG64 C++ (libc++) and gcc 15.2 are unaffected!
Example CI log
[ RUN ] TestFileSystemDataset.MultiThreadedWritePersistsOrder
terminate called after throwing an instance of 'std::bad_weak_ptr'
what(): bad_weak_ptr
...
[ RUN ] DatasetWriterTestFixture.BatchWriteConcurrent
terminate called after throwing an instance of 'std::bad_weak_ptr'
what(): bad_weak_ptr
Component(s)
C++, Continuous Integration
Describe the bug, including details regarding any error messages, version, and platform.
Update: not an Arrow bug - gcc 15.2->16.1 toolchain regression. Diagnosis in #49961 + comment below.
Keeping workaround of #49931's MSYS2 pin step. #49945 stays waiting, parent issue: #49948.
On
AMD64 Windows MinGW MINGW64 C++with MSYS gcc 15.2 -> 16.1 update (post 2026 April 30: mingw-w64-x86_64-gcc-16.1.0-3 and mingw-w64-x86_64-gcc-libs) two tests started failing every run withstd::bad_weak_ptr:arrow-dataset-dataset-writer-testandarrow-dataset-file-test. Also affected, with no dataset code involved:arrow-async-utility-test(heap corruption inPushGenerator.Stress),arrow-threading-utility-test(Timeout), ...CLANG64 C++(libc++) and gcc 15.2 are unaffected!Example CI log
Component(s)
C++, Continuous Integration