Darwin Clang Static runtime issue

Please post support and help requests here.
Posts: 3
Joined: 06 Jul 2013, 00:17

Darwin Clang Static runtime issue

Postby icecream » 25 Jul 2013, 16:20

Hi folks

I seem to be having difficulties using the Data module when compiling with Clang in static mode. In particular, running the Binding.cpp sample, I encounter this exception when compiling with the iphone simulator:
Assertion violation: _connectors.end() != it [in file "src/SessionFactory.cpp", line 90]
libc++abi.dylib: terminate called throwing an exception
Abort trap: 6

this occurs as soon as Session session("SQLite", "sample.db"); is called. An identical error seems to occur for all clang configs when set to static build. Darwin-gcc seems to work fine in static mode. I'm not sure if this is restricted to Data module (all tested Data samples fail). The Net module sample httpget seems to work fine however.

Some further info:

clang -v
Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.4.0
Thread model: posix

OS X 10.8.4

typical config command:
./configure --config=Darwin-clang --omit=CppParser,CodeGeneration,Remoting/RemoteGen,Crypto,NetSSL_OpenSSL,Data/ODBC,Data/MySQL

poco checkout at 448d4f3da37acbb2e15b6aea6fbd0524a2e29235 (Thu Jul 25 13:23:56 2013 +0200)

Let me know if any other info is required.

Posts: 3
Joined: 06 Jul 2013, 00:17

Re: Darwin Clang Static runtime issue

Postby icecream » 27 Jul 2013, 08:09

not a fix, but using the alternate session creator works fine:

// Session session("SQLite", "sample.db");
Session session(SessionFactory::instance().create(Poco::Data::SQLite::Connector::KEY, "sample.db"));

Return to “Support”

Who is online

Users browsing this forum: No registered users and 4 guests