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

Possible bug in libsvn_wc on OpenBSD [more info]

From: Mark Grosberg <mark_at_nolab.conman.org>
Date: 2003-12-04 21:15:10 CET

Well,

I managed to catch why I am getting the following error on my
OpenBSD box:

  /tmp/sem/src> svn ps -R svn:eol-style native .
  svn: Obstructed update
  svn: svn_wc__close_props: '' is not a working copy directory

But I'm stumped as to why. Here is a transcript of my GDB work:

--------------------------------------------------------------------------

Breakpoint 1, svn_io_read_version_file (version=0xcfbfd624,
    path=0x3900b0 "framework/.svn/format", pool=0x1cd018)
    at subversion/libsvn_subr/io.c:2171
2171 SVN_ERR (svn_io_file_open (&format_file, path, APR_READ,
(gdb) n
2172 APR_OS_DEFAULT, pool));
(gdb)
2173 len = sizeof(buf);
(gdb)
2174 apr_err = apr_file_read (format_file, buf, &len);
(gdb)
2175 if (apr_err)
(gdb) print apr_err
$27 = 0
(gdb) c
Continuing.

Breakpoint 1, svn_io_read_version_file (version=0xcfbfd624,
    path=0x392098 "framework/.svn/format", pool=0x1cd018)
    at subversion/libsvn_subr/io.c:2171
2171 SVN_ERR (svn_io_file_open (&format_file, path, APR_READ,
(gdb) n
2172 APR_OS_DEFAULT, pool));
(gdb) n
2173 len = sizeof(buf);
(gdb) n
2174 apr_err = apr_file_read (format_file, buf, &len);
(gdb) print apr_err
$28 = 3743832
(gdb) print format_file
$29 = (apr_file_t *) 0x3920c8
(gdb) print path
$30 = 0x392098 "framework/.svn/format"
(gdb)

----------------------------------------------------------------------

The funny thing is, that bit of code seems to work 100 times in a row, but
eventually, it returns this APR error.

So, now here are the possabilities:

  (1) OpenBSD has a subtle race/error in the kernel that Subversion seems
      to tickle.

  (2) There is a pool leakage error and this is causing us to eventually
      exhaust the maximum number of file descriptors (and this happens
      quicker on my OpenBSD box).

  (3) I'm on crack and can't compile C programs anymore. In which case,
      I should consider another profession.

I'm not an APR guy. I will continue debugging though.

L8r,
Mark G.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Dec 4 21:15:57 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.