On Tuesday 12 September 2006 11:56, Nik Clayton wrote:
> If you use Perl's "-c" command line option to check the syntax of a Perl
> program that uses SVN::Core you get a seg fault.
>
> % perl -c -MSVN::Core -e 'print "hello, world\n";'
> -e syntax OK
> Segmentation fault (core dumped)
>
> This is with Perl 5.8.8, Subversion 1.3.2 (r19776), with ra_dav, ra_svn,
> and ra_local enabled, on FreeBSD (tested on -current, 6.1, 5.4, and 4.10).
Similar to a bug seen on OpenBSD as well for some time. The patch at
http://www.openbsd.org/cgi-bin/cvsweb/ports/devel/subversion/patches/patch-subversion_bindings_swig_perl_native_Core_pm?annotate=1.1
$OpenBSD: patch-subversion_bindings_swig_perl_native_Core_pm,v 1.1 2006/08/21 17:39:00 aanriot Exp $
--- subversion/bindings/swig/perl/native/Core.pm.orig Mon Aug 14 15:23:49 2006
+++ subversion/bindings/swig/perl/native/Core.pm Mon Aug 14 15:23:57 2006
@@ -50,9 +50,6 @@ BEGIN {
SVN::_Core::apr_initialize();
}
-our $gpool = SVN::Pool->new_default;
-SVN::Core::utf_initialize($gpool);
-
END {
SVN::_Core::apr_terminate();
}
fixes the core dump, but may just fix the symptom and not the cause.
/Sigfred
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Sep 12 17:20:49 2006