octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #61742] Crash on exit from threading


From: Arun Giridhar
Subject: [Octave-bug-tracker] [bug #61742] Crash on exit from threading
Date: Thu, 30 Dec 2021 11:42:35 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0

Follow-up Comment #11, bug #61742 (project octave):

I solved the problem. It turned out the distro was automatically adding
"USE_TLS=1" to the OpenBlas settings, which stands for "thread-local storage"
as opposed to a central memory buffer. That setting alone was responsible for
the segfaults on exit. Removing that setting solved the problem.

Now there is no crash on exit:

octave:1> version -blas
ans = OpenBLAS (config: OpenBLAS 0.3.19 NO_AFFINITY USE_OPENMP ZEN
MAX_THREADS=12)
octave:2> a = randn(5000); tic; inv(a)*a; toc
Elapsed time is 2.29698 seconds.
octave:3> 
octave:3> exit


This probably affected anybody using Arch or Manjaro or other Arch-derived
distro. The solution is to remove USE_TLS.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61742>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]