octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #34263] print with fltk always SEGFAULT


From: marco atzeri
Subject: [Octave-bug-tracker] [bug #34263] print with fltk always SEGFAULT
Date: Sat, 10 Sep 2011 07:50:01 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0.1) Gecko/20100101 Firefox/6.0.1

URL:
  <http://savannah.gnu.org/bugs/?34263>

                 Summary: print with fltk always SEGFAULT
                 Project: GNU Octave
            Submitted by: matzeri
            Submitted on: Sat 10 Sep 2011 07:50:00 AM GMT
                Category: Plotting with OpenGL
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Crash
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

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






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?34263>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]