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

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

[Octave-bug-tracker] [bug #41699] imread causes a segmentation fault whe


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #41699] imread causes a segmentation fault when exiting Octave
Date: Mon, 02 Jun 2014 21:12:08 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0

Follow-up Comment #32, bug #41699 (project octave):

Even though we have proven (I think?) that this is not related to
GraphicsMagick's use of OpenMP (see bug #42176), this still looks to me to be
related to unloading the __magick_read__.oct file, which in turn unloads and
runs destructors in the GraphicsMagick library because it is only linked to
that one oct-file. And this seems to be doing something that crashes Octave on
Windows.

Note that "clear all" clears functions from the symbol table. You should also
be able to reproduce this crash with any of the following after "test
imread":


clear -f
clear functions
clear __magick_read__


I can get the same crash on Linux but only because of OpenMP. By defining
OMP_NUM_THREADS=1, or building Octave with --enable-openmp, the crash does not
happen on Linux.

Earlier in this report we saw that defining OMP_NUM_THREADS=1 has no effect
and still crashes Octave on Windows.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?41699>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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