Bug#598547: gnuplot: Gnuplot batch mode task stops when called from a backgrounded script

2012-05-07 Thread Agustin Martin
forwarded 598547 
http://sourceforge.net/tracker/?func=detailaid=3524062group_id=2055atid=102055
tag   598547 fixed-upstream
tag   598547 +patch
thanks

On Fri, Apr 20, 2012 at 05:09:46AM +0930, Ron wrote:
 
 Hi,
 
 $ gnuplot sweep-plot.script 
 [4] 17479
 $ ps xau | grep gnuplot
 ron  13484  0.0  0.2 318804 19300 pts/4S04:13   0:00 gnuplot
 ron  14136  0.0  0.0 256540  6732 pts/4S04:16   0:00 gnuplot
 ron  17479  0.0  0.0  77880  2112 pts/4T05:02   0:00 gnuplot 
 sweep-plot.script
 ron  17481  0.0  0.0   8028   844 pts/4S+   05:02   0:00 grep gnuplot
 
 [4]+  Stopped gnuplot sweep-plot.script
 
 
 So this is either still not fixed in 4.6.0-1, or has been reintroduced again.

Hi,

I forwarded this bug report to upstream bug tracker. Upstream reacted very
quickly noticing that this is caused by a bug in BSD libedit and committed a
workaround,

http://gnuplot.cvs.sourceforge.net/viewvc/gnuplot/gnuplot/src/plot.c?r1=1.138r2=1.139

As a side note, upstream suggests us to give a try to improved gnuplot
internal readline (also suggests using GNU readline, not possible for us).

Regards,

-- 
Agustin



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#598547: gnuplot: Gnuplot batch mode task stops when called from a backgrounded script

2012-04-19 Thread Ron

Hi,

$ gnuplot sweep-plot.script 
[4] 17479
$ ps xau | grep gnuplot
ron  13484  0.0  0.2 318804 19300 pts/4S04:13   0:00 gnuplot
ron  14136  0.0  0.0 256540  6732 pts/4S04:16   0:00 gnuplot
ron  17479  0.0  0.0  77880  2112 pts/4T05:02   0:00 gnuplot 
sweep-plot.script
ron  17481  0.0  0.0   8028   844 pts/4S+   05:02   0:00 grep gnuplot

[4]+  Stopped gnuplot sweep-plot.script


So this is either still not fixed in 4.6.0-1, or has been reintroduced again.

Cheers,
Ron





-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#598547: gnuplot: Gnuplot batch mode task stops when called from a backgrounded script

2012-04-19 Thread Anton Gladky
Hi Ron,

what is the reason of marking this bug as serious?

Thanks.

Anton



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#598547: gnuplot: Gnuplot batch mode task stops when called from a backgrounded script

2012-04-19 Thread Ron

Hi Anton,

Thanks for the quick response :)

On Thu, Apr 19, 2012 at 09:57:09PM +0200, Anton Gladky wrote:
 Hi Ron,
 
 what is the reason of marking this bug as serious?

You can take your pick of the RC severities, but I don't think we should
release with a bug that makes gnuplot useless from other scripts/applications
that might call it.  Especially not if it's a regression of a bug that was
already supposedly fixed upstream.

Do you happen to have a reference to the fix or the bug report there?
I couldn't find it in the Changelog, or in their tracker so far.


I actually stumbled on this while trying to debug another issue, namely that
gnuplot silently does nothing if called from another application.
eg. if you do:

  system(gnuplot foo.script);

then gnuplot runs, and does exit, but doesn't actually appear to execute the
script ...  I'm not sure yet if these two things are related (still digging
into that), but I can definitely reproduce the original symptom of this bug,
and there's something wacky going on when it's not run from the foreground
of a shell.

Cheers,
Ron





-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#598547: gnuplot: Gnuplot batch mode task stops when called from a backgrounded script

2012-04-19 Thread Ron

Hi again :)

On Fri, Apr 20, 2012 at 05:50:12AM +0930, Ron wrote:
 On Thu, Apr 19, 2012 at 09:57:09PM +0200, Anton Gladky wrote:
  Hi Ron,
  
  what is the reason of marking this bug as serious?
 
 You can take your pick of the RC severities, but I don't think we should
 release with a bug that makes gnuplot useless from other scripts/applications
 that might call it.  Especially not if it's a regression of a bug that was
 already supposedly fixed upstream.
 
 Do you happen to have a reference to the fix or the bug report there?
 I couldn't find it in the Changelog, or in their tracker so far.



Ok, so before anybody else also goes on a wild goose chase over this
latter part:
 
 I actually stumbled on this while trying to debug another issue, namely that
 gnuplot silently does nothing if called from another application.
 eg. if you do:
 
   system(gnuplot foo.script);
 
 then gnuplot runs, and does exit, but doesn't actually appear to execute the
 script ...  I'm not sure yet if these two things are related (still digging
 into that) ...

This bit isn't a bug in gnuplot, it was me being silly and just not flushing
the script properly before calling gnuplot on it (and then being confused by
the odd behaviour that ensued, and the original bug of this report).

So ignore this part.  But I can definitely reproduce the original bug.
I presume it shouldn't be too hard to fix (again), gnuplot really has no
reason to be reading from stdin when it's writing to a non-interactive
'terminal' such as one of the image formats.  It just needs someone who
knows the code well enough to know which of the bazillion places that it
tries to do that need to be disabled in non-interactive modes.

If there was a ready-made -dbg package I'd have possibly narrowed that
down and sent a patch, but since it's easy to reproduce, I'll leave that
to someone who has a debug build already available :)

Cheers,
Ron





-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#598547: gnuplot: Gnuplot batch mode task stops when called from a backgrounded script.

2010-09-29 Thread Terry Bullett
Package: gnuplot
Version: 4.4.0-1
Severity: important



-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-3-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gnuplot depends on:
ii  gnuplot-nox   4.4.0-1A command-line driven interactive 
ii  gnuplot-x11   4.4.0-1A command-line driven interactive 

gnuplot recommends no packages.

Versions of packages gnuplot suggests:
pn  gnuplot-doc   none (no description available)

-- no debconf information

I use gnuplot in bash scripts which create gnuplot command files and
then call gnuplot to make the files.  Version 4.4.0 will enter a state
of 'T' (stopped) when the parent bash script is running in the background.
Executution is normal when the parent script is in the foreground.
An update to 4.4.2 has resolved this problem, but this version is not in
the Debian squeeze package.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org