Summary: | apr_ring aliasing issue causes segfaults | ||
---|---|---|---|
Product: | APR | Reporter: | John Andrea <john.andrea> |
Component: | APR | Assignee: | Apache Portable Runtime bugs mailinglist <bugs> |
Status: | CLOSED FIXED | ||
Severity: | major | CC: | Arfrever.FTA, b3nder, j-comm, LpSolit, shankao |
Priority: | P2 | ||
Version: | HEAD | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Linux | ||
Attachments: | possible workaround |
Description
John Andrea
2010-11-01 12:03:21 UTC
Using Fedora 14 beta with gcc 4.5.1 the problem is reproduced. We have the same issue with the Mandriva Linux distro, see https://qa.mandriva.com/show_bug.cgi?id=61384 This is a pretty critical issue as it prevents e.g. the Bugzilla web application from working with Apache 2.2.17. Seems related to http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46488 From reading through the bug reports, I got the impression that the APR_RING/APR_BRIGADE code is simply not safe WRT strict-aliasing rules and the only possible fix would be to add -fno-strict-alias to the default CFLAGS. Is this correct? Well, Eric in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46488#c18 (comment 18) suggests a change which might fix the problem wrt strict aliasing. This would avoid the use of -fno-strict-alias. Created attachment 26357 [details]
possible workaround
Can someone test whether the attached patch makes a difference?
$ (cd srclib/apr-util && patch -p0 < /path/to/apr_alias.diff)
$ make clean && make
> Can someone test whether the attached patch makes a difference?
No change.
Mandriva has a working patch on this (http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/apr/current/SOURCES/apr-1.4.2-alias.patch?view=markup&pathrev=604557) Also added to ubuntu's launchpad: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/697105 *** Bug 50520 has been marked as a duplicate of this bug. *** Related bug with fix https://issues.apache.org/bugzilla/show_bug.cgi?id=50798 *** Bug 50798 has been marked as a duplicate of this bug. *** |