You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Sjors Gielen <da...@dazjorz.com> on 2010/07/05 12:14:06 UTC

Re: SVN broken since the newest version

Op 16 jun 2010, om 16:00 heeft Sjors Gielen het volgende geschreven:

> Hello, Subversion list,
> 
> I have reported this problem in the Fink SVN package yesterday. Since version 1.6.11, SVN crashes and corrups my checkouts.

[..]

> Summary of test results:
>  2 tests SKIPPED
>  4 tests XFAILED
>  89 tests FAILED

[..]

> Shall I report these tests failing as a bug now, or can you first help me further by e-mail?

Hi list,

I never received any reply to this, so I assumed nobody already knows this bug. I have therefore reported it at <http://subversion.tigris.org/issues/show_bug.cgi?id=3670>.

Sjors

Re: SVN broken since the newest version

Posted by Sjors Gielen <da...@dazjorz.com>.
Op 5 jul 2010, om 16:01 heeft Stefan Sperling het volgende geschreven:

> Subversion developers are running the test suite on MacOSX before
> release. And we don't release with failing tests.

I know this is a local problem on my machine, I already drew that conclusion, however...

> This is very likely a problem with the APR library, because it is
> used to do i/o. If Subversion cannot even read dirents, I'm wondering
> why any of the regression tests pass for you at all (maybe it works
> half the time?).
> 
> I'd like to help you figure out what the problem is.
> For starters, let's find out what APR your Subversion binary runs with.
> Please post the output of:
>  ldd `which svn`

It was actually a problem with the APR library, but it was quite weird. After I recompiled the exact same version of the APR library -including packaging revision, so *no* changes to the one I had-, installed that version, then recompiled SVN and ran the test case, it worked fine. At least, I'm at 42/71 and there are no errors yet. Maybe it has to do with APR not being updated for a long time, so I compiled SVN with another compiler version than APR, or something like that.

Either way, test suite succeeds after recompilation of APR then SVN. I'll update the bug report. Thanks!

Sjors

Re: SVN broken since the newest version

Posted by Stefan Sperling <st...@elego.de>.
On Mon, Jul 05, 2010 at 03:42:35PM +0300, Sjors Gielen wrote:
> 
> Op 5 jul 2010, om 15:26 heeft Stefan Sperling het volgende geschreven:
> 
> > The Subversion project itself does not maintain the Fink package.
> > So I'm afraid we're probably not the right people to file this issue with.
> > I suspect an error in the packaging, rather than a bug in Subversion.
> > Please talk to the Fink package maintainers.
> 
> Hello Stefan,
> 
> As said in the original message, I did talk to the Fink package
> maintainers, which recommended me to run the test suite, which failed.
> A test suite does not normally fail because of a simple packaging
> problem.

Packaging is very complicated because it involves linking
Subversion to the right libraries at build and run-time.
It is easy to overlook subtle problems during build and installation
which cause unexpected behaviour (such as random segfaults).

> Fink patches the libtool file to fix compilation, and it uses
> extensive configure flags. None of this should make so much of the
> test suite fail, let alone corrupt repositories. None of this has been
> changed, as far as I know, in the past versions; this bug also does
> not appear with some of the other SVN users on Fink I've spoken to.

If other fink users don't see it, that makes it even more
likely that you have a local problem on your machine.

> Please check the bug report itself,

I did check the bug report.

The paste-bin post linked from the bug report (http://pastebin.com/RmFVqZYd)
contains obvious failures such as:

sjors@smbp:~/Projecten/ruwave/svn/trunk/server$ svn status
Bus error
sjors@smbp:~/Projecten/ruwave/svn/trunk/server$ svn up
Segmentation fault

This means something is broken with the Subversion build and/or
installation. Most likely a problem with incompatible APR versions
being used at build time and at run time.

Subversion developers are running the test suite on MacOSX before
release. And we don't release with failing tests.

> it contains some more information, including a lead on what might be the cause... :)

You mean the hypothetical off-by-one bug you mentioned?
Or this trace?

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x0010108a in svn_io_get_dirents2 ()
(gdb) bt
#0  0x0010108a in svn_io_get_dirents2 ()
#1  0x000a64f6 in get_dir_status ()
#2  0x000a6e07 in close_edit ()
#3  0x00061ae7 in svn_client_status4 ()
#4  0x00011ce4 in svn_cl__status ()
#5  0x0000c312 in main ()
(gdb) quit

This is very likely a problem with the APR library, because it is
used to do i/o. If Subversion cannot even read dirents, I'm wondering
why any of the regression tests pass for you at all (maybe it works
half the time?).

I'd like to help you figure out what the problem is.
For starters, let's find out what APR your Subversion binary runs with.
Please post the output of:
  ldd `which svn`

Thanks,
Stefan

Re: SVN broken since the newest version

Posted by Sjors Gielen <da...@dazjorz.com>.
Op 5 jul 2010, om 15:26 heeft Stefan Sperling het volgende geschreven:

> The Subversion project itself does not maintain the Fink package.
> So I'm afraid we're probably not the right people to file this issue with.
> I suspect an error in the packaging, rather than a bug in Subversion.
> Please talk to the Fink package maintainers.

Hello Stefan,

As said in the original message, I did talk to the Fink package maintainers, which recommended me to run the test suite, which failed. A test suite does not normally fail because of a simple packaging problem.

Fink patches the libtool file to fix compilation, and it uses extensive configure flags. None of this should make so much of the test suite fail, let alone corrupt repositories. None of this has been changed, as far as I know, in the past versions; this bug also does not appear with some of the other SVN users on Fink I've spoken to.

Please check the bug report itself, it contains some more information, including a lead on what might be the cause... :)

Thanks,
Sjors

Re: SVN broken since the newest version

Posted by Stefan Sperling <st...@elego.de>.
On Mon, Jul 05, 2010 at 03:14:06PM +0300, Sjors Gielen wrote:
> 
> Op 16 jun 2010, om 16:00 heeft Sjors Gielen het volgende geschreven:
> 
> > Hello, Subversion list,
> > 
> > I have reported this problem in the Fink SVN package yesterday. Since version 1.6.11, SVN crashes and corrups my checkouts.
> 
> [..]
> 
> > Summary of test results:
> >  2 tests SKIPPED
> >  4 tests XFAILED
> >  89 tests FAILED
> 
> [..]
> 
> > Shall I report these tests failing as a bug now, or can you first help me further by e-mail?
> 
> Hi list,
> 
> I never received any reply to this, so I assumed nobody already knows this bug. I have therefore reported it at <http://subversion.tigris.org/issues/show_bug.cgi?id=3670>.

The Subversion project itself does not maintain the Fink package.
So I'm afraid we're probably not the right people to file this issue with.
I suspect an error in the packaging, rather than a bug in Subversion.
Please talk to the Fink package maintainers.

Thanks,
Stefan