HDFGroup / vol-async

Asynchronous I/O for HDF5
https://hdf5-vol-async.readthedocs.io
Other
19 stars 13 forks source link

Argobots segfault in MacOS Solution #5

Closed houjun closed 2 years ago

houjun commented 3 years ago

On MacOS, one may encounter the following segfault:

Process received signal Signal: Segmentation fault: 11 (11) Signal code: (0) Failing at address: 0x0 [ 0] 0 libsystem_platform.dylib 0x00007fff20428d7d _sigtramp + 29 [ 1] 0 ??? 0x0000000000000000 0x0 + 0 [ 2] 0 libabt.1.dylib 0x0000000105bdbdc0 ABT_thread_create + 128 [ 3] 0 libh5async.dylib 0x00000001064bde1f push_task_to_abt_pool + 559 [ 4] 0 libh5async.dylib 0x00000001064e6a02 async_group_create + 1890 [ 5] 0 libh5async.dylib 0x00000001064c4061 H5VL_async_group_create + 321 [ 6] 0 libhdf5.1000.dylib 0x0000000105f6f794 H5VL__group_create + 180 [ 7] 0 libhdf5.1000.dylib 0x0000000105f6f569 H5VL_group_create + 217 [ 8] 0 libhdf5.1000.dylib 0x0000000105d48a04 H5G__create_api_common + 660 [ 9] 0 libhdf5.1000.dylib 0x0000000105d485f5 H5Gcreate2 + 325 [10] 0 async_test_parallel.exe 0x0000000105bbcb43 main + 739 [11] 0 libdyld.dylib 0x00007fff203fef5d start + 1 [12] 0 ??? 0x0000000000000001 0x0 + 1

Solution from Argobots developer is setting the following variable before running the application: ABT_THREAD_STACKSIZE=100000 ./your_app.exe

houjun commented 2 years ago

Documented the issue and solution in README.