[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #38166] crash when printing with no output fil
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #38166] crash when printing with no output file (i.e. spooling via lpr) |
Date: |
Thu, 05 Sep 2013 02:52:20 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0 |
Follow-up Comment #8, bug #38166 (project octave):
Ben, I just tried your patch and I still get a segfault on a linux system with
gnuplot toolkit.
octave:5> print -deps
warning: print.m: fig2dev binary is not available.
Some output formats are not available.
terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::substr
Abort
After some debugging, it appears to be because we call eps_drawnow with a
filename of "" from within __gnuplot_drawnow__.m. I added a line to set it in
the ".eps" branch of the case statement and it doesn't crash anymore. But,
this isn't my area so you should probably take a look at it. (See attached
eps.crash.patch) In particular, the code doesn't send anything to the
printer, but maybe that is right.
Test code
graphics_toolkit gnuplot;
plot (1:10);
print -deps
Note, that it is still possible to get Octave to segfault by using one of the
other branches of the case statement such as
print -dsvg
This suggests that we should really move the test for a null opts.name above
the case statement so it can apply to everyone.
(file #29009)
_______________________________________________________
Additional Item Attachment:
File name: eps.crash.patch Size:1 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38166>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #38166] crash when printing with no output file (i.e. spooling via lpr), Ben Abbott, 2013/09/02
- [Octave-bug-tracker] [bug #38166] crash when printing with no output file (i.e. spooling via lpr), Ben Abbott, 2013/09/04
- [Octave-bug-tracker] [bug #38166] crash when printing with no output file (i.e. spooling via lpr),
Rik <=
- [Octave-bug-tracker] [bug #38166] crash when printing with no output file (i.e. spooling via lpr), Ben Abbott, 2013/09/05
- [Octave-bug-tracker] [bug #38166] crash when printing with no output file (i.e. spooling via lpr), Rik, 2013/09/05
- [Octave-bug-tracker] [bug #38166] crash when printing with no output file (i.e. spooling via lpr), Ben Abbott, 2013/09/05
- [Octave-bug-tracker] [bug #38166] crash when printing with no output file (i.e. spooling via lpr), Rik, 2013/09/05
- [Octave-bug-tracker] [bug #38166] crash when printing with no output file (i.e. spooling via lpr), Ben Abbott, 2013/09/05