Debian Bug report logs - #984534
[PATCH] Missing type conversion hints in libsoci_sqlite3-4.0 lead to std::bad_cast exceptions in Linphone

version graph

Package: soci; Maintainer for soci is William Blough <bblough@debian.org>;

Reported by: Dennis Filder <d.filder@web.de>

Date: Thu, 4 Mar 2021 18:33:00 UTC

Severity: grave

Tags: bullseye, patch, sid, upstream

Found in versions 4.0.1-1, 4.0.1-4

Fixed in version soci/4.0.1-5

Done: William Blough <bblough@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, William Blough <bblough@debian.org>:
Bug#984534; Package soci. (Thu, 04 Mar 2021 18:33:02 GMT) (full text, mbox, link).


Acknowledgement sent to Dennis Filder <d.filder@web.de>:
New Bug report received and forwarded. Copy sent to William Blough <bblough@debian.org>. (Thu, 04 Mar 2021 18:33:02 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Dennis Filder <d.filder@web.de>
To: submit@bugs.debian.org
Subject: [PATCH] Missing type conversion hints in libsoci_sqlite3-4.0 lead to std::bad_cast exceptions in Linphone
Date: Thu, 4 Mar 2021 19:31:58 +0100
[Message part 1 (text/plain, inline)]
Package: soci
Architecture: amd64
Version: 4.0.1-4
Severity: grave
Justification: Breaks linphone
Affects: linphone
Tags: patch upstream sid bullseye

The sqlite3 backend uses a hard-coded map of column data type names in
src/backends/sqlite3/statement.cpp as hints to convert any results
sqlite3 dynamically retyped to text to whatever the caller asked for.
Linphone uses a database schema with MySQL-specific type names that
are not in this map and thus suffers random std::bad_cast exceptions
which are at the heart of #983365 (see badcast.cpp for a reproducer).
The first attached patch adds the missing entries to the map which
fixes the issue.

The optional second patch disables the regeneration of an unneeded
config file to satisfy dpkg-source during repeated builds.

Regards,
Dennis.
[badcast.cpp.gz (application/gzip, attachment)]
[02-add-mysql-ddl-types.patch.gz (application/gzip, attachment)]
[03-disable-test-access-regen.patch.gz (application/gzip, attachment)]

Marked as found in versions 4.0.1-1. Request was from Bernhard Schmidt <berni@debian.org> to control@bugs.debian.org. (Mon, 08 Mar 2021 09:24:10 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, William Blough <bblough@debian.org>:
Bug#984534; Package soci. (Wed, 10 Mar 2021 17:57:09 GMT) (full text, mbox, link).


Acknowledgement sent to Bill Blough <devel@blough.us>:
Extra info received and forwarded to list. Copy sent to William Blough <bblough@debian.org>.

Your message did not contain a Subject field. They are recommended and useful because the title of a Bug is determined using this field. Please remember to include a Subject field in your messages in future.

(Wed, 10 Mar 2021 17:57:09 GMT) (full text, mbox, link).


Message #12 received at 984534@bugs.debian.org (full text, mbox, reply):

From: Bill Blough <devel@blough.us>
To: 983365@bugs.debian.org, 984534@bugs.debian.org
Cc: d.filder@web.de
Date: Wed, 10 Mar 2021 12:54:53 -0500
Hi Dennis,

I did respond to your email on the 7th.  Maybe it wound up in your spam
folder?

At any rate, apologies for the delay - things have been a bit busy the
past several days.

I'm currently building/testing the data type patch, and hope to upload
it to unstable today.  I'll file the unblock request once that's done.

Since we're in the freeze, I'm going to hold off on applying the test
regen patch for now, but I'll add it eventually.

Best regards,
Bill



Reply sent to William Blough <bblough@debian.org>:
You have taken responsibility. (Wed, 10 Mar 2021 19:27:03 GMT) (full text, mbox, link).


Notification sent to Dennis Filder <d.filder@web.de>:
Bug acknowledged by developer. (Wed, 10 Mar 2021 19:27:03 GMT) (full text, mbox, link).


Message #17 received at 984534-close@bugs.debian.org (full text, mbox, reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 984534-close@bugs.debian.org
Subject: Bug#984534: fixed in soci 4.0.1-5
Date: Wed, 10 Mar 2021 19:23:57 +0000
Source: soci
Source-Version: 4.0.1-5
Done: William Blough <bblough@debian.org>

We believe that the bug you reported is fixed in the latest version of
soci, 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 984534@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
William Blough <bblough@debian.org> (supplier of updated soci 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, 10 Mar 2021 12:46:31 -0500
Source: soci
Architecture: source
Version: 4.0.1-5
Distribution: unstable
Urgency: medium
Maintainer: William Blough <bblough@debian.org>
Changed-By: William Blough <bblough@debian.org>
Closes: 984534
Changes:
 soci (4.0.1-5) unstable; urgency=medium
 .
   * Add unsigned type hints to sqlite backend. Closes: 984534
Checksums-Sha1:
 350fd41da004baa7a241ed6219f0cbca096c2ff6 2638 soci_4.0.1-5.dsc
 56595f0aaa37ac09bcf7154ccdba95b80ba52b10 85484 soci_4.0.1-5.debian.tar.xz
 f4d7fef1479261d7dca571b471963ba0d067520a 11398 soci_4.0.1-5_amd64.buildinfo
Checksums-Sha256:
 11076f5d4ef1f549c4731d3b318ec043419b0ebb56451b66fce1c3d2251374bb 2638 soci_4.0.1-5.dsc
 0a05c94b4595daf47eff316e1373648fd577fa8174f022d1a527932700c82946 85484 soci_4.0.1-5.debian.tar.xz
 adf294043f554b61acbb2cc522081bf8dff6e33541b39d752f8a9b320516a798 11398 soci_4.0.1-5_amd64.buildinfo
Files:
 8827512d8dd94c796c99ebae96afd897 2638 libs optional soci_4.0.1-5.dsc
 c42a4e962e4d8df6e556d7d9567397b8 85484 libs optional soci_4.0.1-5.debian.tar.xz
 50c25c6a5a1419b1222c6037681c2c50 11398 libs optional soci_4.0.1-5_amd64.buildinfo

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

iQKnBAEBCACRFiEEJXjSPd76bZ5rVv2gNeEe5JHS9UwFAmBJFrBfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDI1
NzhEMjNEREVGQTZEOUU2QjU2RkRBMDM1RTExRUU0OTFEMkY1NEMTHGJibG91Z2hA
ZGViaWFuLm9yZwAKCRA14R7kkdL1TPHVD/9pFF+Ct5Oyyq0B99yGWoOi55nBaZ24
aMzHnimf1T2/ITHyKNITEEnquvL4h7iW5DyrSux3lLczD5nZwYRXVgwyptXzdmTf
czhGVSta3rSzsLlhHtaZ0Z1/q2GjydW5itOYErOnXV/8bGKA82yEfJ7aqQUZl8AC
jfHMpEA2PcpjxMZy3b3bphEQuliSZT1MhfvfpxzpEgCRiwaZM3czClaDR97H9EQ3
6+3rBo+svv0xZyzpzRry+OKXraWzMToVHV/1vxEem35i5+yBazTXlYgdyCUbIDtr
t2dk7OnqCiWjjLYHE26ijFhW+fURFusWXoGtRMSn6IZgwx2Rzo4FMjKscXoR44J9
q0iSU9aZ9+VBeZ1TGILN2yicFtFUJ/VRa+HG0XXrqfitU2auUjTWZej2rdR9xLKQ
e3dzJ9mH6soY5wPWwtdR+jwoAUXVOKZ5kXdiVUb+7kGydxWoZb22zULEzeyvN2zI
LCPe8wHysvOIINc97o/FeNe2/ojOQ7VN2dCApPEGsCJhkVOIjnwu1gJgDAI2qwKf
EU1abQFcTEt7aNRm03m//N/0wCf6bBdFOtWRRCfjwcQtvo34Kg7IN4Pe/NRJiBxL
YKi3Z2sWPu8dCP+s3+X86tRRl5m5/gRbFlHi2qbxsw1yeLHYeNjEn9ZhhfhUgA1P
JZMLtRAijJOq3w==
=ZRLR
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 13 Apr 2021 07:25:13 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: Sat Nov 25 10:00:28 2023; Machine Name: buxtehude

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.