Updates:
Summary: make error "array subscript is above array bounds" for v>=1.4.5
on Opensuse (upstream bug)
Status: Accepted
Comment #3 on issue 219 by [email protected]: make error "array subscript
is above array bounds" for v>=1.4.5 on Opensuse (upstream bug)
http://code.google.com/p/memcached/issues/detail?id=219
We're going to declare this a WONTFIX, but leave it open for others to
understand what the issue is.
This appears to be a compiler bug affecting OpenSuse. There are many
references to it in other projects, all of which have dumb workarounds we'd
rather not do. We've seen memcached compile with any one of these three
things:
* Manually create char arrays for this function as shown in this patch.
* Make this function not be static/inline.
* Disable gcc optimizations (change -O2 to -O0 )
If the code fails to compile on one or two platforms because of a bug in
the compiler and the workarounds aren't clean (either reducing performance
in the latter two or just making things confusing in the first one), we'd
rather just wait for the upstream to fix their bugs.
This bug will be left open until the vendor distributes a fix for their
bug, and then close it as wontfix. Simple workarounds are welcome here,
but if the code isn't wrong, we'd rather not fix it.
Tested good on:
GCC 4.5.3 / FreeBSD
GCC 4.6.1 / debian
GCC 4.6.0 / fedora
GCC 4.5.2 / ubuntu
clang 2.1 / OS X Lion