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

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

[Octave-bug-tracker] [bug #47699] FLTK can segfault after using legend


From: Lachlan Andrew
Subject: [Octave-bug-tracker] [bug #47699] FLTK can segfault after using legend
Date: Fri, 29 Apr 2016 08:50:42 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Follow-up Comment #24, bug #47699 (project octave):

You raised a good point about debugging the callback.  That makes me lean
towards the second cset, which had a global flag.

This attached changeset inhibits drawnow during delete regardless of where it
is called from.  That solves the "dbnext" problem, but not the "dbquit"
problem.  If we dbquit then the deletion is not completed, but the
unwind_protect resets the global flag and so the next redraw will cause
problems.

I toyed with a patch that blocked "dbquit" in that context, but it still
crashes if you "quit" while in debug mode, so I gave up.

However, the only reason it seems to crash is an assert that seems to be
called onlly while closing.  The attached changeset replaces that by a warning
so that other clean up (like saving the history) can continue despite there
being some undeleted graphics objects.

(file #37018)
    _______________________________________________________

Additional Item Attachment:

File name: bug_47699_fltk_close_v4.cset   Size:2 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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