Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919914 - dev-lang/go: ICEs when building net-analyzer/zabbix-6.4.10 (internal compiler error: 'inBodyIM': panic during prove while compiling inBodyIM)
Summary: dev-lang/go: ICEs when building net-analyzer/zabbix-6.4.10 (internal compiler...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-14 20:32 UTC by Gary E. Miller
Modified: 2023-12-15 00:05 UTC (History)
3 users (show)

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


Attachments
build log (net-analyzer:zabbix-6.4.10:20231214-201041.log,741.41 KB, text/plain)
2023-12-14 20:32 UTC, Gary E. Miller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gary E. Miller 2023-12-14 20:32:21 UTC
Fails to emerge on 32-bit system

Reproducible: Always

Steps to Reproduce:
1. emerge =net-analyzer/zabbix-6.4.10
2.
3.



pi4 ~ # emerge -pqv '=net-analyzer/zabbix-6.4.10::gentoo'
[ebuild     U ] net-analyzer/zabbix-6.4.10 [6.4.9] USE="agent2 curl ipv6 libxml2 openssl snmp sqlite ssh -agent -frontend -gnutls -java -ldap -mysql -odbc -openipmi (-oracle) -postgres -proxy (-selinux) -server -static" 


pi4 ~ # emerge --info '=net-analyzer/zabbix-6.4.10::gentoo'
Portage 3.0.56 (python 3.10.13-final-0, default/linux/arm/17.0, gcc-12, glibc-2.37-r7, 5.10.11-v7 armv7l)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.10.11-v7-armv7l-ARMv7_Processor_rev_4_-v7l-with-glibc2.37
KiB Mem:      995688 total,    411300 free
KiB Swap:    2097148 total,   2062588 free
Timestamp of repository gentoo: Thu, 14 Dec 2023 18:47:04 +0000
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p5) 2.40.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.10.13::gentoo, 3.11.6::gentoo, 3.12.1::gentoo
dev-lang/rust-bin:         1.71.1::gentoo
dev-util/cmake:            3.27.7::gentoo
dev-util/meson:            1.2.3::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/openrc:           0.48::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/autoconf:        2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             12.3.1_p20230526::gentoo, 13.2.1_p20230826::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.namerica.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-max-age: 3
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: --exclude ChangeLog* --delete-excluded

ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="*"
CBUILD="armv7a-unknown-linux-gnueabihf"
CFLAGS="-march=armv8-a+crc -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard -O2 -pipe"
CHOST="armv7a-unknown-linux-gnueabihf"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
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="-march=armv8-a+crc -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --with-bdeps=y --backtrack=20"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2"
GENTOO_MIRRORS="http://gentoo.gossamerhost.com rsync://gentoo.gossamerhost.com/gentoo-distfiles/ http://gentoo.mirrors.tds.net/gentoo ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ rsync://mirror.leaseweb.com/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="en en_US"
MAKEOPTS="-j2 -l3"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude ChangeLog* --delete-excluded"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="acl adns aio apm arm bash-completion blake2 bzip2 caps cli cpudetection crypt dane dri fontconfig fortran gdbm gold gzip harfbuzz hddtemp http2 iconv ipv6 jpeg kmod ldns lm_sensors lz4 lzma ncurses neon nfs nfsv4 nfsv41 nginx nls nptl openmp pam pcre png readline seccomp smp split-usr sqlite ssh ssl test-rust threads tools truetype tty-helpers udev unicode urandom usb vim-syntax wifi xattr zlib zstd" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_conn limit_req map memcached proxy referer rewrite scgi spdy split_clients ssi upstream_hash upstream_ip_hash upstream_keepalive upstream_least_conn upstream_zone userid uwsgi" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10 python3_9" RUBY_TARGETS="ruby31" VIDEO_CARDS="exynos fbdev omap dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Gary E. Miller 2023-12-14 20:32:50 UTC
Created attachment 879453 [details]
build log

build log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-14 20:48:28 UTC
go is ICEing...

./vendor/golang.org/x/net/html/token.go
# golang.org/x/net/html
vendor/golang.org/x/net/html/parse.go:866:7: internal compiler error: 'inBodyIM': panic during prove while compiling inBodyIM:

findroot didn't find any root

goroutine 46 [running]:
cmd/compile/internal/ssa.Compile.func1()
	cmd/compile/internal/ssa/compile.go:49 +0x88
panic({0x9e2600, 0xba5370})
	runtime/panic.go:914 +0x244
cmd/compile/internal/ssa.(*poset).findroot(0x2e69e00, 0xb4)
	cmd/compile/internal/ssa/poset.go:611 +0xbc
cmd/compile/internal/ssa.(*poset).SetEqual(0x2e69e00, 0x303a8c0, 0x303fef0)
	cmd/compile/internal/ssa/poset.go:1177 +0x508
cmd/compile/internal/ssa.(*factsTable).update(0x3a29fac, 0x3029e40, 0x303a8c0, 0x303fef0, 0x1, 0x2)
	cmd/compile/internal/ssa/prove.go:243 +0x214
cmd/compile/internal/ssa.prove(0x2961930)
	cmd/compile/internal/ssa/prove.go:995 +0x2cd0
cmd/compile/internal/ssa.Compile(0x2961930)
	cmd/compile/internal/ssa/compile.go:97 +0xca8
cmd/compile/internal/ssagen.buildssa(0x24e0840, 0x3)
	cmd/compile/internal/ssagen/ssa.go:568 +0x2bc0
cmd/compile/internal/ssagen.Compile(0x24e0840, 0x3)
	cmd/compile/internal/ssagen/pgen.go:187 +0x38
cmd/compile/internal/gc.compileFunctions.func5.1(0x3)
	cmd/compile/internal/gc/compile.go:184 +0x38
cmd/compile/internal/gc.compileFunctions.func3.1()
	cmd/compile/internal/gc/compile.go:166 +0x38
created by cmd/compile/internal/gc.compileFunctions.func3 in goroutine 33
	cmd/compile/internal/gc/compile.go:165 +0x244



Please file a bug report including a short program that triggers the error.
https://go.dev/issue/new
golang.org/x/text/transform
Comment 3 Gary E. Miller 2023-12-15 00:05:23 UTC
The printf() problem I first saw is UB at runtime, but not a build failure unless -Wfatal is used.

As for the ICE, I have been unable to replicate, even after rebuilding many times.

Do I'll close this as RESOLVED -> Unable to Duplicate.

Sorry for the noise.