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

Re: Crash doing svn_client_mkdir in 1.6.15 in x86_64. Is this known?

From: Barry Scott <barry_at_barrys-emacs.org>
Date: Sun, 27 Feb 2011 21:14:16 +0000

On 10 Jan 2011, at 03:59, Daniel Shahaf wrote:

> Are the typedefs for SVN_FILESIZE_T_FMT and APR_OFF_T_FMT correct?

No APR_OFF_T_FMT is wrong. Its "%lld" but needs to be APR_INT64_T_FMT so
that the apr_xxxprintf code will process it. It turns out that %lld is only half handled
and that leads to the crash.

I applied this patch to get things working for me on Mac OS X 10.6 using the 10.6 SDK.

--- ./apr/configure~ 2011-02-27 11:37:40.000000000 +0000
+++ ./apr/configure 2011-02-27 11:37:40.000000000 +0000
@@ -29986,7 +29986,7 @@
     *apple-darwin10.*)
         # off_t is a long long, but long == long long
         if test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_long_long"; then
- off_t_fmt='#define APR_OFF_T_FMT "lld"'
+ off_t_fmt='#define APR_OFF_T_FMT APR_INT64_T_FMT'
         fi
         ;;
     esac

The APR folks will need to fix their configure for Mac.

Barry
Received on 2011-02-27 22:14:51 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.