Edit report at https://bugs.php.net/bug.php?id=46311&edit=1

 ID:                 46311
 Comment by:         olemar...@php.net
 Reported by:        anton at samba dot org
 Summary:            Pointer aliasing issue results in miscompile on
                     gcc4.4
 Status:             Assigned
 Type:               Bug
 Package:            Compile Failure
 Operating System:   RHEL5.2 / PowerPC64
 PHP Version:        5.2.9
 Assigned To:        dmitry
 Block user comment: N
 Private report:     N

 New Comment:

Does it matter exactly where the bug is? It breaks compilation on arm and sparc 
as far as I can tell, and the patch is really simple. The problem is not caused 
by aggressive optimisations at least. I would not bother upstream with it if it 
was.


Previous Comments:
------------------------------------------------------------------------
[2013-03-19 19:24:12] dmi...@php.net

This is not a PHP problem. The C code is absolutely legal and wrong compilation 
caused by a bug in GCC or too aggressive optimization options that make wrong 
assumptions.

------------------------------------------------------------------------
[2013-03-19 18:51:42] olemar...@php.net

The Gentoo patchset has been running with this for years now. Any reason why 
this 
has not been resolved yet?

------------------------------------------------------------------------
[2010-07-25 02:17:06] mabi at gentoo dot org

There are Gentoo downstream bugs related to this issue:
https://bugs.gentoo.org/show_bug.cgi?id=295682
https://bugs.gentoo.org/show_bug.cgi?id=329753

I'd love to see this fixed upstream, but will ship a custom patch to get this 
more testing shortly.

------------------------------------------------------------------------
[2008-10-16 09:35:17] johan...@php.net

Dmitry, can you check this?

------------------------------------------------------------------------
[2008-10-16 05:54:12] anton at samba dot org

To clarify... the Zend code reads via zval *, not long *. The cut down test 
case I submitted was simplified to use a long *.

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=46311


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=46311&edit=1

Reply via email to