From MAILER-DAEMON Sat Feb 04 08:16:46 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ca0Cs-0006tK-2w
	for mharc-bug-plotutils@gnu.org; Sat, 04 Feb 2017 08:16:46 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:60913)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ametzler@bebt.de>) id 1ca0Cp-0006sq-5p
	for bug-plotutils@gnu.org; Sat, 04 Feb 2017 08:16:44 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ametzler@bebt.de>) id 1ca0Cm-0006Tu-1s
	for bug-plotutils@gnu.org; Sat, 04 Feb 2017 08:16:43 -0500
Received: from vsrv21575.customer.vlinux.de ([31.15.64.248]:57992)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <ametzler@bebt.de>) id 1ca0Cl-0006Ta-QR
	for bug-plotutils@gnu.org; Sat, 04 Feb 2017 08:16:39 -0500
Received: from 93-82-126-72.adsl.highway.telekom.at ([93.82.126.72]
	helo=argenau.bebt.de) by vsrv21575.customer.vlinux.de with esmtpsa
	(TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.88)
	(envelope-from <ametzler@bebt.de>) id 1ca0Ce-00077l-Kk
	for bug-plotutils@gnu.org; Sat, 04 Feb 2017 13:16:35 +0000
Received: from localhost ([::1] helo=argenau.bebt.de)
	by argenau.bebt.de with esmtps
	(TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89)
	(envelope-from <ametzler@bebt.de>) id 1ca0Ce-0008Tx-C1
	for bug-plotutils@gnu.org; Sat, 04 Feb 2017 14:16:32 +0100
Date: Sat, 4 Feb 2017 14:16:31 +0100
From: Andreas Metzler <ametzler@bebt.de>
To: bug-plotutils@gnu.org
Message-ID: <20170204131631.lhcelpdm3772v2tj@argenau.bebt.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: NeoMutt/20170113 (1.7.2)
X-am-debug-header: max_received_linelength is [80].
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
	[fuzzy]
X-Received-From: 31.15.64.248
Subject: [Bug-plotutils] [Mayhem] hersheydemo crashes
X-BeenThere: bug-plotutils@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: "Bug reports for the GNU plotting utilities,
	including the libplot graphics export library."
	<bug-plotutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-plotutils>,
	<mailto:bug-plotutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-plotutils/>
List-Post: <mailto:bug-plotutils@gnu.org>
List-Help: <mailto:bug-plotutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-plotutils>,
	<mailto:bug-plotutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 04 Feb 2017 13:16:44 -0000

Hello,

with empty $DISPLAY "hersheydemo --outpu=X" crashes:
(gdb) run --outpu=X
Starting program: /usr/bin/hersheydemo --outpu=X
libplot error: the Plotter could not be opened, as the DISPLAY parameter is null

Program received signal SIGSEGV, Segmentation fault.
XAllocColor (dpy=0x0, cmap=0, def=def@entry=0x7fffffffe180)
    at ../../src/GetHColor.c:40
40      ../../src/GetHColor.c: No such file or directory.
(gdb) bt full
#0  XAllocColor (dpy=0x0, cmap=0, def=def@entry=0x7fffffffe180)
    at ../../src/GetHColor.c:40
        status = <optimized out>
        rep = {type = 128 '\200', pad1 = 225 '\341', sequenceNumber = 65535,
          length = 32767, red = 0, green = 0, blue = 0, pad2 = 0, pixel = 0,
          pad3 = 0, pad4 = 65535, pad5 = 0}
        req = <optimized out>
#1  0x00007ffff7b17657 in _pl_x_retrieve_color (
    _plotter=_plotter@entry=0x605150, rgb_ptr=rgb_ptr@entry=0x7fffffffe180)
    at x_color.c:256
        cptr = <optimized out>
        rgb_red = 65535
        rgb_green = 65535
        rgb_blue = 65535
        xretval = <optimized out>
#2  0x00007ffff7b17bd8 in _pl_x_set_bg_color (_plotter=_plotter@entry=0x605150)
    at x_color.c:125
        old = <optimized out>
        new1 = {red = 65535, green = 65535, blue = 65535}
        rgb = {pixel = 6324544, red = 65535, green = 65535, blue = 65535,
          flags = 0 '\000', pad = 0 '\000'}
#3  0x00007ffff7b1d486 in _pl_y_erase_page (_plotter=0x605150) at y_erase.c:48
        head_found = <optimized out>
-------------------------------------

More details here: <https://bugs.debian.org/716545>

cu Andreas

-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'


From MAILER-DAEMON Sat Feb 25 11:45:15 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1chfT9-0003PN-DB
	for mharc-bug-plotutils@gnu.org; Sat, 25 Feb 2017 11:45:15 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:41062)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ametzler@bebt.de>) id 1chfT7-0003O5-0g
	for bug-plotutils@gnu.org; Sat, 25 Feb 2017 11:45:13 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ametzler@bebt.de>) id 1chfT3-0003ut-IA
	for bug-plotutils@gnu.org; Sat, 25 Feb 2017 11:45:13 -0500
Received: from vsrv21575.customer.vlinux.de ([31.15.64.248]:58440)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <ametzler@bebt.de>) id 1chfT3-0003pM-CC
	for bug-plotutils@gnu.org; Sat, 25 Feb 2017 11:45:09 -0500
Received: from 80-121-134-152.adsl.highway.telekom.at ([80.121.134.152]
	helo=argenau.bebt.de) by vsrv21575.customer.vlinux.de with esmtpsa
	(TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89_RC6)
	(envelope-from <ametzler@bebt.de>) id 1chfSt-0000q8-LW
	for bug-plotutils@gnu.org; Sat, 25 Feb 2017 16:45:04 +0000
Received: from localhost ([::1] helo=argenau.bebt.de)
	by argenau.bebt.de with esmtps
	(TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89_RC6)
	(envelope-from <ametzler@bebt.de>) id 1chfSt-0002JE-Ow
	for bug-plotutils@gnu.org; Sat, 25 Feb 2017 17:44:59 +0100
Date: Sat, 25 Feb 2017 17:44:58 +0100
From: Andreas Metzler <ametzler@bebt.de>
To: bug-plotutils@gnu.org
Message-ID: <20170225164458.f3iu6nmu2z5zqb2u@argenau.bebt.de>
References: <mailman.5123.1461677256.7475.bug-plotutils@gnu.org>
	<57214699.8060909@math.arizona.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <57214699.8060909@math.arizona.edu>
User-Agent: NeoMutt/20170113 (1.7.2)
X-am-debug-header: max_received_linelength is [78].
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
	[fuzzy]
X-Received-From: 31.15.64.248
Subject: Re: [Bug-plotutils] ploututils testsuite failure on spline (i386)
X-BeenThere: bug-plotutils@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: "Bug reports for the GNU plotting utilities,
	including the libplot graphics export library."
	<bug-plotutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-plotutils>,
	<mailto:bug-plotutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-plotutils/>
List-Post: <mailto:bug-plotutils@gnu.org>
List-Help: <mailto:bug-plotutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-plotutils>,
	<mailto:bug-plotutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 25 Feb 2017 16:45:14 -0000

On 2016-04-28 "Robert S. Maier" <rsm@math.arizona.edu> wrote:
[...]
> What's happening is this: the `make test' procedure for plotutils executes
> the `spline.test' script in the test directory, which runs the command

> echo 0 1 0.5 0.75 -0.25 0 | ../spline/spline -a -T 1 -n 120 --precision 5 -p
> >spline.out

> The output file, spline.out, is then compared against the expected output,
> which is in the file spline.xout.  They don't exactly match on your system,
> which is why the test failed.

> If you do a `diff spline.xout spline.out' to compare the two files, you'll
> see this:

> 1c1
> < 0 0
> ---
> > 0 -9.5518e-17
[...]
> The difference between -9.5518e-17 and zero (which are y-values generated by
> `spline', at the endpoints of an interpolatory range) is not a major one!

> However, this ought to be fixed in the next release.  (This numerical bug
> appears on some systems but not on others, for unknown reasons; so the
> easiest way to deal with it would be to modify the test script
> `spline.test', to ignore the first and last lines when comparing spline.out
> with spline.xout.)

Hello,

this bug has recently started appearing on Debian/unstable (i386). Do
you have a fix available somewhere? You mentioned a "next release", but
afaict plotutils is still at 2.6 and there does not seem to be a source
repository either?

TIA, cu Andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'


From MAILER-DAEMON Sat Feb 25 12:23:00 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1chg3g-00066k-6a
	for mharc-bug-plotutils@gnu.org; Sat, 25 Feb 2017 12:23:00 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:46224)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ametzler@bebt.de>) id 1chg3d-00064a-Rt
	for bug-plotutils@gnu.org; Sat, 25 Feb 2017 12:22:58 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ametzler@bebt.de>) id 1chg3a-00062c-Kh
	for bug-plotutils@gnu.org; Sat, 25 Feb 2017 12:22:57 -0500
Received: from vsrv21575.customer.vlinux.de ([31.15.64.248]:58446)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <ametzler@bebt.de>) id 1chg3a-00062X-Dl
	for bug-plotutils@gnu.org; Sat, 25 Feb 2017 12:22:54 -0500
Received: from 80-121-134-152.adsl.highway.telekom.at ([80.121.134.152]
	helo=argenau.bebt.de) by vsrv21575.customer.vlinux.de with esmtpsa
	(TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89_RC6)
	(envelope-from <ametzler@bebt.de>) id 1chg3W-00017B-8c
	for bug-plotutils@gnu.org; Sat, 25 Feb 2017 17:22:51 +0000
Received: from localhost ([::1] helo=argenau.bebt.de)
	by argenau.bebt.de with esmtps
	(TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89_RC6)
	(envelope-from <ametzler@bebt.de>) id 1chg3W-0006lo-Ds
	for bug-plotutils@gnu.org; Sat, 25 Feb 2017 18:22:50 +0100
Date: Sat, 25 Feb 2017 18:22:49 +0100
From: Andreas Metzler <ametzler@bebt.de>
To: bug-plotutils@gnu.org
Message-ID: <20170225172249.sjwc6tcqio2cw3jh@argenau.bebt.de>
References: <mailman.5123.1461677256.7475.bug-plotutils@gnu.org>
	<57214699.8060909@math.arizona.edu>
	<20170225164458.f3iu6nmu2z5zqb2u@argenau.bebt.de>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="cjwj4rcisn7gbyko"
Content-Disposition: inline
In-Reply-To: <20170225164458.f3iu6nmu2z5zqb2u@argenau.bebt.de>
User-Agent: NeoMutt/20170113 (1.7.2)
X-am-debug-header: max_received_linelength is [79].
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
	[fuzzy]
X-Received-From: 31.15.64.248
Subject: Re: [Bug-plotutils] ploututils testsuite failure on spline (i386)
X-BeenThere: bug-plotutils@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: "Bug reports for the GNU plotting utilities,
	including the libplot graphics export library."
	<bug-plotutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-plotutils>,
	<mailto:bug-plotutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-plotutils/>
List-Post: <mailto:bug-plotutils@gnu.org>
List-Help: <mailto:bug-plotutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-plotutils>,
	<mailto:bug-plotutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 25 Feb 2017 17:22:59 -0000


--cjwj4rcisn7gbyko
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On 2017-02-25 Andreas Metzler <ametzler@bebt.de> wrote:
> On 2016-04-28 "Robert S. Maier" <rsm@math.arizona.edu> wrote:
[...]
> >  (This numerical bug
> > appears on some systems but not on others, for unknown reasons; so the
> > easiest way to deal with it would be to modify the test script
> > `spline.test', to ignore the first and last lines when comparing spline.out
> > with spline.xout.)

For the time being I will wor around this as per your suggestion. Patch
attached.

cu Andreas

-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'

--cjwj4rcisn7gbyko
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="35_spline.test.error.diff"

Description: Work around i386 testsuite error
Author: Andreas Metzler <ametzler@debian.org>
Origin: vendor
Bug: http://lists.gnu.org/archive/html/bug-plotutils/2017-02/msg00001.html
Bug-Debian: https://bugs.debian.org/856134
Forwarded: no
Last-Update: 2017-02-25

--- a/test/spline.test
+++ b/test/spline.test
@@ -3,12 +3,21 @@
 echo 0 1 0.5 0.75 -0.25 0 | ../spline/spline -a -T 1 -n 120 \
 	--precision 5 -p >spline.out
 
+# Work around testsuite error
+# http://lists.gnu.org/archive/html/bug-plotutils/2016-04/msg00000.html
+#
 # work around line end problems in installations with DJGPP under DOS
-tr -d '\015' < spline.out > spline.dos
+tr -d '\015' < spline.out \
+	| head -n 120 | tail -n 119 \
+	> spline.dos
 
-if cmp -s $SRCDIR/spline.xout spline.dos
+# cannot patch spline.xout, it is used as input for graph.test.
+head -n 120 $SRCDIR/spline.xout | tail -n 119 > spline.xout.4comp
+
+if cmp -s spline.xout.4comp spline.dos
 	then retval=0;
 	else retval=1;
 	fi;
 
+rm -f spline.xout.4comp
 exit $retval

--cjwj4rcisn7gbyko--


