[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: invalid gnuplot_binary should fail gracefully
From: |
Tatsuro MATSUOKA |
Subject: |
Re: invalid gnuplot_binary should fail gracefully |
Date: |
Fri, 7 Aug 2015 18:18:05 +0900 (JST) |
----- Original Message -----
> From: Tatsuro MATSUOKA
> To: Dmitri A. Sergatskov ; Octave Maintainers
> Cc:
> Date: 2015/8/7, Fri 16:46
> Subject: Re: invalid gnuplot_binary should fail gracefully
>
> ----- Original Message -----
>> From: Dmitri A. Sergatskov
>> To: Octave Maintainers
>> Date: 2015/8/7, Fri 02:17
>> Subject: invalid gnuplot_binary should fail gracefully
>>
>>
>> But it does not:
>>
>> octave:1> graphics_toolkit gnuplot
>> octave:2> gnuplot_binary ("somejunk")
>> octave:3> plot(1:3)
>> sh: somejunk: command not found
>> error: popen2: popen2 (child): unable to start process -- No such file or
> directory
>> error: called from
>> __gnuplot_open_stream__ at line 30 column 40
>> __gnuplot_drawnow__ at line 72 column 19
>> error: 'unset' undefined near line 1 column 1
>> warning: broken pipe
>>
>>
>> At this moment I can kill octave only with kill -9. Ctrl-C gets ignored.
>>
>>
>> Dmitri.
>
>
> On octave 4.0.0 on windows and Cygwin, there seem to be no problem:
>
> octave:1> graphics_toolkit gnuplot
> octave:2> gnuplot_binary ("somejunk")
> octave:3> plot(1:3)
> error: popen2: process creation failed
> error: called from
> __gnuplot_open_stream__ at line 30 column 40
> __gnuplot_drawnow__ at line 72 column 19
> octave:4>
>
> After error messages, octave prompt represented normally.
>
> Tatsuro
On Ubuntu octave 4.0.0,
$ octave --no-gui
octave:1> graphics_toolkit gnuplot
octave:2> gnuplot_binary ("somejunk")
octave:3> plot(1:3)
error: popen2: popen2 (child): unable to start process -- No such file or
directory
sh: 1: somejunk: not found
error: called from:
error: /usr/share/octave/3.8.1/m/plot/util/private/__gnuplot_open_stream__.m
at line 30, column 40
error: /usr/share/octave/3.8.1/m/plot/util/__gnuplot_drawnow__.m at line 72,
column 19
error: 'unset' undefined near line 1 column 1
^C^CPress Control-C again to abort.
^Cpanic: Interrupt -- stopping myself...
attempting to save variables to 'octave-workspace'...
save to 'octave-workspace' complete
Hang up is similar to your case. But Control-C can kill the process.
$ octave # with gui
>> graphics_toolkit gnuplot
>> gnuplot_binary ("somejunk")
>> plot(1:3)
error: popen2: popen2 (child): unable to start process -- No such file or
directory
sh: 1: somejunk: not found
error: called from:
error: /usr/share/octave/3.8.1/m/plot/util/private/__gnuplot_open_stream__.m
at line 30, column 40
error: /usr/share/octave/3.8.1/m/plot/util/__gnuplot_drawnow__.m at line 72,
column 19
error: 'unset' undefined near line 1 column 1
^C^CPress Control-C again to abort.
Control-C cannot kill the process.
Tatsuro