Debian Bug report logs -
#753560
libjsoncpp: Numerical values cannot be converted to string
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, José Luis Segura Lucas <josel.segura@gmx.es>:
Bug#753560; Package src:libjsoncpp.
(Thu, 03 Jul 2014 06:57:06 GMT) (full text, mbox, link).
Acknowledgement sent
to Martin Quinson <martin.quinson@loria.fr>:
New Bug report received and forwarded. Copy sent to José Luis Segura Lucas <josel.segura@gmx.es>.
(Thu, 03 Jul 2014 06:57:06 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Source: libjsoncpp
Version: 0.6.0~rc2-3
Severity: normal
Tag: patch
Hello,
libjsoncpp raises an exception when asked to convert a numerical value
to string. According to the investigation of Matthew Bekkema, this is
what causes the bug #733974 against the package minetest: my upstream
fixed their version of libjsoncpp, but the bug still occures in the
debian package, so debian clients are segfaulting when communicating
with non-debian servers. Could you please consider integrating the
attached patch (authored by Matthew)? I could NMU your package to get
that bug fixed, if you prefer.
Here is a simple valid program that is misbehaving:
------------------------------>8----
#include <iostream>
#include <json/json.h>
const std::string test_data = "{\"test\": 9001}";
int main() {
Json::Value root;
Json::Reader reader;
reader.parse(test_data,root);
if (root["test"].isConvertibleTo(Json::stringValue)) {
std::cout << root["test"].asString() << std::endl;
}
return 0;
}
-----8<-----------------------------
Instead of displaying a simple "9001", it shows:
| terminate called after throwing an instance of 'std::runtime_error'
| what(): Type is not convertible to string
The fix to that bug is a one-liner. As you can see, the patch also
fixes two other errors in the source, where null values where marked
as convertible to arrays and to objects. This is obviously wrong, as
trying to convert null to these types raises the segfaults that we are
observing in minetest.
Thanks for your work,
Mt.
-- System Information:
Debian Release: jessie/sid
APT prefers testing-updates
APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.14-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--
I don't care whichever programming language we choose, as long as it's C.
[patch (text/plain, attachment)]
[signature.asc (application/pgp-signature, inline)]
Added tag(s) patch.
Request was from Martin Quinson <martin.quinson@loria.fr>
to control@bugs.debian.org.
(Thu, 03 Jul 2014 07:03:25 GMT) (full text, mbox, link).
Added indication that bug 753560 blocks 733974,748896
Request was from Martin Quinson <martin.quinson@loria.fr>
to control@bugs.debian.org.
(Thu, 03 Jul 2014 07:03:27 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, José Luis Segura Lucas <josel.segura@gmx.es>:
Bug#753560; Package src:libjsoncpp.
(Tue, 16 Sep 2014 09:09:05 GMT) (full text, mbox, link).
Acknowledgement sent
to RaANdOoM <random.m3m@gmail.com>:
Extra info received and forwarded to list. Copy sent to José Luis Segura Lucas <josel.segura@gmx.es>.
(Tue, 16 Sep 2014 09:09:05 GMT) (full text, mbox, link).
Message #14 received at 753560@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Patch is not needed.
Version of libjsoncpp in the repo is too old. Current version on the GitHub
dont has this bug, because function 'valueToString()' used for value types
that can throw exception.
I think package in repo must be updated with current version of libjsoncpp.
--
С уважением,
Савкин Сергей
[Message part 2 (text/html, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, José Luis Segura Lucas <josel.segura@gmx.es>:
Bug#753560; Package src:libjsoncpp.
(Mon, 17 Nov 2014 18:24:09 GMT) (full text, mbox, link).
Acknowledgement sent
to Markus Koschany <apo@gambaru.de>:
Extra info received and forwarded to list. Copy sent to José Luis Segura Lucas <josel.segura@gmx.es>.
(Mon, 17 Nov 2014 18:24:09 GMT) (full text, mbox, link).
Message #21 received at 753560@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On Thu, 3 Jul 2014 09:02:18 +0200 Martin Quinson
<martin.quinson@loria.fr> wrote:
> On Sun, Jun 22, 2014 at 05:01:15PM +1000, Matthew Bekkema wrote:
> > I found out what changes to libjsoncpp allow everything to work. I
> > don't have access to Debian Sid at the moment so I've only tested this
> > on Wheezy.
>
> I just opened a bug against libjsoncpp (#753560) to ask for the
> inclusion of that patch. Thanks very much for sorting that out, your
> precious work is really appreciated.
>
> Bye, Mt.
Hi,
I have recently spent some time to learn more about Minetest. This bug
is a serious issue because it prevents players from browsing the public
server list. Since Minetest is a multiplayer online game, this is really
a show-stopper for a lot of people including myself. Obviously the bug
itself lies in libjsoncpp.
I am going to merge #733974 with #753560 and raise the severity to
serious. The patch from Matthew Bekkema works. I am attaching the
debdiff to this bug report.
Regards,
Markus
[libjsoncpp.debdiff (text/plain, attachment)]
[signature.asc (application/pgp-signature, attachment)]
Removed indication that bug 753560 blocks 733974,748896
Request was from Markus Koschany <apo@gambaru.de>
to control@bugs.debian.org.
(Mon, 17 Nov 2014 18:24:26 GMT) (full text, mbox, link).
Removed indication that bug 753560 blocks
Request was from Markus Koschany <apo@gambaru.de>
to control@bugs.debian.org.
(Mon, 17 Nov 2014 18:24:28 GMT) (full text, mbox, link).
Severity set to 'serious' from 'normal'
Request was from Markus Koschany <apo@gambaru.de>
to control@bugs.debian.org.
(Mon, 17 Nov 2014 18:24:29 GMT) (full text, mbox, link).
Added indication that 753560 affects minetest
Request was from Markus Koschany <apo@gambaru.de>
to control@bugs.debian.org.
(Mon, 17 Nov 2014 18:24:30 GMT) (full text, mbox, link).
Severity set to 'normal' from 'serious'
Request was from Markus Koschany <apo@gambaru.de>
to control@bugs.debian.org.
(Mon, 17 Nov 2014 18:33:11 GMT) (full text, mbox, link).
Removed indication that 753560 affects minetest
Request was from Markus Koschany <apo@gambaru.de>
to control@bugs.debian.org.
(Mon, 17 Nov 2014 18:33:12 GMT) (full text, mbox, link).
Added indication that 753560 affects minetest
Request was from Markus Koschany <apo@gambaru.de>
to control@bugs.debian.org.
(Mon, 17 Nov 2014 18:39:16 GMT) (full text, mbox, link).
Severity set to 'serious' from 'normal'
Request was from Markus Koschany <apo@gambaru.de>
to control@bugs.debian.org.
(Mon, 17 Nov 2014 18:39:21 GMT) (full text, mbox, link).
Reply sent
to Martin Quinson <mquinson@debian.org>:
You have taken responsibility.
(Wed, 19 Nov 2014 10:00:11 GMT) (full text, mbox, link).
Notification sent
to Martin Quinson <martin.quinson@loria.fr>:
Bug acknowledged by developer.
(Wed, 19 Nov 2014 10:00:11 GMT) (full text, mbox, link).
Message #46 received at 753560-close@bugs.debian.org (full text, mbox, reply):
Source: libjsoncpp
Source-Version: 0.6.0~rc2-3.1
We believe that the bug you reported is fixed in the latest version of
libjsoncpp, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 753560@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Martin Quinson <mquinson@debian.org> (supplier of updated libjsoncpp package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Wed, 19 Nov 2014 09:14:06 +0100
Source: libjsoncpp
Binary: libjsoncpp0 libjsoncpp-dev
Architecture: source amd64
Version: 0.6.0~rc2-3.1
Distribution: unstable
Urgency: medium
Maintainer: José Luis Segura Lucas <josel.segura@gmx.es>
Changed-By: Martin Quinson <mquinson@debian.org>
Description:
libjsoncpp-dev - Library for reading and writing JSON for C++ (devel files)
libjsoncpp0 - Library for reading and writing JSON for C++
Closes: 753560
Changes:
libjsoncpp (0.6.0~rc2-3.1) unstable; urgency=medium
.
[ Markus Koschany ]
* Non-maintainer upload.
* Add value-as-string.patch. (Closes: #753560)
Fix conversion of numerical values to string that caused crashes in
reverse-dependencies such as Minetest.
Checksums-Sha1:
e452a1a046a59532a0573f94ad9440519eaf418d 1891 libjsoncpp_0.6.0~rc2-3.1.dsc
5a6b180ed0ad20a29b0b0a2a88167a4733c8ae2a 4852 libjsoncpp_0.6.0~rc2-3.1.debian.tar.xz
41e60e93412823800ae7ce336d52c689f8f25dbf 71826 libjsoncpp0_0.6.0~rc2-3.1_amd64.deb
7724f96a37ed008f4427ffbbc0d83930dbd75ee4 216536 libjsoncpp-dev_0.6.0~rc2-3.1_amd64.deb
Checksums-Sha256:
09ac4c902e575276abcfc876191f5b6d96f2cd61f8d13a9653f8ec7c7faaf9b0 1891 libjsoncpp_0.6.0~rc2-3.1.dsc
d2abe156f2c2e57661da480b3c8fd4a4618f78597742e7195907c28c4ba68de1 4852 libjsoncpp_0.6.0~rc2-3.1.debian.tar.xz
5daae105b5d8300661ef5c18ead332b513913bf332296b38f3008f247cce9fb0 71826 libjsoncpp0_0.6.0~rc2-3.1_amd64.deb
b050d84e611c6283beb26a59f229063bf8ca76848a7ab5ecf70acef965f0904c 216536 libjsoncpp-dev_0.6.0~rc2-3.1_amd64.deb
Files:
6be9166cc752466c531a199ffb23b285 71826 libs extra libjsoncpp0_0.6.0~rc2-3.1_amd64.deb
778463c64affdd4c7a738eee7b7387a4 216536 libdevel extra libjsoncpp-dev_0.6.0~rc2-3.1_amd64.deb
e99c8903001ca8f8adcead25c9116121 1891 libs extra libjsoncpp_0.6.0~rc2-3.1.dsc
e9341b399247f0c27833fb55681e847c 4852 libs extra libjsoncpp_0.6.0~rc2-3.1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJUbFHRAAoJEJi9lyRPc76ndOYP/3v8R4gnjb8sj//efVS+WT3O
59Ejf9vXiTL3p6G4V5UIu18l7C7vmTDzvzx+2o/AdgkRb2q6NahG0Fn5nIerGF6E
mrvzCPdoRgMXJYih5OLmx1+LssvYInPqUZdsAzdo81otQzSmUKaFiu7HV9zpk2Z1
JFSxOIn6d7S16pQP9XVi8Vxn7gxV1GVi7k+pRR0DjzwTS3Pb2TN4rgSotLtbmnLX
ymQOwk9gn2iP0Hv9iL7jKM2VyWCnAXKY7javz24HOBVphdW5eldOXCPd6zXL6r5l
yoPkGOxDnsfxshYMQZBc1NrP5mIQuAv6FxaWJYGcV+h5dTLKbe5jEagVqI7STeqv
0DJ/cTWscLK+r1syCP/GB6DBOFTJ6LDpItOcJaWHdBcggvKK8YC2KovlljQiWV7Y
KJxp819A0N8yalfTBqOROrTgClTEcBtmOiGyvXEzeGYbrtBdrNQFcfAbRBzEO2rd
UbUx8ZotbhlS9r9KHrHMVGZWz1IBMIkFYvs4OUk8qDUrte1qXwg8Ju705s1Yr9vq
8WB8CxwQSzPQB0/0KItH6ZIwfrV95plh9NUiva9t4x4RqueCdRpAx/xONOIDReCq
Qw9SmCcvs+PT0WgwEUT1WnpulMX334S5tQ6zS/BD8wRLZmU1MxUK+2ujToVgkC6t
yz63UMYxxmSPqfGa0TT1
=MVWX
-----END PGP SIGNATURE-----
Reply sent
to Martin Quinson <mquinson@debian.org>:
You have taken responsibility.
(Wed, 19 Nov 2014 10:00:12 GMT) (full text, mbox, link).
Notification sent
to Mantas Kriaučiūnas <mantas@akl.lt>:
Bug acknowledged by developer.
(Wed, 19 Nov 2014 10:00:12 GMT) (full text, mbox, link).
Reply sent
to Martin Quinson <mquinson@debian.org>:
You have taken responsibility.
(Wed, 19 Nov 2014 10:00:13 GMT) (full text, mbox, link).
Notification sent
to Fabian Rodriguez <magicfab@member.fsf.org>:
Bug acknowledged by developer.
(Wed, 19 Nov 2014 10:00:13 GMT) (full text, mbox, link).
Added tag(s) sid and jessie.
Request was from Holger Levsen <holger@layer-acht.org>
to control@bugs.debian.org.
(Sun, 23 Nov 2014 16:12:22 GMT) (full text, mbox, link).
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Tue, 23 Dec 2014 07:32:26 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jul 2 04:02:33 2023;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.