GRIB.jl
GRIB.jl copied to clipboard
Thread safety
Hi,
GRIB.jl doesn't appear to be thread safe, when parsing multiple files on different threads this error is thrown:
fatal flex scanner internal error--end of buffer missed
Rusty
Is there any chance you could provide a minimum working example that causes the error (in Julia)? I'm pretty sure the problem is that eccodes_jll isn't built with threading enabled. I have a recipe to fix that, but I want to make sure that fixes the error before I upload the new build recipe to Yggdrasil. I understand that threading bugs tend to be non-deterministic, so it could not be possible to write a test that catches the error.
I merged the new build recipe to Yggdrasil that explicitly enables threading, so hopefully that fixes the problem.