[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #56435] Octave crashd while running unit test
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #56435] Octave crashd while running unit test of an oct-file which uses pthreads |
Date: |
Wed, 5 Jun 2019 13:38:16 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36 |
Follow-up Comment #5, bug #56435 (project octave):
I'm only guessing, but since you mentioned pthreads and the function is called
pararrayfun, is it possible you are trying to evaluate Octave values or
expressions in multiple threads simultaneously?
If that's the case, then this crash is definitely expected. The Octave
interpreter is not safe to call from multiple threads, nor does Octave yet
fully support creating multiple instances of the interpreter, for example one
per thread. So I suspect you are trying to do something that Octave does not
yet support, and that's not really a bug at this point.
If you modify your code so that you do not make Octave API calls in the
pthread function, does that resolve the crash for you? In other words, only
the main thread of your oct file can handle arguments and call Octave
functions, and the pthread worker threads can do computations, but not any
that depend on Octave.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56435>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #56435] Octave crashd while running unit test of an oct-file which uses pthreads, anonymous, 2019/06/04
- [Octave-bug-tracker] [bug #56435] Octave crashd while running unit test of an oct-file which uses pthreads, Babak Razmjoo, 2019/06/04
- [Octave-bug-tracker] [bug #56435] Octave crashd while running unit test of an oct-file which uses pthreads, Mike Miller, 2019/06/04
- [Octave-bug-tracker] [bug #56435] Octave crashd while running unit test of an oct-file which uses pthreads, Babak Razmjoo, 2019/06/05
- [Octave-bug-tracker] [bug #56435] Octave crashd while running unit test of an oct-file which uses pthreads, Babak Razmjoo, 2019/06/05
- [Octave-bug-tracker] [bug #56435] Octave crashd while running unit test of an oct-file which uses pthreads,
Mike Miller <=
- [Octave-bug-tracker] [bug #56435] Octave crashd while running unit test of an oct-file which uses pthreads, Babak Razmjoo, 2019/06/06
- [Octave-bug-tracker] [bug #56435] Octave crashd while running unit test of an oct-file which uses pthreads, Babak Razmjoo, 2019/06/06
- [Octave-bug-tracker] [bug #56435] Octave crashd while running unit test of an oct-file which uses pthreads, Mike Miller, 2019/06/06