sxs-collaboration / spectre

SpECTRE is a code for multi-scale, multi-physics problems in astrophysics and gravitational physics.
https://spectre-code.org
Other
160 stars 189 forks source link

SIGBUS in db::create_from on macOS #2524

Open nilsvu opened 4 years ago

nilsvu commented 4 years ago

Bug reports:

I get a bus error when calling db::create_from with a large amount of simple tags, and running in parallel on 2 or more processors. Splitting the call in two resolves the issue. I haven't investigated this issue any further than this, but noting it down here in case anyone else runs into this problem.

Edit: This seems to be an issue only on macOS.

nilsvu commented 3 years ago

@kidder and I traced this through the DataBox code. This is what we found:

geoffrey4444 commented 2 years ago

On my Apple Silicon Mac, I get a bus error when trying to run SolveXcts on more than one core. Specifically, the error happens when trying to call invoke_iterable_action on the action Actions::SetupDataBox, which does have a call to db::create_from inside it