mapnik/mapnik — Issue #949: python bindings and exceptions failure
Author: springmeyer
Created: 2011-11-14 18:02:06+00:00
State: open

with latest clang:

```
$ /opt/llvm/bin/clang++ --version
clang version 3.1 (trunk 144517)
Target: x86_64-apple-darwin11.2.0
Thread model: posix
```

```

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib	0x00007fff92f1a82a __kill + 10
1 libsystem_c.dylib	0x00007fff8d205a9c abort + 177
2 libsystem_c.dylib	0x00007fff8d2385de __assert_rtn + 146
3 libunwind.dylib	0x00007fff946a12b2 libunwind::CompactUnwinder_x86_64::stepWithCompactEncodingRBPFrame(unsigned int, unsigned long long, libunwind::LocalAddressSpace&, libunwind::Registers_x86_64&) + 122
4 libunwind.dylib	0x00007fff946a11fd libunwind::CompactUnwinder_x86_64::stepWithCompactEncoding(unsigned int, unsigned long long, libunwind::LocalAddressSpace&, libunwind::Registers_x86_64&) + 37
5 libunwind.dylib	0x00007fff946a1171 libunwind::UnwindCursor::step() + 69
6 libunwind.dylib	0x00007fff946a0931 _Unwind_RaiseException + 157
7 libc++abi.dylib	0x00007fff91f80145 __cxa_throw + 101
8 libboost_python-mt.dylib	0x0000000105dacfee boost::python::throw_error_already_set() + 46
9 _mapnik2.so	0x0000000105016754 boost::python::objects::caller_py_function_impl, std::_Rb_tree_iterator > >::next, boost::python::return_value_policy, boost::mpl::vector2&, boost::python::objects::iterator_range, std::_Rb_tree_iterator > >&> > >::operator()(_object*, _object*) + 52
10 libboost_python-mt.dylib	0x0000000105da5553 boost::python::objects::function::call(_object*, _object*) const + 733
11 libboost_python-mt.dylib	0x0000000105da4100 boost::detail::function::void_function_ref_invoker0::invoke(boost::detail::function::function_buffer&) + 32
12 libboost_python-mt.dylib	0x0000000105dad09c boost::python::detail::exception_handler::operator()(boost::function0 const&) const + 174
13 _mapnik2.so	0x000000010509b566 boost::detail::function::function_obj_invoker2, boost::_bi::list3, boost::arg<2>, boost::_bi::value > >, bool, boost::python::detail::exception_handler const&, boost::function0 const&>::invoke(boost::detail::function::function_buffer&, boost::python::detail::exception_handler const&, boost::function0 const&) + 22
14 libboost_python-mt.dylib	0x0000000105dad050 boost::python::detail::exception_handler::operator()(boost::function0 const&) const + 98
15 _mapnik2.so	0x000000010509b636 boost::detail::function::function_obj_invoker2, boost::_bi::list3, boost::arg<2>, boost::_bi::value > >, bool, boost::python::detail::exception_handler const&, boost::function0 const&>::invoke(boost::detail::function::function_buffer&, boost::python::detail::exception_handler const&, boost::function0 const&) + 22
16 libboost_python-mt.dylib	0x0000000105dad103 boost::python::handle_exception_impl(boost::function0) + 99
17 libboost_python-mt.dylib	0x0000000105da462f function_call + 79
18 org.python.python	0x000000010451fd32 PyObject_Call + 97
19 org.python.python	0x000000010452e6e9 0x104518000 + 91881
```