Bug#665432: gnuplot: using stdin makes gnuplot crash
Vincent Lefevre
vincent at vinc17.net
Mon Mar 26 20:52:01 UTC 2012
Hi Agustin,
On 2012-03-26 18:10:02 +0200, Agustin Martin wrote:
> In i386
>
> $ echo "foo" | gnuplot
>
> gnuplot> foo
> ^
> line 0: invalid command
However this form is not officially supported: from the gnuplot
man page:
If file names are given on the command line, gnuplot loads
each file with the load command, in the order specified, and
exits after the last file is processed. If no files are
given, gnuplot prompts for interactive commands.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(which is actually not what occurs).
> while as you write
>
> $ echo "foo" | gnuplot -
> Segmentation fault
>
> which is indeed a bug, if '-' is supported should work, otherwise should
> fail gracefully.
It was supported in the past, at least up to 4.4 (by convention, '-'
generally means stdin in command arguments when a filename is expected,
even though this is not always documented). However I've just noticed
that there's no such problem if I replace '-' by '/dev/stdin'. So,
I suspect a parsing bug of the command line arguments.
--
Vincent Lefèvre <vincent at vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
More information about the debian-science-maintainers
mailing list