[Libpqxx-general] pqxx::connection crash under libpqxx 2.6.9 and 3.0.0, OSX Leopard
Matthew Fanto
mfanto at gmail.com
Mon Jul 14 20:42:21 UTC 2008
To make things even more interesting (for some definition of
interesting), I am now able to reproduce this bug on the test samples
with the command line. I diffed the build output of "Debug" vs
"Release" in Xcode and found one of the differences to be
-D_GLIBCXX_DEBUG=1 -D_GLIBCXX_DEBUG_PEDANTIC=1
Using the command:
g++ test001.cxx -o test001 -I/usr/local/include
-I/usr/local/pgsql/include -L/usr/local/pgsql/lib -lpq -lpqxx -ggdb
I am able to run the test just fine. No crash.
If however I use the command
g++ test001.cxx -o test001 -I/usr/local/include
-I/usr/local/pgsql/include -L/usr/local/pgsql/lib -lpq -lpqxx
-D_GLIBCXX_DEBUG=1 -D_GLIBCXX_DEBUG_PEDANTIC=1 -ggdb and I step
through, I get the same crash on connection C;
It seems to be -D_GLIBCXX_DEBUG=1 that is causing it, not the PEDANTIC
flag (removing PEDANTIC still causes crash).
I have rebuilt libpq with --enable-debug, to verify that is not the issue.
I don't want to pollute the list if this is not a libpqxx issue.
More information about the Libpqxx-general
mailing list