Bug#665432: gnuplot: using stdin makes gnuplot crash
    Agustin Martin 
    agmartin at debian.org
       
    Fri Mar 30 12:21:13 UTC 2012
    
    
  
On Mon, Mar 26, 2012 at 11:11:47PM +0200, Vincent Lefevre wrote:
> Something more complex, as
> 
>   echo | gnuplot -
> 
> does not crash.
> 
> FYI,
> 
> $ echo "foo" | valgrind gnuplot -
> ==11357== Memcheck, a memory error detector
...
> A null pointer dereference?
> So, there seems to be a problem with com_line() while interactive
> is TRUE (and I wonder what the intent is...).
Just for the records,
I have been trying to track this "the dumb way" (putting messages here and
there) and seems that the problem is in a call to gp_get_string called
from read_line called from com_line (all in command.c).
I had no time to go further and do not know when I will have it. I am
attaching a diff with a minimal fprintf set around the problem.
Hope this helps,
-- 
Agustin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-with-flags-command.c.diff
Type: text/x-diff
Size: 1054 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20120330/dc341a38/attachment.diff>
    
    
More information about the debian-science-maintainers
mailing list