Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 272128 - ERROR: sys-libs/libsmbios-2.2.16 failed: error: array subscript is above array bounds
Summary: ERROR: sys-libs/libsmbios-2.2.16 failed: error: array subscript is above arra...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Cédric Krier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-01 19:18 UTC by ipse
Modified: 2009-08-06 16:30 UTC (History)
1 user (show)

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


Attachments
Modified libsmbios-2.2.16.ebuild (libsmbios-2.2.16.ebuild,1.54 KB, text/plain)
2009-06-02 22:36 UTC, ipse
Details
ebuild log (sys-libs:libsmbios-2.2.16:20090804-173923.log,33.93 KB, text/plain)
2009-08-04 17:49 UTC, wolfden
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ipse 2009-06-01 19:18:22 UTC
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./out/include -I./out/include -I./src/include -Werror -Wall -DLIBSMBIOS_LOCALEDIR=\"/usr/share/locale\" -I./src/libsmbios_c++/common -march=core2 -O3 -pipe -fomit-frame-pointer -MT src/libsmbios_c++/smbios/out_libsmbios_la-SmbiosTable.lo -MD -MP -MF src/libsmbios_c++/smbios/.deps/out_libsmbios_la-SmbiosTable.Tpo -c src/libsmbios_c++/smbios/SmbiosTable.cpp  -fPIC -DPIC -o src/libsmbios_c++/smbios/.libs/out_libsmbios_la-SmbiosTable.o
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./out/include -I./out/include -I./src/include -Werror -Wall -DLIBSMBIOS_LOCALEDIR=\"/usr/share/locale\" -I./src/libsmbios_c++/common -march=core2 -O3 -pipe -fomit-frame-pointer -MT src/libsmbios_c++/smbios/out_libsmbios_la-SmbiosItem.lo -MD -MP -MF src/libsmbios_c++/smbios/.deps/out_libsmbios_la-SmbiosItem.Tpo -c src/libsmbios_c++/smbios/SmbiosItem.cpp -o src/libsmbios_c++/smbios/out_libsmbios_la-SmbiosItem.o >/dev/null 2>&1
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./out/include -I./out/include -I./src/include -Werror -Wall -DLIBSMBIOS_LOCALEDIR=\"/usr/share/locale\" -I./src/libsmbios_c++/common -march=core2 -O3 -pipe -fomit-frame-pointer -MT src/libsmbios_c++/smbios/out_libsmbios_la-SmbiosTableIterator.lo -MD -MP -MF src/libsmbios_c++/smbios/.deps/out_libsmbios_la-SmbiosTableIterator.Tpo -c src/libsmbios_c++/smbios/SmbiosTableIterator.cpp -o src/libsmbios_c++/smbios/out_libsmbios_la-SmbiosTableIterator.o >/dev/null 2>&1
cc1plus: warnings being treated as errors
src/libsmbios_c++/smbios/SmbiosStrategy.cpp: In function 'bool smbios::validateDMITableEntryPoint(const smbiosLowlevel::dmi_table_entry_point*, bool, smbios::ParseExceptionImpl&)':
src/libsmbios_c++/smbios/SmbiosStrategy.cpp:62: error: array subscript is above array bounds
src/libsmbios_c++/smbios/SmbiosStrategy.cpp:62: error: array subscript is above array bounds
src/libsmbios_c++/smbios/SmbiosStrategy.cpp:62: error: array subscript is above array bounds
src/libsmbios_c++/smbios/SmbiosStrategy.cpp:62: error: array subscript is above array bounds
src/libsmbios_c++/smbios/SmbiosStrategy.cpp:62: error: array subscript is above array bounds
src/libsmbios_c++/smbios/SmbiosStrategy.cpp:62: error: array subscript is above array bounds
src/libsmbios_c++/smbios/SmbiosStrategy.cpp:62: error: array subscript is above array bounds
src/libsmbios_c++/smbios/SmbiosStrategy.cpp:62: error: array subscript is above array bounds
src/libsmbios_c++/smbios/SmbiosStrategy.cpp:62: error: array subscript is above array bounds
src/libsmbios_c++/smbios/SmbiosStrategy.cpp:62: error: array subscript is above array bounds
make[1]: *** [src/libsmbios_c++/smbios/out_libsmbios_la-SmbiosStrategy.lo] Ошибка 1
make[1]: *** Ожидание завершения заданий...
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./out/include -I./out/include -I./src/include -Werror -Wall -DLIBSMBIOS_LOCALEDIR=\"/usr/share/locale\" -I./src/libsmbios_c++/common -march=core2 -O3 -pipe -fomit-frame-pointer -MT src/libsmbios_c++/smbios/out_libsmbios_la-SmbiosTable.lo -MD -MP -MF src/libsmbios_c++/smbios/.deps/out_libsmbios_la-SmbiosTable.Tpo -c src/libsmbios_c++/smbios/SmbiosTable.cpp -o src/libsmbios_c++/smbios/out_libsmbios_la-SmbiosTable.o >/dev/null 2>&1
mv -f src/libsmbios_c++/smbios/.deps/out_libsmbios_la-SmbiosFactory.Tpo src/libsmbios_c++/smbios/.deps/out_libsmbios_la-SmbiosFactory.Plo
mv -f src/libsmbios_c++/smbios/.deps/out_libsmbios_la-SmbiosTableIterator.Tpo src/libsmbios_c++/smbios/.deps/out_libsmbios_la-SmbiosTableIterator.Plo
mv -f src/libsmbios_c++/smbios/.deps/out_libsmbios_la-SmbiosItem.Tpo src/libsmbios_c++/smbios/.deps/out_libsmbios_la-SmbiosItem.Plo
mv -f src/libsmbios_c++/smbios/.deps/out_libsmbios_la-SmbiosTable.Tpo src/libsmbios_c++/smbios/.deps/out_libsmbios_la-SmbiosTable.Plo
make[1]: Leaving directory `/var/tmp/portage/sys-libs/libsmbios-2.2.16/work/libsmbios-2.2.16'
make: *** [all-recursive] Ошибка 1
 *
 * ERROR: sys-libs/libsmbios-2.2.16 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 1102:  Called _eapi2_src_compile
 *               ebuild.sh, line  634:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
 *  The die message:
 *   emake failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-libs/libsmbios-2.2.16/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/libsmbios-2.2.16/temp/environment'.
 *


emerge --info

Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.4.0, glibc-2.10.1-r0, 2.6.30-rc7-git4 x86_64)
=================================================================
System uname: Linux-2.6.30-rc7-git4-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9400_@_2.66GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 30 May 2009 03:20:01 +0000
app-shells/bash:     4.0_p24
dev-java/java-config: 2.1.8
dev-lang/python:     2.4.4-r15, 2.6.2-r1
dev-util/cmake:      2.6.3-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="amd64 ~x86"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O3 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ ftp://mirror.yandex.ru/gentoo-distfiles/ http://ftp.klid.dk/ftp/gentoo/ ftp://ftp.klid.dk/gentoo/ http://ftp.linux.ee/pub/gentoo/distfiles/ ftp://ftp.linux.ee/pub/gentoo/distfiles/ ftp://trumpetti.atm.tut.fi/gentoo/ http://mirror.ovh.net/gentoo-distfiles/ ftp://mirror.ovh.net/gentoo-distfiles/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://gentoo.mneisen.org/ http://de-mirror.org/distro/gentoo/ ftp://de-mirror.org/distro/gentoo/ http://ftp.vectranet.pl/gentoo/ ftp://ftp.vectranet.pl/gentoo/ http://gentoo.prz.rzeszow.pl http://gentoo.zie.pg.gda.pl http://gentoo.po.opole.pl ftp://gentoo.po.opole.pl ftp://mirror.icis.pcz.pl/gentoo/ http://gentoo.mirror.pw.edu.pl/ http://mirror.yandex.ru/gentoo-distfiles/ "
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1"
LINGUAS="ru"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 berkdb bluetooth bzip2 cli cracklib crypt cups dbus dri fortran gdbm gnome gpm gtk hal iconv ipv6 isdnlog midi mmx mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pppd python qt4 readline reflection samba session spl sse sse2 ssl sysfs tcpd unicode vorbis xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 ipse 2009-06-02 22:36:53 UTC
Created attachment 193334 [details]
Modified libsmbios-2.2.16.ebuild

Changed ebuid, now compiles
Comment 2 Cédric Krier gentoo-dev 2009-08-01 14:50:22 UTC
I could not reproduce the issue and I don't understand your error message as it is in Russian (I guess).
Could you give me error message in English, please?
And by the way, next time you submit a change for ebuild, could you attach a diff instead of the complete ebuild.
Thanks.
Comment 3 ipse 2009-08-01 21:40:27 UTC
Next time it is mandatory, but as the error is already corrected for a long time, I cannot play back it again and original ebuild is already lost, matching not to make. Compare to the ebuild and you will receive matching.
Comment 4 Cédric Krier gentoo-dev 2009-08-01 22:56:38 UTC
The ebuild submitted doesn't fix any thing. It just remove the -Werror flag.
I would prefer to fix the warning instead of ignoring it.
Comment 5 wolfden 2009-08-04 17:49:00 UTC
Created attachment 200180 [details]
ebuild log

I seem to be getting same error.  Using the ebuild provided here works, Other wise with original ebuild I get

[ebuild   R   ] sys-libs/libsmbios-2.2.16  USE="(-bash-completion%)"

Reproducible: Always

Steps to Reproduce:
1. emerge sys-libs/libsmbios

Portage 2.2_rc35 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.10.1-r0, 2.6.30-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r1-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5600+-with-gentoo-2.0.1
Timestamp of tree: Tue, 04 Aug 2009 15:45:03 +0000
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.5.4-r3, 2.6.2-r1, 3.1
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -funroll-all-loops -m3dnow -msse3 -funit-at-a-time -fpeel-loops -ftracer -funswitch-loops -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=native -funroll-all-loops -m3dnow -msse3 -funit-at-a-time -fpeel-loops -ftracer -funswitch-loops -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirror.switch.ch/ftp/mirror/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"
LINGUAS="en"
MAKEOPTS="-s -j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="   "
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7Zip X a52 aac aalib accessibility acl acpi aiglx aim alsa amd64 artswrappersuid audiofile avahi berkdb bidi bluetooth branding bzip2 cairo cdda cddb cdr chm cjk cli config_wizard cpudetection cracklib crypt css cups dbox2 dbus dga dri dts dv dvb dvd dvdr dvdread dvi dxr3 emboss encode extramodules fam fame fat ffmpeg fftw firefox flac flash foomatic-db fortran freetype gcj gdbm gif gimpprint gnome gnutls gphoto2 gpm gs gsm gstreamer gtk hal hfs iconv icq ieee1394 imap inotify ipod ipv6 irc irda isdnlog jabber jfs jingle joystick jpeg kdeenablefinal kdehiddenvisibility kerberos kickoff kipi lame lcd ldap libnotify live lj lm_sensors logitech-mouse lzo mad mail mdnsresponder-compat mikmod mjpeg mmx mng mozdevelop mp3 mp3rtp mpeg msn mudflap multilib musepack musicbrainz ncurses network new-login nls nptl nptlonly nsplugin ntfs ogg openal openexr opengl openmp pam pcmcia pcre pda pdf perl png povray ppds pppd pulseaudio python qt3support quicktime quotas rar rdesktop readline reflection reiserfs rss scanner sdl session slp sms speex spell spl sse sse2 ssl startup-notification stream svg sysfs tcpd theora tiff tracker truetype udev unicode usb v4l v4l2 visualization voice vorbis weather wifi wmf x264 xcb xfs xine xinerama xml xorg xpm xprint xulrunner xv xvid xvmc yahoo zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 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" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="fbdev vesa nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 ipse 2009-08-04 18:08:56 UTC
This problem is coherent with x86_64 and intel bios, here that in the remark to problem string of a code:
60	//do not overrun tempTEP if BIOS is buggy... (note sizeof () test here)
61	//added especially to deal with buggy Intel BIOS.
62	for (unsigned int i = 0; i <sizeof (*tempTEP); ++ i)
63	{
64	//stupid stuff to avoid MVC ++.NET runtime exception check for cast to different size
65	checksum = (checksum + ptr [i]) AND 0xFF;
66	}
Most likely it is necessary either to increase the array ptr or to substitute sizeof something more suitable.