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

'svn st' segfaults

From: Osku Salerma <salerma_at_cc.helsinki.fi>
Date: 2003-11-06 13:53:42 CET

How to make subversion 0.32.1 crash:

cd <random workspace>
touch <random versioned file>
chmod 0 <same random versioned file>
svn st
Segmentation fault

strace gives:

...
stat64(".svn/text-base/fooblaa.txt.svn-base", {st_mode=S_IFREG|0444,
st_size=0, ...}) = 0
open("fooblaa.txt", O_RDONLY) = -1 EACCES (Permission
denied)
--- SIGSEGV (Segmentation fault) ---

and the backtrace is:

(gdb) bt
#0 0x40169470 in svn_error_compose () from
/usr/lib/libsvn_subr-1.so.0
#1 0x4004959f in svn_wc__versioned_file_modcheck ()
   from /usr/lib/libsvn_wc-1.so.0
#2 0x400496c6 in svn_wc_text_modified_p () from
/usr/lib/libsvn_wc-1.so.0
#3 0x4004a158 in assemble_status () from /usr/lib/libsvn_wc-1.so.0
#4 0x4004a312 in send_status_structure () from
/usr/lib/libsvn_wc-1.so.0
#5 0x4004a65b in handle_dir_entry () from /usr/lib/libsvn_wc-1.so.0
#6 0x4004abfc in get_dir_status () from /usr/lib/libsvn_wc-1.so.0
#7 0x4004be28 in close_edit () from /usr/lib/libsvn_wc-1.so.0
#8 0x4015aae6 in close_edit () from /usr/lib/libsvn_delta-1.so.0
#9 0x4002b277 in svn_client_status () from
/usr/lib/libsvn_client-1.so.0
#10 0x08051ef1 in svn_cl__status ()
#11 0x0804ec7f in main ()
#12 0x4042f4ed in __libc_start_main () from /lib/libc.so.6

This is on Linux, btw.

I assume it's a simple error of some code not handling EACCES
correctly, but if you can't reproduce the error I can investigate it
further.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Nov 6 13:54:31 2003

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.