You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Karol Szkudlarek <ka...@mikronika.com.pl> on 2005/05/10 14:56:46 UTC

svn segfault

Hi!

I'm trying to lock file with the latest svn from trunk and after:

svn lock 0001.asc

I got segfault. Here is the gdb session:

karol@karol:~/var/svn/maprepos/asc> gdb ~/usr/subversion/bin/svn
GNU gdb 6.1
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-suse-linux"...Using host libthread_db
library "/lib64/tls/libthread_db.so.1".

(gdb) r lock 0001.asc
Starting program: /home/karol/usr/subversion/bin/svn lock 0001.asc
[Thread debugging using libthread_db enabled]
[New Thread 182923852160 (LWP 30474)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 182923852160 (LWP 30474)]
apr_xml_quote_string (p=Variable "p" is not available.
) at /home/karol/var/svn/repossvn/trunk/apr-util/xml/apr_xml.c:538
538         for (scan = s; (c = *scan) != '\0'; ++scan, ++len) {
(gdb) where
#0  apr_xml_quote_string (p=Variable "p" is not available.
) at /home/karol/var/svn/repossvn/trunk/apr-util/xml/apr_xml.c:538
#1  0x0000002a9733954c in svn_ra_dav__lock (session=Variable "session"
is not available.
) at ../repossvn/trunk/subversion/libsvn_ra_dav/session.c:1011
#2  0x0000002a958c0346 in svn_ra_lock (session=Variable "session" is not
available.
) at ../repossvn/trunk/subversion/libsvn_ra/ra_loader.c:514
#3  0x0000002a95685c88 in svn_client_lock (targets=Variable "targets" is
not available.
) at ../repossvn/trunk/subversion/libsvn_client/locking_commands.c:369
#4  0x000000000040762a in svn_cl__lock (os=Variable "os" is not available.
) at ../repossvn/trunk/subversion/clients/cmdline/lock-cmd.c:100
#5  0x000000000040974b in main (argc=Variable "argc" is not available.
) at ../repossvn/trunk/subversion/clients/cmdline/main.c:1446
(gdb)

Regards,
Karol

ps.

My platform is:
Linux karol 2.6.5-7.151-default #1 Fri Mar 18 11:31:21 UTC 2005 x86_64
x86_64 x86_64 GNU/Linux


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn segfault

Posted by Karol Szkudlarek <ka...@mikronika.com.pl>.
Philip Martin wrote:
> Karol Szkudlarek <ka...@mikronika.com.pl> writes:
> 
> 
>>karol@karol:~/var/svn/maprepos/asc> gdb ~/usr/subversion/bin/svn
>>GNU gdb 6.1
>>Copyright 2004 Free Software Foundation, Inc.
>>GDB is free software, covered by the GNU General Public License, and you are
>>welcome to change it and/or distribute copies of it under certain
>>conditions.
>>Type "show copying" to see the conditions.
>>There is absolutely no warranty for GDB.  Type "show warranty" for details.
>>This GDB was configured as "x86_64-suse-linux"...Using host libthread_db
>>library "/lib64/tls/libthread_db.so.1".
>>
>>(gdb) r lock 0001.asc
>>Starting program: /home/karol/usr/subversion/bin/svn lock 0001.asc
>>[Thread debugging using libthread_db enabled]
>>[New Thread 182923852160 (LWP 30474)]
>>
>>Program received signal SIGSEGV, Segmentation fault.
>>[Switching to Thread 182923852160 (LWP 30474)]
>>apr_xml_quote_string (p=Variable "p" is not available.
>>) at /home/karol/var/svn/repossvn/trunk/apr-util/xml/apr_xml.c:538
>>538         for (scan = s; (c = *scan) != '\0'; ++scan, ++len) {
>>(gdb) where
>>#0  apr_xml_quote_string (p=Variable "p" is not available.
> 
> 
> It looks like apr got a null comment which should have been fixed by
> r14057 last month, are you using old libraries?
> 
> 
>>) at /home/karol/var/svn/repossvn/trunk/apr-util/xml/apr_xml.c:538
>>#1  0x0000002a9733954c in svn_ra_dav__lock (session=Variable "session"
>>is not available.
>>) at ../repossvn/trunk/subversion/libsvn_ra_dav/session.c:1011
>>#2  0x0000002a958c0346 in svn_ra_lock (session=Variable "session" is not
>>available.
>>) at ../repossvn/trunk/subversion/libsvn_ra/ra_loader.c:514
>>#3  0x0000002a95685c88 in svn_client_lock (targets=Variable "targets" is
>>not available.
>>) at ../repossvn/trunk/subversion/libsvn_client/locking_commands.c:369
>>#4  0x000000000040762a in svn_cl__lock (os=Variable "os" is not available.
>>) at ../repossvn/trunk/subversion/clients/cmdline/lock-cmd.c:100
>>#5  0x000000000040974b in main (argc=Variable "argc" is not available.
>>) at ../repossvn/trunk/subversion/clients/cmdline/main.c:1446
> 
> 

Hi!

I checked my subversion/lib directory and as you suspected I have one
old library: libsvn_ra_dav library. I removed binaries from
subversion/lib then I rebuild whole subversion tree.
Now svn lock works fine.

My repos was fsfs backend and working copy comes via webdav (http
layer). This segfault was independent of the contents of the file.

Karol

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn segfault

Posted by Philip Martin <ph...@codematters.co.uk>.
Karol Szkudlarek <ka...@mikronika.com.pl> writes:

> karol@karol:~/var/svn/maprepos/asc> gdb ~/usr/subversion/bin/svn
> GNU gdb 6.1
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "x86_64-suse-linux"...Using host libthread_db
> library "/lib64/tls/libthread_db.so.1".
>
> (gdb) r lock 0001.asc
> Starting program: /home/karol/usr/subversion/bin/svn lock 0001.asc
> [Thread debugging using libthread_db enabled]
> [New Thread 182923852160 (LWP 30474)]
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 182923852160 (LWP 30474)]
> apr_xml_quote_string (p=Variable "p" is not available.
> ) at /home/karol/var/svn/repossvn/trunk/apr-util/xml/apr_xml.c:538
> 538         for (scan = s; (c = *scan) != '\0'; ++scan, ++len) {
> (gdb) where
> #0  apr_xml_quote_string (p=Variable "p" is not available.

It looks like apr got a null comment which should have been fixed by
r14057 last month, are you using old libraries?

> ) at /home/karol/var/svn/repossvn/trunk/apr-util/xml/apr_xml.c:538
> #1  0x0000002a9733954c in svn_ra_dav__lock (session=Variable "session"
> is not available.
> ) at ../repossvn/trunk/subversion/libsvn_ra_dav/session.c:1011
> #2  0x0000002a958c0346 in svn_ra_lock (session=Variable "session" is not
> available.
> ) at ../repossvn/trunk/subversion/libsvn_ra/ra_loader.c:514
> #3  0x0000002a95685c88 in svn_client_lock (targets=Variable "targets" is
> not available.
> ) at ../repossvn/trunk/subversion/libsvn_client/locking_commands.c:369
> #4  0x000000000040762a in svn_cl__lock (os=Variable "os" is not available.
> ) at ../repossvn/trunk/subversion/clients/cmdline/lock-cmd.c:100
> #5  0x000000000040974b in main (argc=Variable "argc" is not available.
> ) at ../repossvn/trunk/subversion/clients/cmdline/main.c:1446

-- 
Philip Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn segfault

Posted by kf...@collab.net.
Karol Szkudlarek <ka...@mikronika.com.pl> writes:
> I'm trying to lock file with the latest svn from trunk and after:
> 
> svn lock 0001.asc
>
> I got segfault. Here is the gdb session:

Can you tell us everything?  Where did the working copy come from?
What are the contents of the file?  What other properties are on it?
What kind of repository, FSFS or BDB?

We need a reproduction recipe to debug this.

I can't reproduce with r14672 of trunk, in an FSFS repository over
http://, by the way.  The file is empty, and there's nothing else in
the repository.  I just did the simplest thing: created the file
"0001.asc" and locked it:

   $ svn lock 0001.asc
   Authentication realm: <http://localhost:80> Subversion repository
   Password for 'kfogel': ********
   
   '0001.asc' locked by user 'kfogel'.
   $ 

-Karl

> karol@karol:~/var/svn/maprepos/asc> gdb ~/usr/subversion/bin/svn
> GNU gdb 6.1
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "x86_64-suse-linux"...Using host libthread_db
> library "/lib64/tls/libthread_db.so.1".
> 
> (gdb) r lock 0001.asc
> Starting program: /home/karol/usr/subversion/bin/svn lock 0001.asc
> [Thread debugging using libthread_db enabled]
> [New Thread 182923852160 (LWP 30474)]
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 182923852160 (LWP 30474)]
> apr_xml_quote_string (p=Variable "p" is not available.
> ) at /home/karol/var/svn/repossvn/trunk/apr-util/xml/apr_xml.c:538
> 538         for (scan = s; (c = *scan) != '\0'; ++scan, ++len) {
> (gdb) where
> #0  apr_xml_quote_string (p=Variable "p" is not available.
> ) at /home/karol/var/svn/repossvn/trunk/apr-util/xml/apr_xml.c:538
> #1  0x0000002a9733954c in svn_ra_dav__lock (session=Variable "session"
> is not available.
> ) at ../repossvn/trunk/subversion/libsvn_ra_dav/session.c:1011
> #2  0x0000002a958c0346 in svn_ra_lock (session=Variable "session" is not
> available.
> ) at ../repossvn/trunk/subversion/libsvn_ra/ra_loader.c:514
> #3  0x0000002a95685c88 in svn_client_lock (targets=Variable "targets" is
> not available.
> ) at ../repossvn/trunk/subversion/libsvn_client/locking_commands.c:369
> #4  0x000000000040762a in svn_cl__lock (os=Variable "os" is not available.
> ) at ../repossvn/trunk/subversion/clients/cmdline/lock-cmd.c:100
> #5  0x000000000040974b in main (argc=Variable "argc" is not available.
> ) at ../repossvn/trunk/subversion/clients/cmdline/main.c:1446
> (gdb)
> 
> Regards,
> Karol
> 
> ps.
> 
> My platform is:
> Linux karol 2.6.5-7.151-default #1 Fri Mar 18 11:31:21 UTC 2005 x86_64
> x86_64 x86_64 GNU/Linux
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org