[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Python 2.5 bindings

From: Honza Rameš <shadow_at_mapik.net>
Date: 2006-09-15 08:12:14 CEST

 Hi,
thanks for an answer

Well here is the stack:

Message:
Unhandled exception at 0x1e08db5e (python25.dll) in Apache.exe: 0xC0000005:
Access violation reading location 0x31657007.

Callstack:
> python25.dll!PyObject_Malloc(unsigned int nbytes=16) Line 746 C
  python25.dll!_PyLong_New(int size=1) Line 73 + 0x22 bytes C
  python25.dll!PyLong_FromLongLong(__int64 ival=17215) Line 831 + 0x6
bytes C
  python25.dll!_pystat_fromstructstat(win32_stat * st=0x00000000) Line 1164
+ 0xd bytes C
  python25.dll!posix_do_stat(_object * self=0x1e09682d, _object *
args=0x00000000, char * format=0x1e195f8c, int (const char *, win32_stat *)*
statfunc=0x1e0953f0, char * wformat=0x1e195f94, int (const unsigned short *,
win32_stat *)* wstatfunc=0x1e0954a0) Line 1358 C
  python25.dll!posix_stat(_object * self=0x00000000, _object *
args=0x06f1c7d0) Line 2320 + 0x1d bytes C
  python25.dll!PyCFunction_Call(_object * func=0x012e6cb0, _object *
arg=0x06f1c7d0, _object * kw=0x00000000) Line 73 + 0x8 bytes C
  python25.dll!call_function(_object * * * pp_stack=0x05e5f42c, int
oparg=0) Line 3566 + 0x9a bytes C
  python25.dll!PyEval_EvalFrameEx(_frame * f=0x0728a3d0, int throwflag=0)
Line 2269 + 0x10 bytes C
  python25.dll!PyEval_EvalCodeEx(PyCodeObject * co=0x06f24338, _object *
globals=0x0728a3d0, _object * locals=0x00000000, _object * *
args=0x071a9ff4, int argcount=2, _object * * kws=0x071a9ffc, int kwcount=0,
_object * * defs=0x06f1ccbc, int defcount=1, _object * closure=0x00000000)
Line 2833 + 0xc bytes C
  python25.dll!fast_function(_object * func=0x00000000, _object * * *
pp_stack=0x05e5f53c, int n=0, int na=2, int nk=0) Line 3665 + 0x34 bytes C
  python25.dll!call_function(_object * * * pp_stack=0x05e5f53c, int
oparg=0) Line 3587 + 0x10 bytes C
  python25.dll!PyEval_EvalFrameEx(_frame * f=0x071a9eb0, int throwflag=0)
Line 2269 + 0x10 bytes C
  python25.dll!PyEval_EvalCodeEx(PyCodeObject * co=0x06f242a8, _object *
globals=0x071a9eb0, _object * locals=0x00000000, _object * *
args=0x0728a3ac, int argcount=2, _object * * kws=0x0728a3b4, int kwcount=0,
_object * * defs=0x06f1cc7c, int defcount=1, _object * closure=0x00000000)
Line 2833 + 0xc bytes C
  python25.dll!fast_function(_object * func=0x00000000, _object * * *
pp_stack=0x05e5f64c, int n=0, int na=2, int nk=0) Line 3665 + 0x34 bytes C
  python25.dll!call_function(_object * * * pp_stack=0x05e5f64c, int
oparg=0) Line 3587 + 0x10 bytes C
  python25.dll!PyEval_EvalFrameEx(_frame * f=0x0728a260, int throwflag=0)
Line 2269 + 0x10 bytes C
  python25.dll!PyEval_EvalCodeEx(PyCodeObject * co=0x06f241d0, _object *
globals=0x0728a260, _object * locals=0x00000000, _object * *
args=0x0728a234, int argcount=3, _object * * kws=0x0728a240, int kwcount=0,
_object * * defs=0x06f1cc5c, int defcount=1, _object * closure=0x00000000)
Line 2833 + 0xc bytes C
  python25.dll!fast_function(_object * func=0x00000000, _object * * *
pp_stack=0x05e5f75c, int n=0, int na=3, int nk=0) Line 3665 + 0x34 bytes C
  python25.dll!call_function(_object * * * pp_stack=0x05e5f75c, int
oparg=0) Line 3587 + 0x10 bytes C
  python25.dll!PyEval_EvalFrameEx(_frame * f=0x0728a0d0, int throwflag=0)
Line 2269 + 0x10 bytes C
  python25.dll!PyEval_EvalCodeEx(PyCodeObject * co=0x06f1fba8, _object *
globals=0x0728a0d0, _object * locals=0x00000000, _object * *
args=0x0728a0a8, int argcount=2, _object * * kws=0x0728a0b0, int kwcount=0,
_object * * defs=0x06e0f75c, int defcount=1, _object * closure=0x00000000)
Line 2833 + 0xc bytes C
  python25.dll!fast_function(_object * func=0x00000000, _object * * *
pp_stack=0x05e5f86c, int n=0, int na=2, int nk=0) Line 3665 + 0x34 bytes C
  python25.dll!call_function(_object * * * pp_stack=0x05e5f86c, int
oparg=0) Line 3587 + 0x10 bytes C
  python25.dll!PyEval_EvalFrameEx(_frame * f=0x07289f60, int throwflag=0)
Line 2269 + 0x10 bytes C
  python25.dll!PyEval_EvalCodeEx(PyCodeObject * co=0x06f1fb18, _object *
globals=0x07289f60, _object * locals=0x00000000, _object * *
args=0x0719ee24, int argcount=2, _object * * kws=0x0719ee2c, int kwcount=0,
_object * * defs=0x06e1675c, int defcount=1, _object * closure=0x00000000)
Line 2833 + 0xc bytes C
  python25.dll!fast_function(_object * func=0x00000000, _object * * *
pp_stack=0x05e5f97c, int n=0, int na=2, int nk=0) Line 3665 + 0x34 bytes C
  python25.dll!call_function(_object * * * pp_stack=0x05e5f97c, int
oparg=0) Line 3587 + 0x10 bytes C
  python25.dll!PyEval_EvalFrameEx(_frame * f=0x0719ecd0, int throwflag=0)
Line 2269 + 0x10 bytes C
  python25.dll!PyEval_EvalCodeEx(PyCodeObject * co=0x06f1fc38, _object *
globals=0x0719ecd0, _object * locals=0x00000000, _object * *
args=0x07289f14, int argcount=3, _object * * kws=0x07289f20, int kwcount=0,
_object * * defs=0x06e0fa5c, int defcount=1, _object * closure=0x00000000)
Line 2833 + 0xc bytes C
  python25.dll!fast_function(_object * func=0x00000000, _object * * *
pp_stack=0x05e5fa8c, int n=0, int na=3, int nk=0) Line 3665 + 0x34 bytes C
  python25.dll!call_function(_object * * * pp_stack=0x05e5fa8c, int
oparg=0) Line 3587 + 0x10 bytes C
  python25.dll!PyEval_EvalFrameEx(_frame * f=0x07289da8, int throwflag=0)
Line 2269 + 0x10 bytes C
  python25.dll!PyEval_EvalCodeEx(PyCodeObject * co=0x06f16ec0, _object *
globals=0x07289da8, _object * locals=0x00000000, _object * *
args=0x06efac9c, int argcount=4, _object * * kws=0x06efacac, int kwcount=4,
_object * * defs=0x06f29a4c, int defcount=6, _object * closure=0x00000000)
Line 2833 + 0xc bytes C
  python25.dll!fast_function(_object * func=0x00000000, _object * * *
pp_stack=0x05e5fb9c, int n=0, int na=4, int nk=4) Line 3665 + 0x34 bytes C
  python25.dll!call_function(_object * * * pp_stack=0x05e5fb9c, int
oparg=0) Line 3587 + 0x10 bytes C
  python25.dll!PyEval_EvalFrameEx(_frame * f=0x06efab08, int throwflag=0)
Line 2269 + 0x10 bytes C
  python25.dll!PyEval_EvalCodeEx(PyCodeObject * co=0x06f16338, _object *
globals=0x06efab08, _object * locals=0x00000000, _object * *
args=0x06de55dc, int argcount=2, _object * * kws=0x00000000, int kwcount=0,
_object * * defs=0x00000000, int defcount=0, _object * closure=0x00000000)
Line 2833 + 0xc bytes C
  python25.dll!function_call(_object * func=0x06f3d430, _object *
arg=0x06de55d0, _object * kw=0x00000000) Line 522 + 0x31 bytes C
  python25.dll!PyObject_Call(_object * func=0x06f3d430, _object *
arg=0x06de55d0, _object * kw=0x00000000) Line 1860 + 0xe bytes C
  python25.dll!instancemethod_call(_object * func=0x06dd9ee0, _object *
arg=0x06f3b1d0, _object * kw=0x00000000) Line 2489 + 0x10 bytes C
  python25.dll!PyObject_Call(_object * func=0x06dd9ee0, _object *
arg=0x06f3b1d0, _object * kw=0x00000000) Line 1860 + 0xe bytes C
  python25.dll!call_function_tail(_object * callable=0x06dd9ee0, _object *
args=0x00000000) Line 1891 + 0xe bytes C
  python25.dll!PyObject_CallMethod(_object * o=0x06f0ff30, char *
name=0x00f168ac, char * format=0x00f158dc, ...) Line 1968 + 0x6 bytes C
  mod_python.so!00f04fc1()
  [Frames below may be incorrect and/or missing, no symbols loaded for
mod_python.so]
  mod_python.so!00f05411()
  libhttpd.dll!ap_run_handler(request_rec * r=0x06ec4238) Line 158 + 0x25
bytes C
  libhttpd.dll!ap_invoke_handler(request_rec * r=0x06ec4238) Line 375 C
  libhttpd.dll!ap_process_request(request_rec * r=0x06ec4238) Line 262 C
  libhttpd.dll!ap_process_http_connection(conn_rec * c=0x06f0c218) Line 184
+ 0x6 bytes C
  libhttpd.dll!ap_run_process_connection(conn_rec * c=0x06f0c218) Line 43 +
0x25 bytes C
  libhttpd.dll!ap_process_connection(conn_rec * c=0x06f0c218, void *
csd=0x06e44fd0) Line 178 + 0x6 bytes C
  libhttpd.dll!worker_main(void * thread_num_val=0x06f0c210) Line 777 C
  msvcr80.dll!_callthreadstartex() Line 348 + 0x6 bytes C
  msvcr80.dll!_threadstartex(void * ptd=0x04ee4228) Line 326 + 0x5 bytes C
  kernel32.dll!7c80b50b()
  kernel32.dll!7c8399f3()

if you need any further info I'll be happy to provide it. Right now I have
changed Python's code a little bit in memory allocation routines so I'm
using malloc and free in object allocation, using this little patch the SVN
doesn't work but apache will not collapse. This whole issue is very strange
though, still when I connect from one URL SVN works perfectly, when I
connect from another SVN doesn't work but thankfully Python continues to
work just the SVN core object is not created. But when I try to use the
previous URL everything works fine. I'm surprised that this whole problem is
caused this way.

Regards,

Honza

On 9/14/06, David James <djames@collab.net> wrote:
>
> On 9/7/06, Honza Rameš <shadow@mapik.net> wrote:
> > Since there were no bindings for 2.4 I was trying to build SVN SWIG
> bindings
> > for Python 2.5 in VS2005.
>
> Hi Honza,
>
> There are now official bindings for Python 2.4 on Windows. The Python
> 2.4 bindings for Windows are now available from
> http://subversion.tigris.org/downloads/svn-python-1.4.0-py2.4.exe
>
> We haven't built Python bindings for Python 2.5 yet.
>
> Cheers,
>
> David
>
Received on Fri Sep 15 08:13:05 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.