[Libpqxx-general] pqxx::connection crash under libpqxx 2.6.9 and 3.0.0, OSX Leopard
Jeroen Vermeulen
jtv at xs4all.nl
Fri Jul 18 08:22:40 UTC 2008
Matthew Fanto wrote:
> 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;
So clearly a matter of compiler setup. Glad you've got it working!
> 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.
Then let's make it non-pollution. :-) Care to write up your Xcode
notes so we can include them in the source distribution? Could save
future users with the same environment the trouble.
Jeroen
More information about the Libpqxx-general
mailing list