httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Fritsch>
Subject Re: [PATCH] SIGBUS when compiled with gcc 4.3
Date Thu, 24 Jul 2008 19:48:25 GMT

On Wednesday 23 July 2008, Joe Orton wrote:
> > when compiled with gcc 4.3 on Sparc under Linux, Apache 2.2.9
> > sometimes crashes with SIGBUS in the ssl shmcb code.
> >
> > Adding __attribute__((__noinline__)) (which is already present in
> > ssl_scache_shmcb.c for the memset call) to the memcpy calls seems
> > to fix the problem.
> Blech, thanks for tracking this down.  There is an outstanding PR
> that this happens with some Solaris compiler too, for which nobody
> has worked out a way to prevent inlining.
> So I'd be inclined to bite the bullet and backport the rewritten
> shmcb from the trunk, which should avoid these alignment issues
> forever more.
> Can you try the attached?

The new shmcb code works for me without SIGBUS, too. But I only have a 
test setup with no real users, and I haven't tested too much.

If you chose to backport the code, will you do it for 2.0, too? See
If not, you should at least add the __attribute__((__noinline__)) to 
2.0, IMHO.


View raw message