From MAILER-DAEMON Tue May 16 17:02:36 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1dAjc4-000400-2e
	for mharc-gpsd-dev@gnu.org; Tue, 16 May 2017 17:02:36 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:46544)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1dAjc1-0003zY-GH
	for gpsd-dev@nongnu.org; Tue, 16 May 2017 17:02:34 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1dAjc0-0003va-M7
	for gpsd-dev@nongnu.org; Tue, 16 May 2017 17:02:33 -0400
Received: from rellim.com ([2001:470:e815::19]:45387 helo=spidey.rellim.com)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <gem@rellim.com>)
	id 1dAjc0-0003r4-D5; Tue, 16 May 2017 17:02:32 -0400
Received: from spidey.rellim.com (rellim.com [IPv6:2001:470:e815:0:0:0:0:19])
	(authenticated bits=0)
	by spidey.rellim.com (8.15.2/8.15.2) with ESMTPSA id v4GL2FJX003033
	(version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); 
	Tue, 16 May 2017 14:02:20 -0700
DKIM-Filter: OpenDKIM Filter v2.10.3 spidey.rellim.com v4GL2FJX003033
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=kong;
	t=1494968540; bh=65yCIfveldVff1RYFiuv2FncF2weaCpV9dRhI16ZI78=;
	h=Date:From:To:Subject;
	b=DBPhx58Ea3h0pA0GOCrThLEaLmMMf8abBtm8AtHd7bOLuh2DmvVTExAMlMwOD28YU
	TSW66VQT0q5hPX9TeoI7OQ6p43MQRzyWLlvioU38DXlR5ppkqNQ7lH7gdPYBsYb79A
	ArdsLJaESnhGGsrkYvOA+N/U00lpjypjSRQ56Sw4=
Date: Tue, 16 May 2017 14:02:03 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: gpsd users <gpsd-users@nongnu.org>, gpsd dev <gpsd-dev@nongnu.org>
Message-ID: <20170516140203.7f2aec76@spidey.rellim.com>
Organization: Rellim
X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	boundary="Sig_/mmcFmXyb7NdHX9YYqIh/64f";
	protocol="application/pgp-signature"
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2
	(spidey.rellim.com [IPv6:2001:470:e815:0:0:0:0:19]);
	Tue, 16 May 2017 14:02:20 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:e815::19
Subject: [gpsd-dev] =?utf-8?q?=E2=9C=98gpsd_next_release_soon?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 May 2017 21:02:34 -0000

--Sig_/mmcFmXyb7NdHX9YYqIh/64f
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Yo All!

Long time since a gpsd release.  Long overdue.

Anybody see any reason not to release 3.17 in the next few days?

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1 541 382 8588

	    Veritas liberabit vos. -- Quid est veritas?
    "If you can=E2=80=99t measure it, you can=E2=80=99t improve it." - Lord=
 Kelvin

--Sig_/mmcFmXyb7NdHX9YYqIh/64f
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEENqCjEoytAEAuFCk8DQ7ZSUHRedgFAlkbaMwACgkQDQ7ZSUHR
edh0zQf/ZQFeXLuc+Rd1qEmoFFCNWoNRvFZ2G7hC1uO7rG5MP5kxDgEuPhs6cFfw
cLnZtCXUelunbdz/P2nswkNJA9kht0BUyMJAOP4v2cWZrLCC2TIwf2AiN0nkrGdN
nsR73BefIyJ1ByDxx6LQk0E7Z2T6PRJWVNnt/yi6ZHyYvy6vB+CZnIur6hoC26KF
L3FTcXGEGjH/5aG14Dx6vq+xIv1CiCpGrLlgktuht8y6smrLOMT6LTaOkuTkUiqZ
5gJppf3cRa0+s60eT52rEdZ/ThhqrYz6ZOnfr7pzUJUtK9QA2VPjvzyaQ3n1u21/
qbmuBA9hDFmIg+MX5sCbjtf3rH7ZwA==
=Fexg
-----END PGP SIGNATURE-----

--Sig_/mmcFmXyb7NdHX9YYqIh/64f--


From MAILER-DAEMON Wed May 17 16:33:22 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1dB5dK-0004gZ-3O
	for mharc-gpsd-dev@gnu.org; Wed, 17 May 2017 16:33:22 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:59479)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1dB5dD-0004ez-Mr
	for gpsd-dev@nongnu.org; Wed, 17 May 2017 16:33:16 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@fwright.net>) id 1dB5dA-0004Su-MA
	for gpsd-dev@nongnu.org; Wed, 17 May 2017 16:33:15 -0400
Received: from d.mail.sonic.net ([64.142.111.50]:46438)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <fw@fwright.net>) id 1dB5dA-0004S9-CM
	for gpsd-dev@nongnu.org; Wed, 17 May 2017 16:33:12 -0400
Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19])
	by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPS id v4HKX7Qj002052
	(version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <gpsd-dev@nongnu.org>; Wed, 17 May 2017 13:33:07 -0700
Received: from bolt.sonic.net (localhost.localdomain [127.0.0.1])
	by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id v4HKX70t019148
	for <gpsd-dev@nongnu.org>; Wed, 17 May 2017 13:33:07 -0700
Received: from localhost (fw@localhost)
	by bolt.sonic.net (8.13.6/8.12.1/Submit) with ESMTP id v4HKX7B5019145
	for <gpsd-dev@nongnu.org>; Wed, 17 May 2017 13:33:07 -0700
X-Authentication-Warning: bolt.sonic.net: fw owned process doing -bs
Date: Wed, 17 May 2017 13:33:07 -0700 (PDT)
From: Fred Wright <fw@fwright.net>
X-X-Sender: fw@bolt.sonic.net
To: gpsd dev <gpsd-dev@nongnu.org>
In-Reply-To: <20170516140203.7f2aec76@spidey.rellim.com>
Message-ID: <Pine.LNX.4.58L1X.1705171330550.18039@bolt.sonic.net>
References: <20170516140203.7f2aec76@spidey.rellim.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sonic-CAuth: UmFuZG9tSVYwQmZPLQmphWHcZnborAJywI4MkBaiQzgOZ4mJ9BnIIXRwtlO36B8/KWHKqyzqJJN40sd5F2sP6PMhF+1qImUw
X-Sonic-ID: C;3vwbCUA75xG+woo9YI2qTQ== M;7jA3CUA75xG+woo9YI2qTQ==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 64.142.111.50
Subject: Re: [gpsd-dev] =?utf-8?q?=E2=9C=98gpsd_next_release_soon?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 17 May 2017 20:33:16 -0000


On Tue, 16 May 2017, Gary E. Miller wrote:

> Long time since a gpsd release.  Long overdue.
>
> Anybody see any reason not to release 3.17 in the next few days?

Not a strong reason, though there were a couple of things I'd wanted to
get into the next release.  But I'm in the midst of a major move right now
and don't have time to even comment adequately, let alone do any actual
work.

Fred Wright


From MAILER-DAEMON Mon May 29 16:58:31 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1dFRkF-0003gE-Ix
	for mharc-gpsd-dev@gnu.org; Mon, 29 May 2017 16:58:31 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:35637)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <robbat2@bohr-int.orbis-terrarum.net>)
	id 1dFPxQ-00033g-2J
	for gpsd-dev@nongnu.org; Mon, 29 May 2017 15:04:00 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <robbat2@bohr-int.orbis-terrarum.net>)
	id 1dFPxP-0001PB-5t
	for gpsd-dev@nongnu.org; Mon, 29 May 2017 15:04:00 -0400
Received: from dev.gentoo.org ([2001:470:ea4a:1:5054:ff:fec7:86e4]:51245
	helo=smtp.gentoo.org)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <robbat2@bohr-int.orbis-terrarum.net>)
	id 1dFPxP-0001Jx-0C
	for gpsd-dev@nongnu.org; Mon, 29 May 2017 15:03:59 -0400
Received: from grubbs.orbis-terrarum.net (localhost [127.0.0.1])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id CD3B63416EC
	for <gpsd-dev@nongnu.org>; Mon, 29 May 2017 19:03:50 +0000 (UTC)
Received: (qmail 27757 invoked by uid 129); 29 May 2017 19:03:50 -0000
X-HELO: bohr-int.orbis-terrarum.net
Authentication-Results: orbis-terrarum.net; auth=pass (plain)
	smtp.auth=robbat2-bohr@orbis-terrarum.net
Received: from Unknown (HELO bohr-int.orbis-terrarum.net) (2001:470:e889:1::8)
	by orbis-terrarum.net (qpsmtpd/0.95) with ESMTPSA
	(ECDHE-RSA-AES256-GCM-SHA384 encrypted);
	Mon, 29 May 2017 19:03:50 +0000
Received: (nullmailer pid 31100 invoked by uid 10000);
	Sun, 28 May 2017 20:51:32 -0000
From: "Robin H. Johnson" <robbat2@gentoo.org>
To: gpsd-dev@nongnu.org
Cc: "Robin H. Johnson" <robbat2@gentoo.org>
Date: Sun, 28 May 2017 13:51:30 -0700
Message-Id: <20170528205131.31057-1-robbat2@gentoo.org>
X-Mailer: git-send-email 2.13.0
X-Virus-Checked: Checked by ClamAV on orbis-terrarum.net
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:ea4a:1:5054:ff:fec7:86e4
X-Mailman-Approved-At: Mon, 29 May 2017 16:58:27 -0400
Subject: [gpsd-dev] [PATCH 1/2] gpsprof: fix replot
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 May 2017 19:04:01 -0000

gpsprof's replot functionality feeds JSON back to a session, but relies
on the oldstyle keydict to read fields out for analysis.

Refactor gps.gps.read() to have common code for handling JSON input &
using the shim-setter, then wire gpsprof to feed JSON into the new
function.

For any JSON errors detected, print a useful message and continue
instead of aborting.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
---
 gps/gps.py | 10 +++++++---
 gpsprof    |  5 ++++-
 2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/gps/gps.py b/gps/gps.py
index d6188c7c..213b0920 100755
--- a/gps/gps.py
+++ b/gps/gps.py
@@ -257,11 +257,15 @@ class gps(gpscommon, gpsdata, gpsjson):
         if status <= 0:
             return status
         if self.response.startswith("{") and self.response.endswith("}\r\n"):
-            self.unpack(self.response)
-            self.__oldstyle_shim()
-            self.valid |= PACKET_SET
+            self.interpret_json(self.response)
         return 0
 
+    def read_json(self, json):
+        "Read and interpret provided JSON data."
+        self.unpack(json)
+        self.__oldstyle_shim()
+        self.valid |= PACKET_SET
+
     def __next__(self):
         "Python 3 version of next()."
         if self.read() == -1:
diff --git a/gpsprof b/gpsprof
index 73d064ef..05483506 100755
--- a/gpsprof
+++ b/gpsprof
@@ -149,7 +149,10 @@ class plotter(object):
         self.session = gps.gps(host=None)
         for line in infp:
             baton.twirl()
-            self.session.unpack(line)
+            try:
+                self.session.read_json(line)
+            except gps.client.json_error:
+                sys.stderr.write("WARNING: JSON parsing error:", line.strip())
             if self.session.data["class"] == "DEVICES":
                 self.device = copy.copy(self.session.data["devices"][0])
             elif self.session.data["class"] not in self.watch:
-- 
2.13.0



From MAILER-DAEMON Mon May 29 16:58:32 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1dFRkG-0003gy-7h
	for mharc-gpsd-dev@gnu.org; Mon, 29 May 2017 16:58:32 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:35611)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <robbat2@bohr-int.orbis-terrarum.net>)
	id 1dFPxN-00032D-8G
	for gpsd-dev@nongnu.org; Mon, 29 May 2017 15:03:58 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <robbat2@bohr-int.orbis-terrarum.net>)
	id 1dFPxL-0001Jp-SW
	for gpsd-dev@nongnu.org; Mon, 29 May 2017 15:03:57 -0400
Received: from dev.gentoo.org ([2001:470:ea4a:1:5054:ff:fec7:86e4]:54497
	helo=smtp.gentoo.org)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <robbat2@bohr-int.orbis-terrarum.net>)
	id 1dFPxL-0001Gs-Me
	for gpsd-dev@nongnu.org; Mon, 29 May 2017 15:03:55 -0400
Received: from grubbs.orbis-terrarum.net (localhost [127.0.0.1])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id B8C113416E4
	for <gpsd-dev@nongnu.org>; Mon, 29 May 2017 19:03:48 +0000 (UTC)
Received: (qmail 27682 invoked by uid 129); 29 May 2017 19:03:48 -0000
X-HELO: bohr-int.orbis-terrarum.net
Authentication-Results: orbis-terrarum.net; auth=pass (plain)
	smtp.auth=robbat2-bohr@orbis-terrarum.net
Received: from Unknown (HELO bohr-int.orbis-terrarum.net) (2001:470:e889:1::8)
	by orbis-terrarum.net (qpsmtpd/0.95) with ESMTPSA
	(ECDHE-RSA-AES256-GCM-SHA384 encrypted);
	Mon, 29 May 2017 19:03:47 +0000
Received: (nullmailer pid 31113 invoked by uid 10000);
	Sun, 28 May 2017 20:51:33 -0000
From: "Robin H. Johnson" <robbat2@gentoo.org>
To: gpsd-dev@nongnu.org
Cc: "Robin H. Johnson" <robbat2@gentoo.org>
Date: Sun, 28 May 2017 13:51:31 -0700
Message-Id: <20170528205131.31057-2-robbat2@gentoo.org>
X-Mailer: git-send-email 2.13.0
In-Reply-To: <20170528205131.31057-1-robbat2@gentoo.org>
References: <20170528205131.31057-1-robbat2@gentoo.org>
X-Virus-Checked: Checked by ClamAV on orbis-terrarum.net
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2001:470:ea4a:1:5054:ff:fec7:86e4
X-Mailman-Approved-At: Mon, 29 May 2017 16:58:27 -0400
Subject: [gpsd-dev] [PATCH 2/2] gpsprof: accept valid samples only.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 May 2017 19:03:58 -0000

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
---
 gpsprof | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gpsprof b/gpsprof
index 05483506..ef491678 100755
--- a/gpsprof
+++ b/gpsprof
@@ -179,7 +179,8 @@ class spaceplot(plotter):
 
     def sample(self):
         # Watch out for the NaN value from gps.py.
-        self.fixes.append((self.session.fix.latitude, self.session.fix.longitude, self.session.fix.altitude))
+        if (self.session.valid & (gps.ONLINE_SET | gps.PACKET_SET | gps.LATLON_SET)):
+            self.fixes.append((self.session.fix.latitude, self.session.fix.longitude, self.session.fix.altitude))
         return True
 
     def header(self):
-- 
2.13.0



From MAILER-DAEMON Tue May 30 16:50:15 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1dFo5n-0002GS-RO
	for mharc-gpsd-dev@gnu.org; Tue, 30 May 2017 16:50:15 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:37047)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <schwehr@gmail.com>) id 1dFnDn-00050L-Bv
	for gpsd-dev@nongnu.org; Tue, 30 May 2017 15:54:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <schwehr@gmail.com>) id 1dFnDm-00025h-DE
	for gpsd-dev@nongnu.org; Tue, 30 May 2017 15:54:27 -0400
Received: from mail-wr0-x229.google.com ([2a00:1450:400c:c0c::229]:34496)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <schwehr@gmail.com>) id 1dFnDm-00025K-58
	for gpsd-dev@nongnu.org; Tue, 30 May 2017 15:54:26 -0400
Received: by mail-wr0-x229.google.com with SMTP id g76so6636383wrd.1
	for <gpsd-dev@nongnu.org>; Tue, 30 May 2017 12:54:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
	h=mime-version:from:date:message-id:subject:to;
	bh=C0l2VvG7dxHoLnp13EpJfJ7HUfaKjq1fhOMtH+y+4Jo=;
	b=t5fkkqDLot0wBbmw/faYn9dULhwQJgMzl7L9ZeMAbBwGLt36OQkXccGsumxAG9sAH1
	c7rswFMmyx+N/FLavydVMiNpw7xDgzM3fr8c0H090ogy1guQ47mkoTMRXxe4UdBK8H+a
	nZ1+3SdNhU6UifWirP/kHTmMewJ9oqWYyQYkxfYB9QbVnWjjGDW34Ee2PJFyyCwJyQSO
	ze81X4I/Yad9FwDY0tZOSBNbczGbcXsd0tECmDlPey3ImJDdd3aaQT5vC7z2BulbNk6G
	EEwibnWzhHWl3k43aTNkPinGTqInKMAL1yTB4be/8o/8x0UjxAeywbrcwdVKQnIVtJrY
	/+0A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
	bh=C0l2VvG7dxHoLnp13EpJfJ7HUfaKjq1fhOMtH+y+4Jo=;
	b=Ck9Fmisbl0tlnmfZJPJBmSciFUL/hZnVSdGrqnmLzXu6mKChCDBN4VIwGD14iiOu1y
	5wHHi2BkTK2Ocec/Xuf0Zx3Z/rcsURlNSB5Q5zQ+3ui121YD/rBrAH0cReC/nn6Vg6ZU
	z5kG6Wu7Z+6xrkllbUdtHPTocDWBrW3EKFMU4vleI1xB+tgBuhYqkWN2NXgvnZF5nThH
	eP4qprgUID4Ki+955KguLMEa5gORKlHZZahzvqb6cVTPrnSkGUyQ+nLYteHuFZS/1DRH
	SZcAfzepmy/x9OcXjTU5vAS6e/JrQEbNQxv4phK7s6YhTuTFBalGUcU6hjFkAbS0FGbX
	eYJg==
X-Gm-Message-State: AODbwcAAH/eyQeAGvQaha2J3eHZuawu6O6ycJbDK5TLAPCL1q0IGYSad
	SHEbzgkJ9XmeGRU87m0asHs4WDihSZMK
X-Received: by 10.223.135.227 with SMTP id c32mr10227514wrc.10.1496174064326; 
	Tue, 30 May 2017 12:54:24 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.28.214.3 with HTTP; Tue, 30 May 2017 12:54:23 -0700 (PDT)
From: Kurt Schwehr <schwehr@gmail.com>
Date: Tue, 30 May 2017 12:54:23 -0700
Message-ID: <CACmBxyt36gwr1qaqygnyVR1PZO-Y3sE3yht06Y4vjhyQbbvbwA@mail.gmail.com>
To: gpsd-dev@nongnu.org
Content-Type: multipart/mixed; boundary="001a11460be4a088450550c32b57"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2a00:1450:400c:c0c::229
X-Mailman-Approved-At: Tue, 30 May 2017 16:50:15 -0400
Subject: [gpsd-dev] Patch: Fix ref-leak of PyObject_Call
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev/>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 30 May 2017 19:54:29 -0000

--001a11460be4a088450550c32b57
Content-Type: multipart/alternative; boundary="001a11460be4a088400550c32b55"

--001a11460be4a088400550c32b55
Content-Type: text/plain; charset="UTF-8"

Tested with scons check.

This is my first use of git format-patch, so hopefully I haven't bungled
anything.

-kurt

Author: Kurt Schwehr <schwehr@google.com>

    Fix ref-leak of PyObject_Call.

    Py_XDECREF is slightly safer than Py_DECREF (not NULL-safe).

    https://docs.python.org/3/extending/extending.html

    The return value is a brand new object, or it is an existing object
    whose reference count has been incremented.

--001a11460be4a088400550c32b55
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Tested with scons check.</div><div><br></div><div>Thi=
s is my first use of git format-patch, so hopefully I haven&#39;t bungled a=
nything.</div><div><br></div><div>-kurt</div><div><br></div><div><div>Autho=
r: Kurt Schwehr &lt;<a href=3D"mailto:schwehr@google.com">schwehr@google.co=
m</a>&gt;</div><div><br></div><div>=C2=A0 =C2=A0 Fix ref-leak of PyObject_C=
all.</div><div>=C2=A0 =C2=A0=C2=A0</div><div>=C2=A0 =C2=A0 Py_XDECREF is sl=
ightly safer than Py_DECREF (not NULL-safe).</div><div>=C2=A0 =C2=A0=C2=A0<=
/div><div>=C2=A0 =C2=A0 <a href=3D"https://docs.python.org/3/extending/exte=
nding.html">https://docs.python.org/3/extending/extending.html</a></div><di=
v>=C2=A0 =C2=A0=C2=A0</div><div>=C2=A0 =C2=A0 The return value is a brand n=
ew object, or it is an existing object</div><div>=C2=A0 =C2=A0 whose refere=
nce count has been incremented.</div></div><div><br></div><div class=3D"gma=
il_signature"></div>
</div>

--001a11460be4a088400550c32b55--
--001a11460be4a088450550c32b57
Content-Type: text/x-patch; charset="US-ASCII"; 
	name="0001-Fix-ref-leak-of-PyObject_Call.patch"
Content-Disposition: attachment; 
	filename="0001-Fix-ref-leak-of-PyObject_Call.patch"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_j3bzcgao0

RnJvbSA5NmFmODUwMDkwMWE3ZTQzYjQzOGZiNjc4NTk0ZjA2NzUwMzgyMjlmIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBLdXJ0IFNjaHdlaHIgPHNjaHdlaHJAZ29vZ2xlLmNvbT4KRGF0
ZTogVHVlLCAzMCBNYXkgMjAxNyAxMjo0MjozNiAtMDcwMApTdWJqZWN0OiBbUEFUQ0hdIEZpeCBy
ZWYtbGVhayBvZiBQeU9iamVjdF9DYWxsLgoKUHlfWERFQ1JFRiBpcyBzbGlnaHRseSBzYWZlciB0
aGFuIFB5X0RFQ1JFRiAobm90IE5VTEwtc2FmZSkuCgpodHRwczovL2RvY3MucHl0aG9uLm9yZy8z
L2V4dGVuZGluZy9leHRlbmRpbmcuaHRtbAoKVGhlIHJldHVybiB2YWx1ZSBpcyBhIGJyYW5kIG5l
dyBvYmplY3QsIG9yIGl0IGlzIGFuIGV4aXN0aW5nIG9iamVjdAp3aG9zZSByZWZlcmVuY2UgY291
bnQgaGFzIGJlZW4gaW5jcmVtZW50ZWQuCi0tLQogZ3BzcGFja2V0LmMgfCAzICsrLQogMSBmaWxl
IGNoYW5nZWQsIDIgaW5zZXJ0aW9ucygrKSwgMSBkZWxldGlvbigtKQoKZGlmZiAtLWdpdCBhL2dw
c3BhY2tldC5jIGIvZ3BzcGFja2V0LmMKaW5kZXggNThlYzVkYjIuLmJiZWVmYjEyIDEwMDY0NAot
LS0gYS9ncHNwYWNrZXQuYworKysgYi9ncHNwYWNrZXQuYwpAQCAtNTMsNyArNTMsOCBAQCB2b2lk
IGdwc2RfbG9nKGNvbnN0IHN0cnVjdCBncHNkX2Vycm91dF90ICplcnJvdXQgVU5VU0VELAogICAg
IGlmICghYXJncykKIAlyZXR1cm47CiAKLSAgICBQeU9iamVjdF9DYWxsKHJlcG9ydF9jYWxsYmFj
aywgYXJncywgTlVMTCk7CisgICAgUHlPYmplY3QgKnJlc3VsdCA9IFB5T2JqZWN0X0NhbGwocmVw
b3J0X2NhbGxiYWNrLCBhcmdzLCBOVUxMKTsKKyAgICBQeV9YREVDUkVGKHJlc3VsdCk7CiAgICAg
UHlfREVDUkVGKGFyZ3MpOwogfQogCi0tIAoyLjEzLjAuMjE5LmdkYjY1YWNjODgyLWdvb2cKCg==
--001a11460be4a088450550c32b57--


