Re: Seg fault on svn co; version 1.45.5

Daniel Sahlberg <[email protected]> Sat, 6 Sep 2025 18:58:23 +0200
Newsgroups gmane.comp.version-control.subversion.user
Message-ID <CAMHy98Ox+JGghNt1jxEMxVAJd34YqJ2mHRtV=E-G7iicdF5cgQ@mail.gmail.com>
--0000000000006aa878063e24dd39
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Den l=C3=B6r 6 sep. 2025 kl 18:16 skrev Daniel Sahlberg <[email protected]=
rg>:

> On 2025/08/20 14:47:56 Branko =C4=8Cibej wrote:
> > On 20. 8. 25 14:29, sebb wrote:
> > > $ svn co --depth=3Demptyhttps://svn.apache.org/repos/asf/incubator
> > > Segmentation fault: 11
> > >
> > > This does not occur for other directories I tried under
> > > https://svn.apache.org/repos/asf.
> > > It seems to be specific to incubator, as its subdirectories seem to b=
e
> OK.
> > >
> > > $ svn infohttps://svn.apache.org/repos/asf/incubator
> > > Path: incubator
> > > URL:https://svn.apache.org/repos/asf/incubator
> > > Relative URL: ^/incubator
> > > Repository Root:https://svn.apache.org/repos/asf
> > > Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
> > > Revision: 1927914
> > > Node Kind: directory
> > > Last Changed Author: jimin
> > > Last Changed Rev: 1927904
> > > Last Changed Date: 2025-08-20 06:48:34 +0100 (Wed, 20 Aug 2025)
> > >
> > > $ svn --version
> > > svn, version 1.14.5 (r1922182)
> > >     compiled Nov 27 2024, 21:22:28 on arm-apple-darwin23.6.0
> > >
> > > Copyright (C) 2024 The Apache Software Foundation.
> > > This software consists of contributions made by many people;
> > > see the NOTICE file for more information.
> > > Subversion is open source software, seehttp://subversion.apache.org/
> > >
> > > The following repository access (RA) modules are available:
> > >
> > > * ra_svn : Module for accessing a repository using the svn network
> protocol.
> > >    - with Cyrus SASL authentication
> > >    - handles 'svn' scheme
> > > * ra_local : Module for accessing a repository on local disk.
> > >    - handles 'file' scheme
> > > * ra_serf : Module for accessing a repository via WebDAV protocol
> using serf.
> > >    - using serf 1.3.10 (compiled with 1.3.10)
> > >    - handles 'http' scheme
> > >    - handles 'https' scheme
> > >
> > > The following authentication credential caches are available:
> > >
> > > * Mac OS X Keychain
> > >
> > > =3D=3D=3D=3D
> > >
> > > I also get a segfault with 1.14.3 on Ubuntu 24.04.
> > >
> > > Sebb
> >
> >
> > Thanks, I can reproduce this. Tentatively looks like a bug in Serf, but
> > it's too soon to tell. I don't know what's so special about the
> > incubator tree.
> >
> > -- Brane
>
> I took a look at reproducing this. I get the same error running Subversio=
n
> under WSL (which effectively is Linux under Hyper-V), but from the same
> computer I don't get this error with Subversion under Windows. No idea wh=
y
> the platform makes a difference here.
>
> The --depth=3Dempty option doesn't seem to matter.
>
> I took a look at the network traffic generated from the WSL instance. Wit=
h
> the incubator tree, there is a request REPORT /repos/asf/!svn/me. The
> request looks identical for the subversion tree. With the subversion tree=
,
> there is a reply with some XML data. With the incubator tree, there is a
> HTTP/1.1 301 Moved Permanently reply with Location:
> http://svn.apache.org/repos/asf and an HTML body.
>
> @Sebb, Is there some configuration on the server that could cause this
> redirect?
>

Answering myself. Yes, there seems to be some redirects in the HTTPD
configuration, see
https://github.com/apache/infrastructure-p6/blob/production/data/nodes/svn0=
2-us-east.apache.org.yaml
(only visible if you are logged in to GitHub with an Apache connected
account).


>
> Obviously, we shouldn't core dump. But the server seems to send something
> the client doesn't expect. (I'll continue debugging on dev@ in the other
> thread).
>
> Cheers,
> Daniel
>

Cheers,
Daniel

--0000000000006aa878063e24dd39
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr">Den l=C3=B6r 6 sep. 2025=
 kl 18:16 skrev Daniel Sahlberg &lt;<a href=3D"mailto:[email protected]"=
>[email protected]</a>&gt;:</div><div class=3D"gmail_quote gmail_quote_c=
ontainer"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8=
ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 2025/08/20 1=
4:47:56 Branko =C4=8Cibej wrote:<br>
&gt; On 20. 8. 25 14:29, sebb wrote:<br>
&gt; &gt; $ svn co --depth=3Demptyhttps://<a href=3D"http://svn.apache.org/=
repos/asf/incubator" rel=3D"noreferrer" target=3D"_blank">svn.apache.org/re=
pos/asf/incubator</a><br>
&gt; &gt; Segmentation fault: 11<br>
&gt; &gt;<br>
&gt; &gt; This does not occur for other directories I tried under<br>
&gt; &gt; <a href=3D"https://svn.apache.org/repos/asf" rel=3D"noreferrer" t=
arget=3D"_blank">https://svn.apache.org/repos/asf</a>.<br>
&gt; &gt; It seems to be specific to incubator, as its subdirectories seem =
to be OK.<br>
&gt; &gt;<br>
&gt; &gt; $ svn infohttps://<a href=3D"http://svn.apache.org/repos/asf/incu=
bator" rel=3D"noreferrer" target=3D"_blank">svn.apache.org/repos/asf/incuba=
tor</a><br>
&gt; &gt; Path: incubator<br>
&gt; &gt; URL:<a href=3D"https://svn.apache.org/repos/asf/incubator" rel=3D=
"noreferrer" target=3D"_blank">https://svn.apache.org/repos/asf/incubator</=
a><br>
&gt; &gt; Relative URL: ^/incubator<br>
&gt; &gt; Repository Root:<a href=3D"https://svn.apache.org/repos/asf" rel=
=3D"noreferrer" target=3D"_blank">https://svn.apache.org/repos/asf</a><br>
&gt; &gt; Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68<br>
&gt; &gt; Revision: 1927914<br>
&gt; &gt; Node Kind: directory<br>
&gt; &gt; Last Changed Author: jimin<br>
&gt; &gt; Last Changed Rev: 1927904<br>
&gt; &gt; Last Changed Date: 2025-08-20 06:48:34 +0100 (Wed, 20 Aug 2025)<b=
r>
&gt; &gt;<br>
&gt; &gt; $ svn --version<br>
&gt; &gt; svn, version 1.14.5 (r1922182)<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0compiled Nov 27 2024, 21:22:28 on arm-apple-da=
rwin23.6.0<br>
&gt; &gt;<br>
&gt; &gt; Copyright (C) 2024 The Apache Software Foundation.<br>
&gt; &gt; This software consists of contributions made by many people;<br>
&gt; &gt; see the NOTICE file for more information.<br>
&gt; &gt; Subversion is open source software, seehttp://<a href=3D"http://s=
ubversion.apache.org/" rel=3D"noreferrer" target=3D"_blank">subversion.apac=
he.org/</a><br>
&gt; &gt;<br>
&gt; &gt; The following repository access (RA) modules are available:<br>
&gt; &gt;<br>
&gt; &gt; * ra_svn : Module for accessing a repository using the svn networ=
k protocol.<br>
&gt; &gt;=C2=A0 =C2=A0 - with Cyrus SASL authentication<br>
&gt; &gt;=C2=A0 =C2=A0 - handles &#39;svn&#39; scheme<br>
&gt; &gt; * ra_local : Module for accessing a repository on local disk.<br>
&gt; &gt;=C2=A0 =C2=A0 - handles &#39;file&#39; scheme<br>
&gt; &gt; * ra_serf : Module for accessing a repository via WebDAV protocol=
 using serf.<br>
&gt; &gt;=C2=A0 =C2=A0 - using serf 1.3.10 (compiled with 1.3.10)<br>
&gt; &gt;=C2=A0 =C2=A0 - handles &#39;http&#39; scheme<br>
&gt; &gt;=C2=A0 =C2=A0 - handles &#39;https&#39; scheme<br>
&gt; &gt;<br>
&gt; &gt; The following authentication credential caches are available:<br>
&gt; &gt;<br>
&gt; &gt; * Mac OS X Keychain<br>
&gt; &gt;<br>
&gt; &gt; =3D=3D=3D=3D<br>
&gt; &gt;<br>
&gt; &gt; I also get a segfault with 1.14.3 on Ubuntu 24.04.<br>
&gt; &gt;<br>
&gt; &gt; Sebb<br>
&gt; <br>
&gt; <br>
&gt; Thanks, I can reproduce this. Tentatively looks like a bug in Serf, bu=
t <br>
&gt; it&#39;s too soon to tell. I don&#39;t know what&#39;s so special abou=
t the <br>
&gt; incubator tree.<br>
&gt; <br>
&gt; -- Brane<br>
<br>
I took a look at reproducing this. I get the same error running Subversion =
under WSL (which effectively is Linux under Hyper-V), but from the same com=
puter I don&#39;t get this error with Subversion under Windows. No idea why=
 the platform makes a difference here.<br>
<br>
The --depth=3Dempty option doesn&#39;t seem to matter.<br>
<br>
I took a look at the network traffic generated from the WSL instance. With =
the incubator tree, there is a request REPORT /repos/asf/!svn/me. The reque=
st looks identical for the subversion tree. With the subversion tree, there=
 is a reply with some XML data. With the incubator tree, there is a HTTP/1.=
1 301 Moved Permanently reply with Location: <a href=3D"http://svn.apache.o=
rg/repos/asf" rel=3D"noreferrer" target=3D"_blank">http://svn.apache.org/re=
pos/asf</a> and an HTML body.<br>
<br>
@Sebb, Is there some configuration on the server that could cause this redi=
rect?<br></blockquote><div><br></div><div>Answering myself. Yes, there seem=
s to be some redirects in the HTTPD configuration, see <a href=3D"https://g=
ithub.com/apache/infrastructure-p6/blob/production/data/nodes/svn02-us-east=
.apache.org.yaml">https://github.com/apache/infrastructure-p6/blob/producti=
on/data/nodes/svn02-us-east.apache.org.yaml</a> (only visible if you are lo=
gged in to GitHub with an Apache connected account).</div><div>=C2=A0</div>=
<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-=
left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Obviously, we shouldn&#39;t core dump. But the server seems to send somethi=
ng the client doesn&#39;t expect. (I&#39;ll continue debugging on dev@ in t=
he other thread).<br>
<br>
Cheers,<br>
Daniel<br></blockquote><div><br></div><div>Cheers,</div><div>Daniel</div><d=
iv>=C2=A0</div></div></div></div>

--0000000000006aa878063e24dd39--