View previous topic :: View next topic |
Author |
Message |
staszic n00b
Joined: 04 Jul 2024 Posts: 1
|
Posted: Thu Jul 04, 2024 11:13 am Post subject: Perl upgrade stuck on scanelf |
|
|
Hi!
I have a Gentoo instance running as a Xen VM on a debian server.
I've been trying to do a @world upgrade but it got stuck on dev-lang/perl for a long time.
Then I've tried to emerge perl separately. It compiled successfully but got stuck after emerge printed
Code: |
>>> Completed installing dev-lang/perl-5.38.2-r3 into /tmp/portage/portage/dev-lang/perl-5.38.2-r3/image
* Final size of build directory: 220080 KiB (214.9 MiB)
* Final size of installed tree: 72864 KiB ( 71.1 MiB)
|
while my kerner log has been flooding with the following staff
Code: |
[60566.783335] WARNING: CPU: 17 PID: 25387 at arch/x86/xen/multicalls.c:102 xen_mc_flush+0x19a/0x240
[60566.783340] Modules linked in: nfsd ipt_REJECT nf_reject_ipv4 nfsv3 nfs_acl rpcsec_gss_krb5 auth_rpcgss nfsv4 dns_resolver nfs lockd grace fscache netfs sunrpc xt_multiport iptable_filter iptable_mangle iptable_nat iptable_raw ip_tables xt_conntrack ip6table_filter ip6table_mangle ip6table_raw ip6table_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip6_tables xenfs xen_privcmd binfmt_misc crct10dif_pclmul crc32_pclmul crc32c_intel xen_netfront xen_blkfront polyval_generic ghash_clmulni_intel sha512_ssse3 sha256_ssse3 sha1_ssse3
[60566.783362] CPU: 17 PID: 25387 Comm: scanelf Tainted: G B W 6.6.21-gentoo-dist #1
[60566.783364] RIP: e030:xen_mc_flush+0x19a/0x240
[60566.783367] Code: c1 e2 06 48 01 ea 45 85 c9 0f 84 1e ff ff ff 48 8b 43 18 48 83 c3 40 48 c1 e8 3f 01 c6 48 39 da 75 ed 85 f6 0f 84 03 ff ff ff <0f> 0b 48 c7 c7 c0 2b b2 82 44 89 ca 65 8b 0d ff b5 00 7f e8 2e 18
[60566.783369] RSP: e02b:ffffc90044277c58 EFLAGS: 00010082
[60566.783370] RAX: ffffffffffffffea RBX: ffff8885cdc5f2c0 RCX: 0000000000000000
[60566.783372] RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff8885cdc5fad0
[60566.783373] RBP: ffff8885cdc5f2c0 R08: 0000000000000000 R09: 0000000000000001
[60566.783374] R10: 0000000000007ff0 R11: 0000000000000000 R12: 0000000080000002
[60566.783375] R13: ffff8881014d6fd0 R14: ffffea000d710000 R15: ffff8881558b4780
[60566.783384] FS: 000014add115a740(0000) GS:ffff8885cdc40000(0000) knlGS:0000000000000000
[60566.783386] CS: 10000e030 DS: 0000 ES: 0000 CR0: 0000000080050033
[60566.783388] CR2: 000014add0e00000 CR3: 000000034e792000 CR4: 0000000000000660
[60566.783393] Call Trace:
[60566.783395] <TASK>
[60566.783397] ? xen_mc_flush+0x19a/0x240
[60566.783400] ? __warn+0x81/0x130
[60566.783404] ? xen_mc_flush+0x19a/0x240
[60566.783407] ? report_bug+0x171/0x1a0
[60566.783409] ? handle_bug+0x3c/0x80
[60566.783411] ? exc_invalid_op+0x17/0x70
[60566.783413] ? asm_exc_invalid_op+0x1a/0x20
[60566.783415] ? xen_mc_flush+0x19a/0x240
[60566.783418] ? xen_mc_flush+0x90/0x240
[60566.783422] xen_mc_issue+0x6d/0x70
[60566.783426] xen_set_pmd_hyper+0x55/0x80
[60566.783429] do_set_pmd+0x193/0x2b0
[60566.783433] filemap_map_pages+0x4b2/0x570
[60566.783436] ? mod_memcg_state+0x1f/0x30
[60566.783439] ? memcg_account_kmem+0x18/0x50
[60566.783442] do_fault+0x27c/0x450
[60566.783446] __handle_mm_fault+0x796/0xd90
[60566.783451] handle_mm_fault+0x17f/0x360
[60566.783454] do_user_addr_fault+0x15b/0x660
[60566.783457] exc_page_fault+0x7f/0x180
[60566.783460] asm_exc_page_fault+0x26/0x30
[60566.783463] RIP: 0033:0x561124fced61
[60566.783465] Code: 00 48 89 f3 e8 b0 ad 00 00 66 48 0f 6e c3 4c 89 60 30 49 01 dc 48 89 c5 c7 40 38 ff ff ff ff 66 49 0f 3a 22 c4 01 0f 11 40 18 <80> 3b 7f 0f 85 0e 02 00 00 80 7b 01 45 0f 85 04 02 00 00 80 7b 02
[60566.783469] RSP: 002b:00007ffdcb8fd850 EFLAGS: 00010202
[60566.783471] RAX: 0000561125bea360 RBX: 000014add0e00000 RCX: 0000000000000001
[60566.783473] RDX: 0000000000000050 RSI: 0000000000000000 RDI: 0000561125bea370
[60566.783475] RBP: 0000561125bea360 R08: 000000000000000c R09: 0000000000000000
[60566.783476] R10: 0000000000000002 R11: 0000000000000246 R12: 000014add101f3f8
[60566.783478] R13: 00007ffdcb8fdb80 R14: 000000000000000b R15: 00007ffdcb8fdbe4
[60566.783481] </TASK>
[60566.783482] ---[ end trace 0000000000000000 ]---
[60566.783484] 1 of 1 multicall(s) failed: cpu 17
[60566.783486] call 1: op=1 arg=[ffff8885cdc5fad0] result=-22
[60568.159406] BUG: Bad rss-counter state mm:0000000091da5af5 type:MM_FILEPAGES val:22841856
|
The PID from the beginning of the kernel log corresponds with the scanelf process run by portage.
Using strace I've determined that there are 5 files that cause scanelf trouble:
- /tmp/portage/portage/dev-lang/perl-5.38.2-r3/image/usr/lib64/perl5/5.38/x86_64-linux/CORE/charclass_invlists.h
- /tmp/portage/portage/dev-lang/perl-5.38.2-r3/image/usr/lib64/perl5/5.38/x86_64-linux/auto/Encode/TW/TW.so
- /tmp/portage/portage/dev-lang/perl-5.38.2-r3/image/usr/lib64/perl5/5.38/x86_64-linux/auto/Encode/KR/KR.so
- /tmp/portage/portage/dev-lang/perl-5.38.2-r3/image/usr/lib64/perl5/5.38/x86_64-linux/auto/Encode/JP/JP.so
- /tmp/portage/portage/dev-lang/perl-5.38.2-r3/image/usr/lib64/perl5/5.38/x86_64-linux/auto/Encode/CN/CN.so
After deleting them scanelf completes within seconds, but I guess that is not a solution.
I have no idea what to do to resolve that issue. Counting on your help.
Thanks!
You can find my emerge --info below
Code: |
Portage 3.0.61 (python 3.11.7-final-0, default/linux/amd64/17.1, gcc-13, glibc-2.38-r10, 6.6.21-gentoo-dist x86_64)
=================================================================
System uname: Linux-6.6.21-gentoo-dist-x86_64-Intel-R-_Xeon-R-_CPU_X5650_@_2.67GHz-with-glibc2.38
KiB Mem: 24196396 total, 15617276 free
KiB Swap: 6291452 total, 6291452 free
Timestamp of repository gentoo: Wed, 03 Jul 2024 00:45:00 +0000
sh bash 5.2_p26-r5
ld GNU ld (Gentoo 2.41 p5) 2.41.0
app-misc/pax-utils: 1.3.7::gentoo
app-shells/bash: 5.2_p26-r5::gentoo
dev-build/autoconf: 2.71-r7::gentoo
dev-build/automake: 1.16.5-r2::gentoo
dev-build/cmake: 3.27.9::gentoo
dev-build/libtool: 2.4.7-r4::gentoo
dev-build/make: 4.4.1-r1::gentoo
dev-build/meson: 1.4.0-r1::gentoo
dev-java/java-config: 2.3.3-r1::gentoo
dev-lang/perl: 5.38.2-r1::gentoo
dev-lang/python: 3.10.13::gentoo, 3.11.7::gentoo, 3.12.1_p1::gentoo
dev-lang/rust: 1.74.1::gentoo
sys-apps/baselayout: 2.15::gentoo
sys-apps/openrc: 0.53::gentoo
sys-apps/sandbox: 2.38::gentoo
sys-devel/binutils: 2.41-r5::gentoo, 2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang: 17.0.6::gentoo
sys-devel/gcc: 13.2.1_p20240210::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-devel/llvm: 17.0.6::gentoo
sys-kernel/linux-headers: 6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.38-r10::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: webrsync
sync-uri: http://mirror.leaseweb.com/gentoo/
priority: -1000
volatile: True
sync-webrsync-verify-signature: yes
boss
location: /var/portage
masters: gentoo
volatile: True
x-portage
location: /usr/local/portage
masters: gentoo
priority: 0
volatile: True
kerberos
location: /var/lib/layman/kerberos
masters: gentoo
priority: 50
volatile: True
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/sbin/sendmail /usr/share/gnupg/qualified.txt /var/spool/munin-async/.ssh"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /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="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
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 -pipe"
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 splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://sunsite2.icm.edu.pl/pub/Linux/dist/gentoo/ http://distfiles.gentoo.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="en pl es de"
MAKEOPTS="-j20"
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="/tmp/portage"
SHELL="/bin/bash"
USE="aalib acct acl amavis amd64 apache2 bash-completion bzip2 caps cddb cli clisp crypt cups dovecot-sasl exif expat flac fortran ftp gd gdbm gif gnutls gocr gpgme gs hash iconv idn imagemagick imap iproute2 ipv6 jabber jpeg kerberos latex ldap ldap-sasl libcaca libssh2 libtirpc libwww logrotate lzo maildir mmx mmxext mp3 mplayer multilib mysql ncurses nethack nfs nfsv3 nfsv4 nls nntp nscd objc objc++ objc-gc openmp pam pcntl pcre pdf pdo perl php png pnm posix postfix postgres python quota quotas readline rss sasl seccomp server sftp sieve skey slang smp smtp snmp socks5 sox spell split-usr sqlite sqlite3 sse sse2 ssl syslog test-rust tetex tiff tools unicode unzip userlocales vhosts vim vim-pager vim-syntax win32codecs wmf x264 xattr xfs xml xpm xvid zip zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="access_compat actions alias auth_basic authn_core authn_anon authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cache_disk dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation proxy_uwsgi rewrite setenvif socache_shmcb speling status unique_id userdir usertrack vhost_alias asis auth_digest ident proxy cgi cgid unixd" APACHE2_MPMS="prefork" 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" L10N="en pl es de" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_10 python3_11" RUBY_TARGETS="ruby32" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" 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, EMERGE_DEFAULT_OPTS, 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, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
|
[Administrator edit: changed [quote] tags to [code] tags to preserve output layout. -Hu] |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22660
|
Posted: Thu Jul 04, 2024 1:53 pm Post subject: |
|
|
Welcome to the forums. That kernel output looks to me like scanelf has triggered a bug in your kernel. The last line even says BUG:. Is this reproducible with a newer, and preferably untainted, kernel? |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|