SQLite3 desctrutor is declared as noexcept(true), but it can throw an exception #2012
Labels
Priority: MEDIUM
Triaged
Someone on the DNF 5 team has read the issue and determined the next steps to take
DNF5 suffers from the same issue as libdnf rpm-software-management/libdnf#1686:
SQLite3 destructor defined in libdnf5/utils/sqlite3/sqlite3.hpp has interface implicitly noexcept(true), but in reality the implementation calls SQLite3::close() which throws SQLite3SQLError.
We should hide the exception, ideally log the exception message, and review all places of destroying SQLite3 to close the database explicitly.
The text was updated successfully, but these errors were encountered: