Pedro de Oliveira wrote: > Following your tips I built Apache with -O0 and the segfaults in > "mpm_prefork" no longer happen. Maybe its a gcc optimization issue. I > dont know which -O OpenBSD uses by default, but I will try it also > with -O1 and report back.
Remember, compiler optimizations can worsen the impact of undefined behavior. That seems more likely than a compiler bug to me.