Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 923802 - dev-libs/nspr-4.35-r2: Value too large for defined data type
Summary: dev-libs/nspr-4.35-r2: Value too large for defined data type
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lfs-tracker
  Show dependency tree
 
Reported: 2024-02-05 02:08 UTC by germ
Modified: 2024-02-21 08:45 UTC (History)
2 users (show)

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


Attachments
full build.log for nspr (nspr.log,195.18 KB, text/x-log)
2024-02-05 02:08 UTC, germ
Details
successful-dev-libs\:nspr-4.35-r2 (normal built, no additional flags) (successful-dev-libs:nspr-4.35-r2:20240217-184720.log,227.37 KB, text/plain)
2024-02-17 18:51 UTC, tdr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description germ 2024-02-05 02:08:03 UTC
Created attachment 884248 [details]
full build.log for nspr

The primary filesystem for this install is XFS for / and this includes PORTAGE_TMPDIR 

Portage 3.0.61 (python 3.11.7-final-0, default/linux/amd64/17.1, gcc-13, glibc-2.38-r10, 6.6.13-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-6.6.13-gentoo-x86_64-x86_64-Intel-R-_Xeon-R-_CPU_E5-2650_0_@_2.00GHz-with-glibc2.38
KiB Mem:    65906680 total,  52076524 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Sun, 04 Feb 2024 00:45:01 +0000
Head commit of repository gentoo: 40c3c5a85713fa54f14245f3874767c9ded05ed5
sh bash 5.2_p26
ld GNU ld (Gentoo 2.41 p5) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r6::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.28.2::gentoo
dev-build/libtool:         2.4.7-r2::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.1-r1::gentoo
dev-lang/perl:             5.38.2-r1::gentoo
dev-lang/python:           3.11.7::gentoo, 3.12.1_p1::gentoo
sys-apps/baselayout:       2.14-r1::gentoo
sys-apps/openrc:           0.53::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.41-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             13.2.1_p20240113-r1::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-kernel/linux-headers:  6.7::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r10::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-max-age: 3
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: no

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://gentoo.osuosl.org/releases/amd64/binpackages/17.1/x86-64

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--complete-graph y --with-bdeps y  --load-average=32 --jobs=32"
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 -march=native -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live candy 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 sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=native -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j32"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
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="X acl alsa amd64 bzip2 cli crypt dbus dri elogind fortran gdbm iconv ipv6 libtirpc multilib ncurses nls openmp pam pcre readline seccomp split-usr ssl test-rust udev unicode xattr zlib" ABI_X86="64 32" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" QEMU_SOFTMMU_TARGETS="alpha aarch64 aarch64_be armeb arm i386 loongarch64 hppa m68k mips mipsn32 mips64 mips64el mipsel ppc ppc64 riscv32 riscv64 s390x sh4 sh4eb sparc sparc64 x86_64" QEMU_USER_TARGETS="alpha aarch64 aarch64_be armeb arm armeb i386 loongarch64 hppa m68k mips mipsn32 mipsn32el mips64 mips64el mipsel ppc ppc64 ppc64le ppc64abi32 riscv32 riscv64 s390x sh4 sh4eb sparc sparc32plus sparc64" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu radeon radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto 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, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Joonas Niilola gentoo-dev 2024-02-17 07:27:20 UTC
Is this xfs-related? Would any RHEL-based distro have a patch we could apply?
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-02-17 18:21:20 UTC
xfs is prone to it as it has larger inodes. Can you try add 'append-lfs-flags' to multilib_src_configure and tell us if it helps?
Comment 3 tdr 2024-02-17 18:49:48 UTC
Attempted to reproduce this using the same march and cpu flags, also on xfs for both the merge target fs + the work directory during build.  


env over-ride used when attempting to reproduce error:

COMMON_FLAGS="-march=sandybridge -mtune=sandybridge -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
CPU_FLAGS_X86="aes avx mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"



-----
# mount | grep /
/dev/nvme0n1p3 on / type xfs (rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota)

# df -h .
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       1.9T   92G  1.8T   5% /

# qlist -ICUv nspr
dev-libs/nspr-4.35-r2 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 abi_x86_32 abi_x86_64 -abi_x86_x32 -debug

Attaching successful-dev-libs:nspr-4.35-r2:20240217-184720.log


systems --info (noteL env over-ride above was used to test build)
# emerge --info
Portage 3.0.61 (python 3.11.8-final-0, default/linux/amd64/17.1, gcc-13, glibc-2.38-r10, 6.6.2-gentoo-test x86_64)
=================================================================
System uname: Linux-6.6.2-gentoo-test-x86_64-Intel-R-_Xeon-R-_w7-3465X-with-glibc2.38
KiB Mem:   263425180 total, 258346432 free
KiB Swap:   10485756 total,  10485756 free
Timestamp of repository gentoo: Sat, 10 Feb 2024 04:30:01 +0000
Head commit of repository gentoo: c0dd4c19405172c7132c084618c69d6fa747850e
sh bash 5.2_p26
ld GNU ld (Gentoo 2.41 p5) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26::gentoo
dev-build/autoconf:        2.71-r7::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.28.3::gentoo
dev-build/libtool:         2.4.7-r2::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.1-r1::gentoo
dev-lang/perl:             5.38.2-r1::gentoo
dev-lang/python:           3.11.8::gentoo, 3.12.2::gentoo
dev-lang/rust:             1.74.1::gentoo
sys-apps/baselayout:       2.14-r2::gentoo
sys-apps/openrc:           0.53::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.41-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.6::gentoo
sys-devel/gcc:             13.2.1_p20240113-r1::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/llvm:            17.0.6::gentoo
sys-kernel/linux-headers:  6.7::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r10::gentoo
Comment 4 tdr 2024-02-17 18:51:30 UTC
Created attachment 885232 [details]
successful-dev-libs\:nspr-4.35-r2 (normal built, no additional flags)
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-02-17 18:52:38 UTC
It depends on the FS state - XFS inodes are always big but if the value is small enough, it'll work (until one day it ticks over and it won't).

I think there's a way to use tmpfs and force it to always use large inodes to trigger these bugs.
Comment 6 tdr 2024-02-17 22:22:20 UTC
xfs info for where I tested, for comparison:

# xfs_db /dev/nvme0n1p3 -r
xfs_db> sb 0
xfs_db> p
magicnum = 0x58465342
blocksize = 4096
dblocks = 485625856
rblocks = 0
rextents = 0
uuid = 2e7eab34-c65f-4cf3-a3f9-e4485ebae1f0
logstart = 268435463
rootino = 128
rbmino = 129
rsumino = 130
rextsize = 1
agblocks = 121406464
agcount = 4
rbmblocks = 0
logblocks = 237122
versionnum = 0xb4b5
sectsize = 512
inodesize = 512
inopblock = 8
fname = "root_fs\000\000\000\000\000"
blocklog = 12
sectlog = 9
inodelog = 9
inopblog = 3
agblklog = 27
rextslog = 0
inprogress = 0
imax_pct = 5
icount = 1787840
ifree = 877
fdblocks = 461476398
frextents = 0
uquotino = null
gquotino = null
qflags = 0
flags = 0
shared_vn = 0
inoalignmt = 8
unit = 0
width = 0
dirblklog = 0
logsectlog = 0
logsectsize = 0
logsunit = 1
features2 = 0x18a
bad_features2 = 0x18a
features_compat = 0
features_ro_compat = 0xf
features_incompat = 0x2b
features_log_incompat = 0
crc = 0x15f852ab (correct)
spino_align = 4
pquotino = null
lsn = 0xd0005d3f6
meta_uuid = 00000000-0000-0000-0000-000000000000
Comment 7 germ 2024-02-18 04:18:51 UTC
(In reply to Sam James from comment #2)
> xfs is prone to it as it has larger inodes. Can you try add
> 'append-lfs-flags' to multilib_src_configure and tell us if it helps?

This worked and allowed the package to build
Comment 8 Larry the Git Cow gentoo-dev 2024-02-21 08:45:05 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=208d6652b99222db775e219072ecee32194b40ac

commit 208d6652b99222db775e219072ecee32194b40ac
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2024-02-21 08:43:53 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2024-02-21 08:43:53 +0000

    dev-libs/nspr: add 'append-lfs-flags' call
    
    Closes: https://bugs.gentoo.org/923802
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 dev-libs/nspr/nspr-4.35-r2.ebuild | 3 +++
 1 file changed, 3 insertions(+)