Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 737282 - dev-libs/libxml2-2.9.10 [BUG] Segmentation fault at 0x0000000000000498
Summary: dev-libs/libxml2-2.9.10 [BUG] Segmentation fault at 0x0000000000000498
Status: RESOLVED DUPLICATE of bug 737024
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-16 01:39 UTC by Anton Bolshakov
Modified: 2020-08-16 04:49 UTC (History)
1 user (show)

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


Attachments
Segmentation fault log (ruby_crash.txt,38.04 KB, text/plain)
2020-08-16 01:40 UTC, Anton Bolshakov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Bolshakov 2020-08-16 01:39:14 UTC
Hello,

The following two packages has been upgraded recently:
dev-libs/libxml2-2.9.10
sys-libs/glibc-2.31-r6
dev-db/mariadb-10.4.13-r2

After the upgrade (emerge -DNu world and @preserved-rebuild), my ruby application failed to start with the following message:

rake assets:precompile
Yarn executable was not detected in the system.
Download Yarn at https://yarnpkg.com/en/docs/install
[BUG] Segmentation fault at 0x0000000000000498
ruby 2.5.8p224 (2020-03-31 revision 67882) [x86_64-linux]

-- Machine register context ------------------------------------------------
 RIP: 0x00007f4771df8c2d RBP: 0x00007ffef60e3cd0 RSP: 0x00007ffef60e3a78
 RAX: 0x0000000000000000 RBX: 0x00007f4770c0cc28 RCX: 0x0000000000000007
 RDX: 0x0000000000000001 RDI: 0x000055a0a4ddd7e0 RSI: 0x000055a0a4ddd7e0
  R8: 0x000055a0a4ddd7e0  R9: 0x00007ffef60e39e4 R10: 0x000000000000003a
 R11: 0x0000000000000007 R12: 0x0000000000000000 R13: 0x00007ffef60e3b78
 R14: 0x00007f4770c041b8 R15: 0x000055a0a4d90330 EFL: 0x0000000000010202

-- C level backtrace information -------------------------------------------
/usr/lib64/libruby25.so.2.5(0x7f4771f177b5) [0x7f4771f177b5]
/usr/lib64/libruby25.so.2.5(0x7f4771f179e8) [0x7f4771f179e8]
/usr/lib64/libruby25.so.2.5(0x7f4771ddd589) [0x7f4771ddd589]
/usr/lib64/libruby25.so.2.5(0x7f4771ea5672) [0x7f4771ea5672]
/lib64/libc.so.6(0x7f4771bcc7f0) [0x7f4771bcc7f0]
/usr/lib64/libruby25.so.2.5(0x7f4771df8c2d) [0x7f4771df8c2d]
/usr/lib64/libxml2.so.2(xmlCleanupCharEncodingHandlers+0x96) [0x7f4770ade3a6]
/usr/lib64/libxml2.so.2(0x7f4770ae6e49) [0x7f4770ae6e49]
/lib64/ld-linux-x86-64.so.2(0x7f477202aee3) [0x7f477202aee3]
/lib64/libc.so.6(0x7f4771bceef7) [0x7f4771bceef7]
/lib64/libc.so.6(0x3b0aa) [0x7f4771bcf0aa]
/lib64/libc.so.6(__libc_start_main+0xf2) [0x7f4771bb7cf2]
/usr/bin/ruby25(_start+0x2a) [0x55a0a1afa11a]
<skip>

emerge --info
Portage 2.3.103 (python 3.7.8-final-0, default/linux/amd64/17.1, gcc-9.3.0, glibc-2.31-r6, 5.4.48-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-5.4.48-gentoo-x86_64-x86_64-QEMU_Virtual_CPU_version_2.5+-with-gentoo-2.6
KiB Mem:     4035444 total,   2556384 free
KiB Swap:    1048572 total,   1048572 free
Timestamp of repository gentoo: Sat, 15 Aug 2020 00:15:01 +0000
Head commit of repository gentoo: 1d4c247a4c36e75ebbf0f759cb0d68a58ef7dfa0
Head commit of repository pentoo: 80bc94f11bcb5ca742186fff09f2ffde1d14de6c

sh bash 5.0_p17
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
app-shells/bash:          5.0_p17::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          3.7.8-r2::gentoo, 3.8.4-r1::gentoo
dev-util/cmake:           3.16.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo
sys-devel/gcc:            9.3.0-r1::gentoo
sys-devel/gcc-config:     2.3.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.asia.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24

local-overlay
    location: /usr/local/portage
    masters: gentoo
    priority: 0

pentoo
    location: /var/lib/layman/pentoo
    sync-type: git
    sync-uri: https://github.com/pentoo/pentoo-overlay
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /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="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://tux.rainside.sk/gentoo/"
LANG="en_SG.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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"
USE="acl amd64 berkdb bzip2 cli crypt dri fortran gdbm iconv ipv6 libglvnd libtirpc multilib mysql ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl tcpd unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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" 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" CPU_FLAGS_X86="mmx sse sse2" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python3_7" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

I tried to recompile few packages manually (ruby, libxml2) but it didn't help. Any help would be appreciated
Comment 1 Anton Bolshakov 2020-08-16 01:40:48 UTC
Created attachment 654834 [details]
Segmentation fault log
Comment 2 Anton Bolshakov 2020-08-16 02:25:06 UTC
I downgraded 3 packages (they depend on each other) able to run it again:

dev-libs/libxml2-2.9.9-r3
dev-libs/libxslt-1.1.33-r1
dev-ruby/nokogiri-1.10.4
Comment 3 Anton Bolshakov 2020-08-16 03:42:46 UTC
I narrowed down the issue. 

It is dev-libs/libxml2-2.9.10 version cases the crash
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-08-16 04:49:18 UTC

*** This bug has been marked as a duplicate of bug 737024 ***