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

 
 

bug #49102: Windows: setting empty fontname crashes Octave

Submitter:  Rik <rik5>
Submitted:  Thu 15 Sep 2016 10:18:41 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.2.0-rc1 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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>
Group 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>
Group 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:


graphics_toolkit gnuplot
ht = text (0.5, 0.5, "Hello World");
set (ht, "Fontname", "")
set (ht, "Fontname", "*")
set (ht, "Fontname", "")


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

Rik <rik5>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-09-19 rik5 StatusNone Fixed
        Open/ClosedOpen Closed
    2016-09-19 rik5 CategoryPlotting with gnuplot Plotting
    2016-09-18 rik5 SummaryWindows, gnuplot, setting empty fontname crashes Octave Windows: setting empty fontname crashes Octave

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code