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

Re: ctypes -- segfault running example.py on a 64-bit system

From: David James <james_at_cs.toronto.edu>
Date: 2007-12-02 21:35:14 CET

Hi Charles,

> #3 0x00002afabb274960 in svn_cmdline_setup_auth_baton (ab=0xd32848,
> non_interactive=1, auth_username=0x2afab7847134 "joecommitter",
> auth_password=0x0, config_dir=0x0, no_auth_cache=1, cfg=0x7fff00000000,
> cancel_func=0,
> cancel_baton=0x0, pool=0xaee508) at

Where is svn_cmdline_setup_auth_baton getting that value of "cfg"? The
only caller of svn_cmdline_setup_auth_baton in the csvn bindings is in
csvn/auth.py, and it passes in 'NULL' for cfg (which evaluates to
"None").

Try the following patch:

Index: csvn/auth.py
===================================================================
--- csvn/auth.py (revision 28191)
+++ csvn/auth.py (working copy)
@@ -58,6 +58,6 @@
         # Setup the auth baton using the default options from the
         # command-line client
         svn_cmdline_setup_auth_baton(auth_baton, TRUE,
- self._username, self._password, NULL, TRUE, NULL,
+ self._username, self._password, NULL, TRUE,
POINTER(svn_config_t)(),
             svn_cancel_func_t(), NULL, self.pool)

I hope that there is no difference between None and a NULL pointer,
because I usually assume that they are the same.

Cheers,

David

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Dec 2 21:35:25 2007

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

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