Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 402285 - x11-base/xorg-server-1.11.4 - work/xorg-server-1.11.4/hw/xfree86/modes/xf86EdidModes.c:750:19: error: array subscript is above array bounds
Summary: x11-base/xorg-server-1.11.4 - work/xorg-server-1.11.4/hw/xfree86/modes/xf86Ed...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal with 3 votes (vote)
Assignee: Gentoo X packagers
URL: http://lists.x.org/archives/xorg-deve...
Whiteboard:
Keywords:
: 402571 405139 420127 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-02-05 21:23 UTC by Kevin Meagher
Modified: 2012-08-25 08:56 UTC (History)
11 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
complete build log (build.log.txz,39.72 KB, text/x-xz)
2012-02-06 21:13 UTC, Stefan Hübner
Details
build.log part 1 (build.log.part1,795.65 KB, text/plain)
2012-02-07 00:13 UTC, Kevin Meagher
Details
build.log part 2 (build.log.part2,930.17 KB, text/plain)
2012-02-07 00:13 UTC, Kevin Meagher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Meagher 2012-02-05 21:23:40 UTC
The compile has a lot of warnings these are the errors:

/var/tmp/portage/x11-base/xorg-server-1.11.4/work/xorg-server-1.11.4/hw/xfree86/modes/xf86EdidModes.c:750:19: error: array subscript is above array bounds
/var/tmp/portage/x11-base/xorg-server-1.11.4/work/xorg-server-1.11.4/hw/xfree86/modes/xf86EdidModes.c:749:19: error: array subscript is above array bounds
/var/tmp/portage/x11-base/xorg-server-1.11.4/work/xorg-server-1.11.4/hw/xfree86/modes/xf86EdidModes.c:748:19: error: array subscript is above array bounds
/var/tmp/portage/x11-base/xorg-server-1.11.4/work/xorg-server-1.11.4/hw/xfree86/modes/xf86EdidModes.c:747:33: error: array subscript is above array bounds
/var/tmp/portage/x11-base/xorg-server-1.11.4/work/xorg-server-1.11.4/hw/xfree86/modes/xf86EdidModes.c:750:19: error: array subscript is above array bounds
/var/tmp/portage/x11-base/xorg-server-1.11.4/work/xorg-server-1.11.4/hw/xfree86/modes/xf86EdidModes.c:749:19: error: array subscript is above array bounds
/var/tmp/portage/x11-base/xorg-server-1.11.4/work/xorg-server-1.11.4/hw/xfree86/modes/xf86EdidModes.c:748:19: error: array subscript is above array bounds
/var/tmp/portage/x11-base/xorg-server-1.11.4/work/xorg-server-1.11.4/hw/xfree86/modes/xf86EdidModes.c:747:33: error: array subscript is above array bounds
/var/tmp/portage/x11-base/xorg-server-1.11.4/work/xorg-server-1.11.4/hw/xfree86/modes/xf86EdidModes.c:750:19: error: array subscript is above array bounds
/var/tmp/portage/x11-base/xorg-server-1.11.4/work/xorg-server-1.11.4/hw/xfree86/modes/xf86EdidModes.c:749:19: error: array subscript is above array bounds
/var/tmp/portage/x11-base/xorg-server-1.11.4/work/xorg-server-1.11.4/hw/xfree86/modes/xf86EdidModes.c:748:19: error: array subscript is above array bounds
/var/tmp/portage/x11-base/xorg-server-1.11.4/work/xorg-server-1.11.4/hw/xfree86/modes/xf86EdidModes.c:747:33: error: array subscript is above array bounds


Reproducible: Always




Portage 2.1.10.45 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.14.1-r2, 3.2.2-gentoo x86_64)
=================================================================
System uname: Linux-3.2.2-gentoo-x86_64-Intel-R-_Core-TM-_i5_CPU_750_@_2.67GHz-with-gentoo-2.1
Timestamp of tree: Sun, 05 Feb 2012 20:15:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.7-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.2-r1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://gentoo.mirrors.pair.com/ http://gentoo.netnitco.net http://gentoo.mirrors.tds.net/gentoo http://gentoo.mirrors.pair.com/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_US en"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apng berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fontconfig fontforge fortran gdbm gdu gif gnutls gpm gtk hddtemp iconv icu id3tag ipod jpeg lapack lcms ldap libnotify libsamplerate lm_sensors mad midi mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pdf png policykit ppds pppd python qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg sysfs tcpd threads tiff timidity truetype twolame udev unicode usb vdpau vorbis x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en" LIRC_DEVICES="serial" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nv nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Kevin Meagher 2012-02-05 21:25:28 UTC
Complete build log is too long to atach
Comment 2 Nickolay Kolchin-Semyonov 2012-02-05 22:23:26 UTC
The issue is with "-O3" option. It compiles OK with "-O2".
Comment 3 Kevin Meagher 2012-02-06 04:28:40 UTC
I can confirm that it compiles with CFLAGS="-march=core2 -O2 -pipe".
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2012-02-06 20:25:41 UTC
Please attach the entire build log file to this bug report.
Comment 5 Stefan Hübner 2012-02-06 21:13:44 UTC
Created attachment 301077 [details]
complete build log

There you go ... (it had to be packed ...)

It's not only reproducible, it's buggy coding.  The table where values are taken out of is shorter than the indices used could reach.  I.e. it's only 44 elements, but the indices would reach up to 47 elements.
Comment 6 Stefan Hübner 2012-02-06 21:19:57 UTC
P.S.: The last element in the table contains a "," at the end, which shouldn't be used in inline table definitions for the last element. Looks like some lines were accidentally deleted...
Comment 7 Kevin Meagher 2012-02-07 00:13:23 UTC
Created attachment 301097 [details]
build.log part 1
Comment 8 Kevin Meagher 2012-02-07 00:13:42 UTC
Created attachment 301099 [details]
build.log part 2
Comment 9 Mark R. Pariente 2012-02-07 07:49:25 UTC
There's an upstream patch here which may be related:
http://patchwork.freedesktop.org/patch/7970/
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2012-02-07 20:25:23 UTC
(In reply to comment #5)
> Created attachment 301077 [details]
> complete build log
> 
> There you go ... (it had to be packed ...)

You have never heard of file compression? Next time just run bzip2 on the file. :)
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2012-02-07 20:26:13 UTC
(In reply to comment #10)
> (In reply to comment #5)
> > Created attachment 301077 [details]
> > complete build log
> > 
> > There you go ... (it had to be packed ...)
> 
> You have never heard of file compression? Next time just run bzip2 on the file.
> :)

I meant to refer to comment #7 there.
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2012-02-07 20:29:09 UTC
*** Bug 402571 has been marked as a duplicate of this bug. ***
Comment 13 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-02-07 21:12:17 UTC
The problem seems to only appear in combination with -O3 in CFLAGS.
Comment 14 Matt Whitlock 2012-02-10 23:46:15 UTC
(In reply to comment #9)
> There's an upstream patch here which may be related:
> http://patchwork.freedesktop.org/patch/7970/

That patch is a little ugly, but it would fix the problem.

As a side note, the original code (and the patched code) appear to contain an off-by-one error that prevents the last mode in each group from being added to the server.  "j > 0" should be changed to "j >= 0".
Comment 15 Boney McCracker 2012-02-12 03:14:45 UTC
When I noticed this error, I masked xorg-server-1.11.4 and rebuilt xorg-server-1.11.3 (which I am running as I speak), and got the same errors (literally the same line references to xf86EdidModes.c).

So:

a) Does it also need to be patched?

b) Is a change outside the xorg-server code (some library or something) triggering this, and does it need to be looked at?
Comment 16 Boney McCracker 2012-02-12 03:18:48 UTC
When I noticed this error, I masked xorg-server-1.11.4 and rebuilt xorg-server-1.11.3 (which I am running as I speak), and got the same errors (literally the same line references to xf86EdidModes.c).

So:

a) Does it also need to be patched?

b) Is a change outside the xorg-server code (some library or something) triggering this, and does it need to be looked at?
Comment 17 Boney McCracker 2012-02-12 06:22:04 UTC
The patch attached at the "see also" URL works for me (with -O3).
https://bugs.freedesktop.org/show_bug.cgi?id=45623
Comment 18 Stefan Hübner 2012-02-12 19:01:37 UTC
https://bugs.freedesktop.org/show_bug.cgi?id=45623

Seems to me like the cleanest solution!  Please add it to -r1.
Comment 19 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-02-21 12:51:18 UTC
*** Bug 405139 has been marked as a duplicate of this bug. ***
Comment 20 Edward Batraev 2012-03-12 03:53:35 UTC
This is really a bug.
And I have seen it in the version of xorg-server-1.11.3.

/var/tmp/portage/x11-base/xorg-server-1.11.3/work/xorg-server-1.11.3/hw/xfree86/modes/xf86EdidModes.c: In function ‘handle_detailed_modes’:
/var/tmp/portage/x11-base/xorg-server-1.11.3/work/xorg-server-1.11.3/hw/xfree86/modes/xf86EdidModes.c:750:19: error: array subscript is above array bounds
/var/tmp/portage/x11-base/xorg-server-1.11.3/work/xorg-server-1.11.3/hw/xfree86/modes/xf86EdidModes.c:749:19: error: array subscript is above array bounds
/var/tmp/portage/x11-base/xorg-server-1.11.3/work/xorg-server-1.11.3/hw/xfree86/modes/xf86EdidModes.c:748:19: error: array subscript is above array bounds
/var/tmp/portage/x11-base/xorg-server-1.11.3/work/xorg-server-1.11.3/hw/xfree86/modes/xf86EdidModes.c:747:33: error: array subscript is above array bounds
/var/tmp/portage/x11-base/xorg-server-1.11.3/work/xorg-server-1.11.3/hw/xfree86/modes/xf86EdidModes.c:750:19: error: array subscript is above array bounds
/var/tmp/portage/x11-base/xorg-server-1.11.3/work/xorg-server-1.11.3/hw/xfree86/modes/xf86EdidModes.c:749:19: error: array subscript is above array bounds
/var/tmp/portage/x11-base/xorg-server-1.11.3/work/xorg-server-1.11.3/hw/xfree86/modes/xf86EdidModes.c:748:19: error: array subscript is above array bounds
/var/tmp/portage/x11-base/xorg-server-1.11.3/work/xorg-server-1.11.3/hw/xfree86/modes/xf86EdidModes.c:747:33: error: array subscript is above array bounds
/var/tmp/portage/x11-base/xorg-server-1.11.3/work/xorg-server-1.11.3/hw/xfree86/modes/xf86EdidModes.c:750:19: error: array subscript is above array bounds
/var/tmp/portage/x11-base/xorg-server-1.11.3/work/xorg-server-1.11.3/hw/xfree86/modes/xf86EdidModes.c:749:19: error: array subscript is above array bounds
/var/tmp/portage/x11-base/xorg-server-1.11.3/work/xorg-server-1.11.3/hw/xfree86/modes/xf86EdidModes.c:748:19: error: array subscript is above array bounds
/var/tmp/portage/x11-base/xorg-server-1.11.3/work/xorg-server-1.11.3/hw/xfree86/modes/xf86EdidModes.c:747:33: error: array subscript is above array bounds
make[4]: *** [xf86EdidModes.lo] Ошибка 1
make[4]: *** Ожидание завершения заданий...

Submitted Patch solves the problem.
Comment 21 Matt Whitlock 2012-03-12 15:24:20 UTC
(In reply to comment #20)
> Submitted Patch solves the problem.

I dropped the patch into /etc/portage/patches/x11-base/xorg-server-1.11.4, and the ebuild applies it and builds successfully then.  Usable workaround until the patch gets into Portage (or upstream).
Comment 22 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-03-18 17:31:36 UTC
A workaround was added to xorg-server-1.12.0
For properly fixing this bug, we will see what upstream approves and backport as necessary.
Comment 23 Alexander Koryushkin 2012-03-20 09:21:50 UTC
Same problem.

emerge --info
Portage 2.1.10.49 (default/linux/powerpc/ppc32/10.0/desktop/kde, gcc-4.5.3, glibc-2.13-r4, 3.1.5-gentoo ppc)
=================================================================
System uname: Linux-3.1.5-gentoo-ppc-7455,_altivec_supported-with-gentoo-2.0.3
Timestamp of tree: Tue, 20 Mar 2012 07:00:02 +0000
distcc 3.1 powerpc-unknown-linux-gnu [enabled]
app-shells/bash:          4.2_p20
dev-lang/python:          2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo roslin betagarden
ACCEPT_KEYWORDS="ppc"
ACCEPT_LICENSE="*"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-pipe -O2 -mcpu=7450 -mtune=7450 --param l2-cache-size=256 -maltivec -mabi=altivec -fomit-frame-pointer"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-pipe -O2 -mcpu=7450 -mtune=7450 --param l2-cache-size=256 -maltivec -mabi=altivec -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distcc distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS=" http://mirror.yandex.ru/gentoo-distfiles/ http://gentoo.supp.name/"
LANG="ru_RU.UTF-8"
LC_ALL="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru"
MAKEOPTS="-j1 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/roslin /var/lib/layman/betagarden"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acc acl addbookmarks aim akode alias alsa altivec amr aol ass bash-completion berkdb bidi bluetooth branding bs2b bzip2 cairo capi cd cdda cddb cdparanoia cdr chm cifs cleartype cli connectionstatus consolekit contactnotes corefonts cracklib crypt css cups curl cxx daap dbus dc1394 declarative dia dirac divx djvu dri dri2 dts dv dvb dvd dvdr ebook emboss emf enca encode eselect esound exif expat extras faac faad fam fax ffmpeg fftw firefox flac fluidsynth fontconfig fortran ftp g4 gadu gallium gdbm gdu gif gimp git glibc-omitfp glitz glut gmp gmplayer gnutls gpm graphviz gs gstreamer h224 h281 h323 highlight httpd i18n iax ibam iconv icq id3tag idn ieee1394 ifp imagemagick inkjar iphone irc ivr ixj jabber jack jadetex javascript jbig jingle joystick jpeg jpeg2k kate kde kdeenablefinal kipi kpathsea ladspa lame lastfm lcms ldap libass libcaca libkms libnotify libsamplerate libtiger libv4l libv4l2 lid live lto lua lzma lzo mad matroska md5sum mikmod mjpeg mng modplug modules mp3 mp3tunes mp4 mpeg mplayer msn mtp mudflap multimedia musepack musicbrainz mysql nas natspec ncurses netmeeting network networkmanager njb nls nouveau nptl nptlonly nut nuv ogg openal openexr opengl openmp openssl optimisememory optimization oscar pam pango pch pcre pdf perl phonon pipechan plasma plotutils plugins pmu png pnm policykit postproc postscript power powerbook powerpc ppc ppcsha1 ppds pppd private-headers projectm pvr qt3support qt4 quicktime radio raster raw rdesktop readline realrtsp rfc4175 rtmp rtsp samba sametime sane sbc scanner scrobbler sdl session shine shmvideo shout sip sipim skins slang smb smbclient sms sndfile snmp soap socks sox speex spell sql ssl startup-notification stream svg sysfs taglib tcpd telnet tga theora threads tiff timidity tordns transcode translator tray truetype tts twolame udev unicode unrar usb utf8 v4l v4l2 vcd vcdx video video-file video4linux visualization vlm vnc vorbis vpx vxml wav wavpack webkit wifi winpopup wma-fixed wmf x264 xa xanim xcb xcomposite xine xinerama xml xmlrpc xorg xosd xscreensaver xv xvid yahoo yv12 zip zlib zoran zvbi" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau nv" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 24 wbrana 2012-04-21 16:06:03 UTC
same with xorg-server-1.12.0-r1

/mnt/md3/cache/portage/x11-base/xorg-server-1.12.0-r1/work/xorg-server-1.12.0/hw/xfree86/modes/xf86EdidModes.c:750: error: array subscript is above array bounds
/mnt/md3/cache/portage/x11-base/xorg-server-1.12.0-r1/work/xorg-server-1.12.0/hw/xfree86/modes/xf86EdidModes.c:749: error: array subscript is above array bounds
/mnt/md3/cache/portage/x11-base/xorg-server-1.12.0-r1/work/xorg-server-1.12.0/hw/xfree86/modes/xf86EdidModes.c:748: error: array subscript is above array bounds
/mnt/md3/cache/portage/x11-base/xorg-server-1.12.0-r1/work/xorg-server-1.12.0/hw/xfree86/modes/xf86EdidModes.c:747: error: array subscript is above array bounds
/mnt/md3/cache/portage/x11-base/xorg-server-1.12.0-r1/work/xorg-server-1.12.0/hw/xfree86/modes/xf86EdidModes.c:750: error: array subscript is above array bounds
/mnt/md3/cache/portage/x11-base/xorg-server-1.12.0-r1/work/xorg-server-1.12.0/hw/xfree86/modes/xf86EdidModes.c:749: error: array subscript is above array bounds
/mnt/md3/cache/portage/x11-base/xorg-server-1.12.0-r1/work/xorg-server-1.12.0/hw/xfree86/modes/xf86EdidModes.c:748: error: array subscript is above array bounds
/mnt/md3/cache/portage/x11-base/xorg-server-1.12.0-r1/work/xorg-server-1.12.0/hw/xfree86/modes/xf86EdidModes.c:747: error: array subscript is above array bounds
/mnt/md3/cache/portage/x11-base/xorg-server-1.12.0-r1/work/xorg-server-1.12.0/hw/xfree86/modes/xf86EdidModes.c:750: error: array subscript is above array bounds
/mnt/md3/cache/portage/x11-base/xorg-server-1.12.0-r1/work/xorg-server-1.12.0/hw/xfree86/modes/xf86EdidModes.c:749: error: array subscript is above array bounds
/mnt/md3/cache/portage/x11-base/xorg-server-1.12.0-r1/work/xorg-server-1.12.0/hw/xfree86/modes/xf86EdidModes.c:748: error: array subscript is above array bounds
/mnt/md3/cache/portage/x11-base/xorg-server-1.12.0-r1/work/xorg-server-1.12.0/hw/xfree86/modes/xf86EdidModes.c:747: error: array subscript is above array bounds
Comment 25 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-05-01 21:59:17 UTC
Upstream has not moved yet, and it seems that sometimes gcc will complain even without -O3

Try adding -Wno-error=array-bounds to CFLAGS if you still see the problem.
Comment 26 sphakka 2012-05-20 08:57:41 UTC
FYI. This also happens with x11-base/xorg-server-1.11.2-r2 (marked stable as of today).
Comment 27 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-05-29 23:46:41 UTC
Patch was added in 1.12.2
Comment 28 Tanktalus 2012-06-05 15:34:59 UTC
I'm getting this with 1.11.4-r1 as well.  Whatever patch was put in to -r1 isn't working here :-(
Comment 29 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-06-05 15:37:21 UTC
1.11.4-r1 is only revbumped for security bug 412609. The patch is in 1.12.2 which will go stable in bug 419473.
Comment 30 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-06-08 12:18:25 UTC
*** Bug 420127 has been marked as a duplicate of this bug. ***
Comment 31 Jan Psota 2012-08-25 08:56:13 UTC
I had the same error (array bounds) compiling xorg-server-1.12.2 with gcc-4.7.1.
Switching to gcc-4.6.3 did the trick. (same CFLAGS=-O2)