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

 
 

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

Submitted by:  marco atzeri <matzeri>
Submitted on:  Sat 10 Sep 2011 07:50:00 AM UTC  
 
Category: Plotting with OpenGLSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: DuplicateAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 03 Oct 2011 04:40:57 PM UTCrik5StatusNone=>Duplicate
      Open/ClosedOpen=>Closed
    Sat 17 Sep 2011 12:44:04 AM UTCbpabbottSummaryprint with fltk always SEGFAULT=>print with fltk always SEGFAULT on Cygwin (duplicate of 31641)

    Back to the top


    Powered by Savane 3.1-cleanup1