bugGNU Octave - Bugs: bug #38166, crash on incorrect print command

 
 
Show feedback again

bug #38166: crash on incorrect print command

Submitted by:  Mark van Rossum <cosine>
Submitted on:  Fri 25 Jan 2013 11:12:58 AM UTC  
 
Category: Plotting with gnuplotSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Crash
Status: ConfirmedAssigned to: None
Originator Name: Open/Closed: Open
Release: 3.6.3Operating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Wed 30 Jan 2013 11:16:37 PM UTC, comment #4:

@Rik:
You're right, this bug only happens with gnuplot (MinGW + MSVC on Windows) - can't test Linux ATM.

@OP:
To invoke fltk: in Octave, type

graphics_toolkit fltk

and try again.

Philip Nienhuis <philipnienhuis>
Project Member
Wed 30 Jan 2013 07:42:59 PM UTC, comment #3:

I see this with gnuplot on linux, not sure how use fltk.

Mark van Rossum <cosine>
Wed 30 Jan 2013 04:23:21 PM UTC, comment #2:

Just to help narrow this down, I get this crash only when using gnuplot as the plotting backend. When using FLTK the postscript output is sent to the screen (still not right). Is this behavior also seen by the original bug reporter?

Rik <rik5>
Project Member
Sat 26 Jan 2013 10:24:47 PM UTC, comment #1:

Confirmed in dev version and 3.6.1 on Linux.

Interestingly, this works OK on Windows w. 3.6.1 & 3.6.2 (MinGW & MSVC); that is, all the output meant for the graphical backend is echoed to the Octave terminal (I have no opinion on whether that is expected or Good behavior) but there's no crash.

Philip Nienhuis <philipnienhuis>
Project Member
Fri 25 Jan 2013 11:12:58 AM UTC, original submission:

If I do
plot(1); print -deps

Octave crashes with
terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::substr
panic: Aborted -- stopping myself...

This is -incorrect- use, as a file name should follow the print command.
Nevertheless, a somewhat less dramatic response would be nice.

Mark van Rossum <cosine>

 

(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 (Posted a comment)
  • -unavailable- added by philipnienhuis (Posted a comment)
  • -unavailable- added by cosine (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 30 Jan 2013 11:37:28 PM UTCrik5CategoryInterpreter=>Plotting with gnuplot
    Sat 26 Jan 2013 10:24:47 PM UTCphilipnienhuisStatusNone=>Confirmed
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup