[php-maint] Bug#481737: PHP 5.2.6 with suhosin causes bus errors

Stefan Esser sesser at hardened-php.net
Sun Jun 15 13:07:40 UTC 2008


if I see correctly you are using an old GCC on a sparc. And Suhosin 
crashs with a bus error.

Well that is no suprise. Older GCC on sparc for some reason optimizes a 
memcpy() away into direct memory access. Of course this is illegal, 
because this results in not aligned memory address.

Solution: Use a fixed compiler.


> At Debian while packaging the version 5.2.6 of PHP we have found a problem[1] 
> caused by suhosin[2].
> The original suhosin patch has been massaged a little. For more information, 
> including a copy of the patch used, please refer to [3].
> Hope this information is useful to fix the bug, as we would like to ship php 
> 5.2.6 + suhosin in Debian's next release, lenny.
> [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=481737
> [2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=481737#25
> [3] 
> http://svn.debian.org/viewsvn/*checkout*/pkg-php/php5/tags/5.2.6-1/debian/patches/suhosin.patch?content-type=text%2Fplain
> Thanks in advance.
> Kind regards,

More information about the pkg-php-maint mailing list