Your message dated Wed, 23 Apr 2025 09:34:52 +0000
with message-id <e1u7wvi-00cg4o...@fasolo.debian.org>
and subject line Bug#1041898: fixed in libserial 1.0.0+git20250423-1
has caused the Debian Bug report #1041898,
regarding libserial-dev: Exception in destructor causes linked program 
termination
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1041898: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1041898
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: libserial-dev
Version: 1.0.0-9
Severity: important
X-Debbugs-Cc: matsievski...@gmail.com

Dear Maintainer,

This version of the library in some situations may throw an exception from
LibSerial::SerialPort destructor. Since it's marked as noexcept, it can't be
caught and causes termination of the program.
This situation can be modelled with the MWE below:

    #include <libserial/SerialPort.h>
    #include <iostream>

    int
    main(void)
    {
            std::unique_ptr<LibSerial::SerialPort> serial(new
LibSerial::SerialPort("/dev/ttyUSB0"));
            std::cout << "Disconnect cable and press Enter" << std::endl;
            std::cin.get();
            try {
                    serial->Close();
            } catch (const std::runtime_error& err) {
                    std::cout << "Exception: " << err.what() << std::endl;
                    std::flush(std::cout);
            }
            serial.reset();
            return 0;
    }

Here, we connect to some serial dongle, such as USB to serial adapter and
disconnect it in the middle of the program, which causes Input/Output exception
to take place. Even though the exception is caught when the port is closed,
LibSerial::SerialPort destructor rethrows it, causing the program to terminate.

This behaviour is not observed in the latest version of the library
(https://github.com/crayzeewulf/libserial/commit/f1504de092d94148e2ec690bbb1e7ee21889ede7).
Please, consider updating the package to the newer version.


-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (600, 'testing'), (500, 'stable-updates'), (500, 
'stable-security'), (500, 'stable'), (50, 'unstable'), (10, 'unstable-debug'), 
(10, 'testing-debug'), (10, 'stable-debug'), (10, 'experimental-debug'), (10, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.3.0-1-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libserial-dev depends on:
ii  libserial1  1.0.0-9

libserial-dev recommends no packages.

Versions of packages libserial-dev suggests:
pn  libserial-doc  <none>

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: libserial
Source-Version: 1.0.0+git20250423-1
Done: Gianfranco Costamagna <locutusofb...@debian.org>

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

Debian distribution maintenance software
pp.
Gianfranco Costamagna <locutusofb...@debian.org> (supplier of updated libserial 
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 ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 23 Apr 2025 09:19:26 +0200
Source: libserial
Built-For-Profiles: noudeb
Architecture: source
Version: 1.0.0+git20250423-1
Distribution: unstable
Urgency: medium
Maintainer: Gianfranco Costamagna <locutusofb...@debian.org>
Changed-By: Gianfranco Costamagna <locutusofb...@debian.org>
Closes: 1041898 1047546 1049826
Changes:
 libserial (1.0.0+git20250423-1) unstable; urgency=medium
 .
   * New upstream version 1.0.0+git20250423 (Closes: #1041898)
   * Switch to cmake and simplify rules file
     (Closes: #1049826, Closes: #1047546).
   * Add new patch proposed upstream to fix pkgconfig
     file installation
   * Add new patch propoosed upstream to fix build with
     system googletest framework
   * Drop patches, all merged upstream
Checksums-Sha1:
 5a00fa2219bf2d30b74a8e2e368e879686608894 2263 libserial_1.0.0+git20250423-1.dsc
 cb7d93e5267874626d0ebe104a154d8252611553 125195 
libserial_1.0.0+git20250423.orig.tar.gz
 49177ed068ace69229f489928c3ffe1ecefcc3c5 5708 
libserial_1.0.0+git20250423-1.debian.tar.xz
 c821768dcad457fcca2334b2776a1f718493886a 8986 
libserial_1.0.0+git20250423-1_source.buildinfo
Checksums-Sha256:
 48a1a349545870f99b53f0e0d0a99e2fba1541c04785f16eeb8f32d6af67d8c3 2263 
libserial_1.0.0+git20250423-1.dsc
 86d86b69f380221398bb1c4bc5d3fd6266bb167d8a128490e391c37db15d0c1d 125195 
libserial_1.0.0+git20250423.orig.tar.gz
 a2d7ee6cb4d827c2351a828fb596a2062fbe59a881471016eed18c402c01d0d1 5708 
libserial_1.0.0+git20250423-1.debian.tar.xz
 05eb94999a08a2b48f7715eb5f9c221ce8bbb6cb951ace3db33d856de3bcb844 8986 
libserial_1.0.0+git20250423-1_source.buildinfo
Files:
 a3054c7bc53013efc10c42f935497a44 2263 devel optional 
libserial_1.0.0+git20250423-1.dsc
 5de50cffe0d440923d3df137084deeea 125195 devel optional 
libserial_1.0.0+git20250423.orig.tar.gz
 8747f36a985ad3dc04ce44f30651194d 5708 devel optional 
libserial_1.0.0+git20250423-1.debian.tar.xz
 f3c73ea7c239790d65c007da722eaeb6 8986 devel optional 
libserial_1.0.0+git20250423-1_source.buildinfo

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

iQIzBAEBCgAdFiEEkpeKbhleSSGCX3/w808JdE6fXdkFAmgIstcACgkQ808JdE6f
XdnceBAAvscq3hrCbzD5FpuEGaX0TL2JTIknYhECD6IScTnemy+0EE2wMgLssm9m
hstUQ5k2jMj+t8K7RSXo74ngELVilQ7VuXpPpcKgFbXVGbVAVmR0pU/N55ZdakAB
okwH/wVZCzXIYITdSKhH9OAslrBMGFJBReN5AC/f57JXZWojjdl2Fs0rTd/Q++fh
m7/bHPm4hx/k9wXAAQW5GI4qxRzKyVvTyCnskEOU1fC5QSN9fFXz8J5OXfjsr2sX
IEYoEWZxDUhDFvNlflX4bGy38oeEdQUyan2aoUTg3N4czeXfFpWQFMVLiM1h/iYd
XRyxPa0AqCtnfM0q2FAq5V72s7Sl+Zne/PosgUiDGNjpmoJ9/lUXoPk3pHS5rg2E
cblDUr9sqhEHJfD+w1qF9MKYQpEs3+X8IPhiaNRnjDOInVSsCuTCPTPHRljTTs4x
8Q7l9/QJrdIbFFuFZen8d716R0S9OfHyrCNQ2tkRylwB/cHBRTlxuisi++wsQtuC
ybtTSG6MRzyO9u/1Fy5Qab1/iDG6DwTrPPJxzQfdqbKds80mSwjDtALGThjwSaRV
05VwExQO33qr2HjEC1nEt5DDn3CAyECzKl5On4kIwIr6ADRceNvVVbaUrT6/Kl4N
1T3u9Kb1ibl/flvk2MrUhllXF0qiGGYxFYDUvIboE3SzXzmQ0UE=
=ICU8
-----END PGP SIGNATURE-----

Attachment: pgpBlO1ng24jH.pgp
Description: PGP signature


--- End Message ---

Reply via email to