carto-generator
carto-generator copied to clipboard
Exception Propagation
Seems like some peculiarity to my particular set up but exceptions are failing to propagate from mapnik into the generator. Both catch(std::exception) and catch(...) fail to capture the exceptions resulting in an abort trap.
Seems like someone else had similar issues on osx (http://lists.apple.com/archives/unix-porting/2007/Aug/msg00013.html) but I haven't been able to track down any additional details or solutions.
We talked about this may have to do with compiling things with an older clang++ version. Are you still seeing it after upgrading to clang trunk? (or alternatively you could recompile anything previously compiled with clang with g++)
The only two times I've seen this on OSX were with older clang < 3.x and when I had duplicate gcc versions installed (like from macports or something non-apple provided). So are the gcc versions on your machine all apple provided (eg. in /usr/bin or /Developer/usr/bin)?
Yeah, I've tried everything we've discussed. Updated clang to the newest version of trunk and rebuild mapnik2 as well as trying to build everything with g++ exclusively.
clang++ --version clang version 3.0 (trunk 135178) Target: x86_64-apple-darwin10.8.0 Thread model: posix
g++ --version i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
which g++ /usr/bin/g++