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

Re: Problems compiling 1.7.0 on redhat el4 64bit

From: Mark Phippard <markphip_at_gmail.com>
Date: Tue, 16 Aug 2011 11:25:16 -0400

Where do we stand on this? I have not seen anyone propose the obvious fix
which would be to reverse the commit that caused the problem. Do we really
need this optimization if it can segfault with the wrong compiler settings?

As mentioned before, we saw this same problem in the Linux RPM's that we
provide. Currently we are working around it by doing the build on RHEL 5
and dropping support for RHEL 4, but obviously the preferred solution for us
would be to continue to support RHEL 4.

Mark

On Wed, Aug 10, 2011 at 3:52 PM, <michael_rytting_at_agilent.com> wrote:

> I am attaching a stack trace with symbols enabled.
>
> I'm using gcc. The default in the makefile.
>
> I am using the apr that you get from the get-deps.sh script.
> APR_HAS_THREADS is defined.
>
> If I disable optimizations by doing "make CFLAGS=-O0" the program no longer
> crashes.
>
> -----Original Message-----
> From: Philip Martin [mailto:philip.martin_at_wandisco.com]
> Sent: Tuesday, August 09, 2011 3:34 PM
> To: Mark Phippard
> Cc: RYTTING,MICHAEL (A-ColSprings,ex1); Subversion Development;
> users_at_subversion.apache.org
> Subject: Re: Problems compiling 1.7.0 on redhat el4 64bit
>
> Mark Phippard <markphip_at_gmail.com> writes:
>
> > On Tue, Aug 9, 2011 at 4:49 PM, <michael_rytting_at_agilent.com> wrote:
> >
> >> ** **
> >>
> >> Ok, I’ve tracked down which revision caused the problem. It happened
> >> in rev 1104160. Stefan2 made a change to utf.c to speed up UTF8
> conversion.
> >> Ever since this change went in I am seeing subversion crash when I
> >> compile on 64bit el4.****
> >>
> >> ** **
> >>
> >> Just for kicks and giggles I updated to the HEAD revision of
> >> http://svn.apache.org/repos/asf/subversion/trunk. Did a reverse
> >> merge on rev 1104160, cleaned up the conflicts and built it and
> >> viola! No more crashing when built on 64bit el4.
> >>
> >
> > Thanks. Moving the thread to dev@
> >
> > Can someone look at this and possibly fix it?
> >
> > If you are not on users@, and to summarize this thread. SVN builds
> > fine on RHEL 4 64-bit but crashes immediately on any command, even svn
> > help. I saw the same problem with our builds.
>
> It could be a compiler/optimiser bug. Which compiler are you using?
> Can you provide a stack trace of the crash (with debug symbols please)?
> Does the crash go away if you compile utf.c without optimisation? Which
> version of APR are you using? Is APR_HAS_THREADS defined in apr.h?
>
> --
> uberSVN: Apache Subversion Made Easy
> http://www.uberSVN.com
>

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
Received on 2011-08-16 17:25:48 CEST

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.