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

Re: subversion 1.2.0 - libsvn_repos/reporter.c does not survive gcc 3.4.2 -O2 optimization

From: Kiyo Kelvin Lee <kiyolee_at_hotmail.com>
Date: 2005-06-23 02:12:36 CEST

John Szakmeister wrote:
> So I built gcc-3.4.2, built Subversion from then new gcc, and then ran the
> testsuite... no failures. Looking at this backtrace, I see two things
> that concern me though. The first is that the report baton pointer is
> corrupted on the way into update_entry(). How that happened, I'm not
> sure. I don't see anything that would have led to that. There are no
> stack buffers to overrun, or anything like that. The second problem is
> the start_empty parameter to delta_dirs(). That parameter actually comes
> from the path_info_t structure, and gets its value as a result of a
> boolean expression (i.e., (a == b)). In C99 (and I believe C89, as
> well), these expressions evaluate to either 1 or 0. 136833088 is
> obviously not 1 or 0. :-)
>
> I don't know if it's possible, but can you try a couple of things. Can
> you try a clean installation of Subversion? I mean wipe out any old
> libraries that you might have (libsvn_*), etc., and then re-install it.
> If you feel brave, can you run the testsuite? In particular, if you can
> run subversion/tests/clients/cmdline/davautocheck.sh, then we can see if
> you're still getting failures. This is definitely a bizarre problem.
>
> Thanks Kiyo!
>
> -John

I believe my installation is fairly clean as I was installing through
the port tree of FreeBSD. Just went to the port directory and enter make
install. There was no manually change applied.
In addition, pkg_delete or make deinstall seemed working well to delete
all those files before a new install.
However, I will try to rebuilt the whole lot and run the testsuite later.
BTW, just curious, what OS are you using for the test?
I notice that the problem seemed not happen on Debian. Assuming Debian
built their binary package with gcc 3.4.x and also with -O2.
So I still wonder if this is not really a problem of subversion but the
gcc built from (my?) FreeBSD source.
I am also thinking once I get the official FreeBSD CD, I may try
building subversion with that instead. At the moment, my FreeBSD
installation was built from source myself. There may be something wrong
with that. But I have also used the same compiler to build my 500+
packages (including X11 and KDE and also with -O2) installed and
everything is working fine except subversion. :-(
Yes, this is really bizarre and that's what gets me interested.
Regards,
Kiyo

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jun 23 02:14:27 2005

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.