[C++-sig] Abort trap

Sean Ross-Ross srossross at gmail.com
Sat Apr 5 17:33:25 CEST 2008


Hi, I get an abort trap running a python script that calls a c++  
function that calls a python function. this happens when the inner  
python function raises an exception.
does anyone know why?

Here is part of the gdb backtrace. I noticed that in line #8  
throw_error_already_set is called, what am I doing that this function  
does not work for me.

Program received signal SIGABRT, Aborted.
0x9003d66c in kill ()
(gdb) backtrace
#0  0x9003d66c in kill ()
#1  0x9010e8cf in raise ()
#2  0x9010d422 in abort ()
#3  0x007c5798 in _Unwind_SetGR (context=0xbfffe038, index=0,  
val=6882112) at ../../gcc-4.2.2/gcc/unwind-dw2.c:223
#4  0x0207d308 in __gxx_personality_v0 (version=1, actions=2,  
exception_class=5138137972254386944, ue_header=0x690340,  
context=0xbfffe038) at ../../../../gcc-4.2.2/libstdc++-v3/libsupc++/ 
eh_personality.cc:681
#5  0x90bd7930 in _Unwind_RaiseException_Phase2 ()
#6  0x90bd7b60 in _Unwind_RaiseException ()
#7  0x90b43747 in __cxa_throw ()
#8  0x00599874 in boost::python::throw_error_already_set ()
#9  0x01019a9f in boost::python::expect_non_null<_object> (x=0x0) at / 
sw/include/boost/python/errors.hpp:45
#10 0x01019b9c in  
boost::python::converter::detail::return_object_manager_from_python<boos 
t::python::api::object>::operator() (this=0xbfffe1bb, obj=0x0) at /sw/ 
include/boost/python/converter/return_from_python.hpp:156
#11 0x01021c48 in boost::python::call<boost::python::api::object,  
boost::python::api::object, boost::python::api::object,  
boost::python::api::object> (callable=0x559430, a0=@0xbfffe3b0,  
a1=@0xbfffe3ac, a2=@0x6b5620) at /sw/include/boost/python/call.hpp:73
#12 0x01021ca9 in  
boost::python::api::object_operators<boost::python::api::object>::operat 
or()<boost::python::api::object, boost::python::api::object,  
boost::python::api::object> (this=0xbfffe244, a0=@0xbfffe3b0,  
a1=@0xbfffe3ac, a2=@0x6b5620) at /sw/include/boost/python/ 
object_call.hpp:19
#13 0x01024fee in  
OperatorTraits<boost::python::api::object>::ApplyAdj (A=@0xbfffe3b0,  
b=@0xbfffe3ac, result=@0x6b5620) at /Users/sean/workspace/UANA/ 
install/slim/python/PythonOperatorTraits.hpp:55





More information about the Cplusplus-sig mailing list