bugGNU Octave - Bugs: bug #34263, print with fltk always SEGFAULT on...

 
 

bug #34263: print with fltk always SEGFAULT on Cygwin (duplicate of 31641)

Submitter:  marco atzeri <matzeri>
Submitted:  Sat 10 Sep 2011 07:50:00 AM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 15 Sep 2011 04:42:51 AM UTC, comment #3: 

Hi Kai,
this bug is a duplicate of:
bug #31641: fltk print crash on cygwin

so it can be closed. Please follow there.

FYI, it seems a specific cygwin issue, it was always
present from when fltk was introduced.

marco atzeri <matzeri>
Wed 14 Sep 2011 07:37:28 PM UTC, comment #2: 

Hello Marco,

I don't see this on MinGW. I am using the default branch, about a week old.

Kai


Kai Habel <kahacjde>
Group Member
Sat 10 Sep 2011 08:51:14 AM UTC, comment #1: 

I am duplicating myself

bug #31641: fltk print crash on cygwin


marco atzeri <matzeri>
Sat 10 Sep 2011 07:50:00 AM UTC, original submission:  

on cygwin the sequence

graphics_toolkit fltk;
x=1:10;
plot (x,x)
print (fltk.png","-dpng")

causes segfault.

The cause is system pclose(fp) called with a
NULL handler for the involved pipe

(gdb) p fp
$6 = (FILE *) 0x20204f94
(gdb) call fileno(fp)
$7 = 6
p fh
$8 = (fhandler_pipe *) 0x0


One strange issues:

changing the sequence to

graphics_toolkit fltk;
rand(3);
plot (x)
set (gcf,'visible','off')
print (gcf,"test_invisible.png","-dpng")
set (gcf,'visible','on')

the segfault is not on the print but on the last set


marco atzeri <matzeri>

 

(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 rik5 (Updated the item)
  • -email is unavailable- added by bpabbott (Updated the item)
  • -email is unavailable- added by kahacjde (Posted a comment)
  • -email is unavailable- added by matzeri (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-10-03 rik5 StatusNone Duplicate
        Open/ClosedOpen Closed
    2011-09-17 bpabbott Summaryprint with fltk always SEGFAULT print with fltk always SEGFAULT on Cygwin (duplicate of 31641)

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code