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: anonymous
Subject: [Octave-bug-tracker] [bug #61742] Crash on exit from threading
Date: Wed, 29 Dec 2021 12:40:51 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0

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

                 Summary: Crash on exit from threading
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Wed 29 Dec 2021 05:40:49 PM UTC
                Category: Configuration and Build System
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Build Failure
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: dev
         Discussion Lock: Any
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Documentation cannot be built with Octave 8 hg id 0ef88c485786. The problem is
something to do with threading.

This exits normally:

octave:1> exit


This exits normally:

octave:1> figure; exit


This crashes on exit:

octave:1> plot (1:10, 1:10, 'b.-'); exit
fatal: caught signal Segmentation fault -- stopping myself...
Segmentation fault (core dumped)


The above crash prevents figures from being made and therefore the
documentation cannot be built.

Saying "export OMP_NUM_THREADS=1" at the bash prompt stops it from crashing
and allows documentation to be built.

Once documentation is built, "make check" passes even on a fresh terminal
where OMP_NUM_THREADS is not even defined, so it is not clear what the problem
is.

This also affects libraries that use threading like BLAS:


octave:1> A = rand(100,100) - 0.5; A = (A ^ 3) .^ 3; [v,d] = eig(A);
octave:2> exit
fatal: caught signal Segmentation fault -- stopping myself...
Segmentation fault (core dumped)


After exporting OMP_NUM_THREADS=1, no crash on exit:

octave:1> A = rand(100,100) - 0.5; A = (A ^ 3) .^ 3; [v, d] = eig(A);
octave:2> exit


It only seems to crash on exit not during the computation.




    _______________________________________________________

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]