The issue can be reproduced by using upstream version 7.8.1 and 7.9.2.

However, a slightly modified version of the example works with the
latest release 8.0.0 (Git: https://github.com/jtv/libpqxx , tag
"8.0.0"):

#include <pqxx/pqxx>
int main() {
   try {
      pqxx::connection c; 
   } catch(...) { }
   return 0;
}

Compile and run: g++ t1.cc -o t1 -std=c++20 -lpqxx && valgrind ./t1

An update to libpqxx-8.0.0 may be the straightforward solution for
Ubuntu 26.04.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2143722

Title:
  libpqxx: crash on Ubuntu 26.04 alpha with "free(): double free
  detected in tcache 2"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/hipercontracer/+bug/2143722/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to