优胜美地SVN 1.6.6段错误 [英] yosemite svn 1.6.6 segmentation fault

查看:398
本文介绍了优胜美地SVN 1.6.6段错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SVN停在我的Mac升级工作优胜美地之后。我知道有没有回答一个非常类似的问题,
<一href=\"http://stackoverflow.com/questions/27021979/segmentation-fault-11-in-svn-checkout\">Segmentation故障:在SVN结账 11,但是我已经花了pretty多了整整一天这点,我加入关于这个问题的更多信息。我希望有人也许有人可以帮助...我真的很坚持。我无法升级SVN和我计划回到小牛队。

错误我得到:

  SVN更新
段故障:11

我已经使用SVN工作从自己编译的二进制我(尽管不是那么熟悉C)。有一些几个月前取消了旧的传统的svn 1.6×code的更新。

这时间优山美地,当我试图重新编译它,我已经看到了该操作系统更新已修改阿帕奇 APR 和来源再也不会编译(或至少这是我的猜测从错误中我得到的):

  / bin / sh的/mnt/netzima/icaria/apps/subversion-1.6.6/libtool --tag = CC --silent --mode =编译的gcc -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp- preCOMP -g -O2 -g -O2 -I / usr / include目录/ Apache2的-I./subversion/include -I./subversion -I在/ usr /本地/ APR /有/ APR- 1 -I在/ usr /本地/ APR-util的/有/ APR-1 -I /选择/本地/包括/霓虹灯-o颠覆/ mod_authz_svn / mod_authz_svn.lo -c颠覆/ mod_authz_svn / mod_authz_svn.c
颠覆/ mod_authz_svn / mod_authz_svn.c:448:9:错误:成员引用的基本类型'字符'是不是一个结构或联合
        ap_log_rerror(文件,行,层次,O,R,
        ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

我已经下载和使安装以下内容:


  • libtool的版本2.4.2

  • autoconf的版本2.69

  • automake的1.14版

  • 四月版本1.3.12

  • APR-util的版本1.3.12

  • Apache的版本2.2.29

我希望这些版本将与SVN 1.6.6兼容的,因为,正如我前面提到的,我的猜测是,它不是最新的版本了兼容。

在其他使用那些我已经下载的包,我不得不选项添加到configure命令。对于APR-util的,我不得不配置是这样的:

  ./配置 -  preFIX =的/ usr /本地/ APR-util的--with-APR =的/ usr /本地/ APR

作为Apache:

  ./配置--with-APR =的/ usr /本地/ APR --with-APR-UTIL =的/ usr /本地/ APR-util的 -  preFIX =在/ usr /本地/ Apache2的--enable-DAV --enable-这样

和最后的svn:

  ./配置--with-APR =的/ usr /本地/ APR --with-APR-UTIL =的/ usr /本地/ APR-util的--with-APXS = / USR /本地/ Apache2的/斌/的apxs --enable-维护模式

这样至少SVN编译(我想这证明它是获得正确的版本)。但它不工作,我得到同样的分段错误。我已经添加在/ usr /本地/ ...目录到我的道路只是要确定,但我猜SVN将所有需要的库在入店目录(我认为这是/ usr / local / bin目录,这已经在我的道路)。

我不知道如何从这里走。我试着调试编译,看看我是否能得到一个指针分割故障,核心转储或类似的东西,但没有成功...

任何帮助将是非常美联社preciated!
并感谢反正。

编辑:

继@indiv的意见,这是otool的输出:

 的/ usr / local / bin目录/ SVN:/System/Library/Frameworks/Security.framework/Versions/A/Security(兼容版本1.0.0,当前版本57031.1.35)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation(兼容版本150.0.0,当前版本1151.16.0)
/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices(兼容版本1.0.0,当前版本62.0.0)
/usr/local/lib/libsvn_client-1.0.dylib(兼容1.0.0版本,目前版本1.0.0)
/usr/local/lib/libsvn_wc-1.0.dylib(兼容1.0.0版本,目前版本1.0.0)
/usr/local/lib/libsvn_ra-1.0.dylib(兼容1.0.0版本,目前版本1.0.0)
/usr/local/lib/libsvn_diff-1.0.dylib(兼容1.0.0版本,目前版本1.0.0)
/usr/local/lib/libsvn_ra_local-1.0.dylib(兼容1.0.0版本,目前版本1.0.0)
/usr/local/lib/libsvn_repos-1.0.dylib(兼容1.0.0版本,目前版本1.0.0)
/usr/local/lib/libsvn_fs-1.0.dylib(兼容1.0.0版本,目前版本1.0.0)
/usr/local/lib/libsvn_fs_fs-1.0.dylib(兼容1.0.0版本,目前版本1.0.0)
/usr/local/lib/libsvn_fs_util-1.0.dylib(兼容1.0.0版本,目前版本1.0.0)
/usr/local/lib/libsvn_ra_svn-1.0.dylib(兼容1.0.0版本,目前版本1.0.0)
/usr/lib/libsasl2.2.dylib(兼容版本3.0.0,当前版本3.15.0)
/usr/local/lib/libsvn_ra_neon-1.0.dylib(兼容1.0.0版本,目前版本1.0.0)
/usr/local/lib/libsvn_delta-1.0.dylib(兼容1.0.0版本,目前版本1.0.0)
/usr/local/lib/libsvn_subr-1.0.dylib(兼容1.0.0版本,目前版本1.0.0)
/opt/local/lib/libsqlite3.0.dylib(兼容版本9.0.0,目前版本9.6.0)
/usr/local/apr-util/lib/libaprutil-1.0.dylib(兼容版本4.0.0,当前版本4.12.0)
/usr/local/apr/lib/libapr-1.0.dylib(兼容版本4.0.0,当前版本4.12.0)
/usr/lib/libSystem.B.dylib(兼容版本1.0.0,当前版本1213.0.0)
/opt/local/lib/libneon.27.dylib(兼容版本30.0.0,当前版本30.6.0)
/opt/local/lib/libiconv.2.dylib(兼容版本8.0.0,目前版本8.1.0)
/opt/local/lib/libintl.8.dylib(兼容版本10.0.0,当前版本10.2.0)
/opt/local/lib/libssl.1.0.0.dylib(兼容1.0.0版本,目前版本1.0.0)
/opt/local/lib/libcrypto.1.0.0.dylib(兼容1.0.0版本,目前版本1.0.0)
/opt/local/lib/libz.1.dylib(兼容1.0.0版本,目前版本1.2.8)
/System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos(兼容版本5.0.0,目前版本6.0.0)
/opt/local/lib/libexpat.1.dylib(兼容版本8.0.0,目前版本8.0.0)


解决方案

您还可以下载和安装WANDisco二进制:

<一个href=\"https://www.wandisco.com/subversion/download/download-certified-wandisco-subversion-binaries?f=subversion/Subversion-Client-1.8.10_10.10.x.pkg\" rel=\"nofollow\">https://www.wandisco.com/subversion/download/download-certified-wandisco-subversion-binaries?f=subversion/Subversion-Client-1.8.10_10.10.x.pkg

为我工作。

svn stopped working in my Mac after upgrade to Yosemite. I know there is a very similar question with no answer, Segmentation fault: 11 in SVN checkout, however I've spent pretty much the whole day with this and I'm adding more information on the issue. I'm hoping somebody maybe somebody can help... I'm really stuck. I cannot upgrade svn and I'm planning to go back to Mavericks.

The error I get:

svn update
Segmentation fault: 11

I was already working with svn from a binary I compiled myself (although not so familiar with C). There was some months ago an update of Xcode that removed the old legacy svn 1.6.

This time with Yosemite, when I've tried to compile it again, I've seen that the os update has modified apache and APR and the sources do not compile anymore (or at least that's my guess from the error I get):

/bin/sh /mnt/netzima/icaria/apps/subversion-1.6.6/libtool --tag=CC --silent --mode=compile gcc -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -g -O2  -g -O2   -I/usr/include/apache2 -I./subversion/include -I./subversion -I/usr/local/apr/include/apr-1   -I/usr/local/apr-util/include/apr-1 -I/opt/local/include/neon  -o subversion/mod_authz_svn/mod_authz_svn.lo -c subversion/mod_authz_svn/mod_authz_svn.c
subversion/mod_authz_svn/mod_authz_svn.c:448:9: error: member reference base type 'char' is not a structure or union
        ap_log_rerror(file, line, level, 0, r,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I've downloaded and make install the following:

  • libtool version 2.4.2
  • autoconf version 2.69
  • automake version 1.14
  • apr version 1.3.12
  • apr-util version 1.3.12
  • apache version 2.2.29

I was hoping that those versions would be compatible with svn 1.6.6, since, as I've mentioned before, my guess was that it is not compatible anymore to the newest versions.

In other to use those packages that I've downloaded, I had to add options to the configure command. For apr-util, I had to configure like this:

./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr

As for apache:

./configure --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --prefix=/usr/local/apache2 --enable-dav --enable-so

And finally svn:

./configure --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-apxs=/usr/local/apache2/bin/apxs --enable-maintainer-mode

This way at least svn compiles (I guess that proves it is getting the right versions). But it does not work, I get the same segmentation fault. I've added the /usr/local/... directories to my path just to be sure, although I'd guess svn puts all the library it needs in an accesible directory (I think it is /usr/local/bin, which was already in my path).

I have no idea how to go from here. I've tried to compile with debug to see if I can get a pointer to the segmentation fault, a core dump or something like that, with no success...

Any help would be much appreciated! And thanks anyway.

EDIT:

Following @indiv advice, this is the output of otool:

/usr/local/bin/svn:

/System/Library/Frameworks/Security.framework/Versions/A/Security (compatibility version 1.0.0, current version 57031.1.35)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1151.16.0)
/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 62.0.0)
/usr/local/lib/libsvn_client-1.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/local/lib/libsvn_wc-1.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/local/lib/libsvn_ra-1.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/local/lib/libsvn_diff-1.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/local/lib/libsvn_ra_local-1.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/local/lib/libsvn_repos-1.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/local/lib/libsvn_fs-1.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/local/lib/libsvn_fs_fs-1.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/local/lib/libsvn_fs_util-1.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/local/lib/libsvn_ra_svn-1.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libsasl2.2.dylib (compatibility version 3.0.0, current version 3.15.0)
/usr/local/lib/libsvn_ra_neon-1.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/local/lib/libsvn_delta-1.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/local/lib/libsvn_subr-1.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/opt/local/lib/libsqlite3.0.dylib (compatibility version 9.0.0, current version 9.6.0)
/usr/local/apr-util/lib/libaprutil-1.0.dylib (compatibility version 4.0.0, current version 4.12.0)
/usr/local/apr/lib/libapr-1.0.dylib (compatibility version 4.0.0, current version 4.12.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)
/opt/local/lib/libneon.27.dylib (compatibility version 30.0.0, current version 30.6.0)
/opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.1.0)
/opt/local/lib/libintl.8.dylib (compatibility version 10.0.0, current version 10.2.0)
/opt/local/lib/libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/opt/local/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.8)
/System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos (compatibility version 5.0.0, current version 6.0.0)
/opt/local/lib/libexpat.1.dylib (compatibility version 8.0.0, current version 8.0.0)

解决方案

You can also download and install the binary from WANDisco:

https://www.wandisco.com/subversion/download/download-certified-wandisco-subversion-binaries?f=subversion/Subversion-Client-1.8.10_10.10.x.pkg

Worked for me.

这篇关于优胜美地SVN 1.6.6段错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆