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

Re: swig-py3 str/bytes difference in svn_config_*()

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Fri, 13 Dec 2019 07:24:14 +0000

Thanks for the quick fix. However, it doesn't work on my machine (Debian stretch).

With your latest patch, «svn_config_get_user_config_path(None, None)»
calls the C function of the name with «path == NULL» and segfaults immediately,
because the parameter is dereferenced on the first line of the function. As to
the other case, I get a bogus stack trace:

[[[
% PYTHONPATH=… lldb -- python3 -c $'from svn.core import *; svn_config_ensure("/tmp/foo")'
(lldb) r
Process 19706 launched: '/usr/bin/python3' (x86_64)
Process 19706 stopped
* thread #1, name = 'python3', stop reason = signal SIGSEGV: invalid address (fault address: 0x0)
    frame #0: 0x0000000000000000
error: memory read failed for 0x0
(lldb)
]]]

Cheers,

Daniel
Received on 2019-12-13 08:24:41 CET

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.