bugGNU Octave - Bugs: bug #48782, Using drawnow (TERM, FILE,...

 
 

bug #48782: Using drawnow (TERM, FILE, DEBUG_FILE) with qt crashes Octave

Submitter:  Avinoam Kalma <avinoam>
Submitted:  Sun 14 Aug 2016 06:23:21 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  siko1056
Originator Name:  Avinoam Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 18 Aug 2016 11:17:28 AM UTC, comment #3: 
Kai Torben Ohlhus <siko1056>
Group Member
Mon 15 Aug 2016 09:10:28 PM UTC, comment #2: 

I have checked the patch in Linux.
It fixes the problem, Thanks.

Avinoam Kalma <avinoam>
Group Member
Mon 15 Aug 2016 09:14:39 AM UTC, comment #1: 

I can confirm the crash on Linux and located the source of error in libinterp/corefcn/gl2ps-print.cc(gl2ps_renderer::draw).


$ ./run-octave --no-gui
octave:1> graphics_toolkit  qt
octave:2> plot (1:2)
octave:3> drawnow ('postscript', 'a.ps', 'a.gp');
error: gl2ps_renderer::draw: Unknown terminal postscript
terminate called after throwing an instance of 'octave_execution_exception'
panic: Aborted -- stopping myself...
attempting to save variables to 'octave-workspace'...
save to 'octave-workspace' complete
Aborted (core dumped)


My proposal for a patch is attached. It chooses GL2PS_PS as default value, as it is the first one in the defining header


edit /usr/include/gl2ps.h


and a default value + warning is better than a crash. Please verify this patch. I will commit soon, if there are no complaints.

(file #38212)

Kai Torben Ohlhus <siko1056>
Group Member
Sun 14 Aug 2016 06:23:21 PM UTC, original submission:  



graphics_toolkit  qt
plot (1:2)
drawnow ('postscript', 'a.ps', 'a.gp');


crashes Octave (dev), instead of writing error message, as in 4.0.3.
Checked with MXE-Octave (win-10) with Linux (Ubuntu).

Avinoam Kalma <avinoam>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #38212:  drawnow.patch added by siko1056 (826B - text/x-patch)

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -email is unavailable- added by siko1056 (Updated the item)
  • -email is unavailable- added by avinoam (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-08-18 siko1056 Open/ClosedOpen Closed
    2016-08-18 siko1056 StatusPatch Submitted Fixed
    2016-08-17 rik5 Dependencies- bugs #48703 is dependent
    2016-08-15 siko1056 Attached File- Added drawnow.patch, #38212
        StatusNone Patch Submitted
        Assigned toNone siko1056

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code