bugGNU Octave - Bugs: bug #49102, Windows: setting empty fontname...

 
 

bug #49102: Windows: setting empty fontname crashes Octave

Submitted by:  Rik <rik5>
Submitted on:  Thu 15 Sep 2016 10:18:41 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 4.2.0-rc1Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 19 Sep 2016 10:27:05 PM UTC, comment #5:

Octave now issues an error message, rather than crashing. See this cset http://hg.savannah.gnu.org/hgweb/octave/rev/77b50a83ec11.

Closing report.

Rik <rik5>
Project Administrator
Mon 19 Sep 2016 12:38:55 AM UTC, comment #4:

It does seem that the code is potentially calling pop_front() on an empty std::list. According to the C++ STL specification, the behavior for this is undefined. It seems that the the linux std library may simply be nicer in this regard and choose to ignore the request rather than segfault.

Rik <rik5>
Project Administrator
Sun 18 Sep 2016 02:39:50 PM UTC, comment #3:

I've changed the title to reflect that this is not just gnuplot, but fltk as well on Windows. It seems to be something in ft-text-render.cc.

Rik <rik5>
Project Administrator
Sat 17 Sep 2016 08:28:52 PM UTC, comment #2:

Sorry, this bug is tagged as "Windows", so my previous linux result isn't of much relevance...

Hartmut <hardy>
Sat 17 Sep 2016 08:26:47 PM UTC, comment #1:

I do NOT see any crash on Rik's sample code.

Self-compiled Octave (hg id b0caa61934fe, this is slightly after 4.2.0.rc1), on Ubuntu 14.04. Using gnuplot 4.6.4-2.

Hartmut <hardy>
Thu 15 Sep 2016 10:18:41 PM UTC, original submission:

Sample code:

It usually crashes on the first assignment, but sometimes it makes it to the second one.

Rik <rik5>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by hardy (Posted a comment)
  • -unavailable- added by rik5 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 19 Sep 2016 10:27:05 PM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Mon 19 Sep 2016 12:39:25 AM UTCrik5CategoryPlotting with gnuplot=>Plotting
    Sun 18 Sep 2016 02:39:50 PM UTCrik5SummaryWindows, gnuplot, setting empty fontname crashes Octave=>Windows: setting empty fontname crashes Octave

    Back to the top


    Powered by Savane 3.1-cleanup1