A minimal c++ code to reproduce the bug is attached. Note that here we
use libopenblas-serial-dev. When testing, maybe the other versions of
openblas can be uninstalled to avoid accidentally linking to them.
To compile:
```
g++ openblas_bug.cc -fopenmp -lopenblas
```
Run with:
```
i=1; while [ $i -le 70 ]; do export OMP_NUM_THREADS=${i}; ./a.out; i=$[$i+1];
done
```
In some of these runs, you will see error messages like "BLAS : Bad
memory unallocation! : 128 0x7fde48000000".
Note that here I tried running the code many times to trigger the bug --
the bad memory unallocation is not triggered every time.
** Attachment added: "c++ file to reproduce the bug"
https://bugs.launchpad.net/ubuntu/+source/openblas/+bug/2100355/+attachment/5861738/+files/openblas_bug.cc
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2100355
Title:
openblas-serial not built in a thread-safe way
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openblas/+bug/2100355/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs