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: Rik
Subject: [Octave-bug-tracker] [bug #47699] FLTK can segfault after using legend
Date: Fri, 29 Apr 2016 00:58:35 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

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

@Lachlan: I've tried all three csets.  I guess I like the last as the most
minimal.  However, there is still a corner case problem.  If I set a
breakpoint in the callback deletelegend2 and then step through the program I
get same error about invalid graphics object that was originally reported.  I
assume that this is because returning to the debug prompt is like returning to
the Octave prompt and an implicit call to update events and redraw plots is
made each time.

Steps to Reproduce:


plot (1:10)
h = legend ("abc");
dbstop legend>deletelegend2
delete (h)
...
dbnext
...



Maybe this is too much of a corner case to be concerned with, or should we
isolate the offending code with a try/catch block?  I tried that with the
attached diff.  It works, but produces an error message which isn't great.


(file #37015)
    _______________________________________________________

Additional Item Attachment:

File name: 47699_trycatch.cset            Size:1 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]