You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Stefan Fritsch <sf...@sfritsch.de> on 2011/02/22 23:18:14 UTC

APR_RING aliasing problem / segfaults with gcc 4.5

Hi,

there is still the strict aliasing problem with the APR_RING macros 
which causes httpd to segfault with gcc 4.5 [1,2]. Has anyone found a 
better solution to that than marking the ring head elements volatile? 
A similar change has already been made for the ring entry elements in 
r566349.

This is something we need to fix in the next 1.4.x release. If there 
is no other suggestion, I will commit this fix [3].

Cheers,
Stefan



[1] https://issues.apache.org/bugzilla/show_bug.cgi?id=50190
[2] https://issues.apache.org/bugzilla/show_bug.cgi?id=50798
[3] http://svn.mandriva.com/cgi-
bin/viewvc.cgi/packages/cooker/apr/current/SOURCES/apr-1.4.2-
alias.patch?view=markup&pathrev=604557