Opened 21 years ago

Closed 19 years ago

#950 closed Bugs (None)

python demos crash in release mode in VC

Reported by: nobody Owned by: david_abrahams
Milestone: Component: python USE GITHUB
Version: None Severity:
Keywords: Cc:

Description

IN VC6 the python examples crash.
If I enable debugging info in the release built I get 
this for example1:
---------------------------
Microsoft Visual C++
---------------------------
First-chance exception in python.exe (MSVCRT.DLL): 
0xC0000005: Access Violation.
---------------------------
OK   
---------------------------

the call stack is:

MSVCRT! 7801973b()
boost::python::detail::wrapped_function_pointer<char 
const *,char const * (__thiscall hello::world::*)(void)
const >::do_call(const 
boost::python::detail::wrapped_function_pointer<char 
const *,char const * (__thiscall hello::world::*)(void)
const > * const 0x00000025, _object * 0x0081f72c, 
_object * 0x00000000) line 69 + 89 bytes
boost::python::detail::function::call(const 
boost::python::detail::function * const 0x00000025, 
_object * 0x0081f72c, _object * 0x00000000) line 70
boost::python::detail::callable<boost::python::detail::
type_object<boost::python::detail::function> 
>::instance_call(const 
boost::python::detail::callable<boost::python::detail::
type_object<boost::python::detail::function> > * const 
0x00000025, _object * 0x007990ec, _object * 
0x0081f72c, _object * 0x00000000) line 244
boost::python::`anonymous namespace'::call(_object * 
0x007990ec, _object * (_object *, _object *, _object *)
* 0x10004cf0 `vcall'(_object *, _object *, _object *), 
_object * 0x0081f72c, _object * 0x00000000) line 102
do_instance_call(_object * 0x007990ec, _object * 
0x0081f72c, _object * 0x00000000) line 201 + 29 bytes
PYTHON20! 1e112826()
HELLO!  ??  ?? ::`boost::python::detail::singleton<stru
ct 
boost::python::detail::bound_function::type_object,clas
s boost::python::detail::getattrable<class 
boost::python::detail::callable<class 
boost::python::detail::type_object<class 
boost::python::detail::bound_function> > > >::instance
( ?? )'::`2'::x + 4 bytes


I noted that the this ptr in
boost::python::detail::wrapped_function_pointer
is 0x00000025
although the args is valid

Change History (1)

comment:1 by david_abrahams, 19 years ago

Status: assignedclosed
Note: See TracTickets for help on using tickets.