Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 944787 - dev-libs/json-c-0.18 impossible to start Tor Browser after update
Summary: dev-libs/json-c-0.18 impossible to start Tor Browser after update
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-24 00:02 UTC by David Duchesne
Modified: 2024-11-28 18:19 UTC (History)
3 users (show)

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


Attachments
readelf -W --dyn-syms /usr/lib64/libcrypto.so.3 --version-info (file_944787.txt,647.29 KB, text/plain)
2024-11-24 00:03 UTC, David Duchesne
Details
lddtree /tor/Browser/libmozgtk.so (file_944787.txt,3.25 KB, text/plain)
2024-11-24 00:04 UTC, David Duchesne
Details
dev-libs/json-c-0.18 build log (file_944787.txt,53.95 KB, text/plain)
2024-11-24 00:13 UTC, David Duchesne
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Duchesne 2024-11-24 00:02:42 UTC
Hello,
After update of dev-libs/json-c-0.18 which was stabilized a few hours ago,
I'm unable to start "Tor Browser".
After a discussion with sam on irc, I open this bug report.

/tor/Browser $ ./start-tor-browser --debug
XPCOMGlueLoad error for file /tor/Browser/libmozgtk.so:
./TorBrowser/Tor/libcrypto.so.3: version `OPENSSL_3.2.0' not found (required by /usr/lib64/libcryptsetup.so.12)
Couldn't load XPCOM.

readelf -W --dyn-syms /usr/lib64/libcrypto.so.3 --version-info (see log attached)
lddtree /tor/Browser/libmozgtk.so (see log attached)

For now, I can confirm it is somehow related dev-libs/json-0.18
because if I downgrade to dev-libs/json-0.17,
then "Tor Browser" starts fine.

Reproducible: Always




Portage 3.0.66.1 (python 3.12.7-final-0, default/linux/amd64/23.0/split-usr/no-multilib/hardened, gcc-14, glibc-2.40-r5, 6.6.62-gentoo-hardened x86_64)
=================================================================
System uname: Linux-6.6.62-gentoo-hardened-x86_64-AMD_A10-6800K_APU_with_Radeon-tm-_HD_Graphics-with-glibc2.40
KiB Mem:    32348872 total,   5292100 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Sat, 23 Nov 2024 20:00:00 +0000
Head commit of repository gentoo: 7410ba6ff729d11eac44fda5a380c6bd5cf4b6e9
Timestamp of repository localrepo: Sat, 23 Nov 2024 20:16:07 +0000
Timestamp of repository mv: Mon, 18 Nov 2024 17:03:18 +0000
Head commit of repository mv: 92f42ca2204d7a099bb6689610d81d21abb3442b

Timestamp of repository vapoursynth: Fri, 22 Nov 2024 20:34:01 +0000
Head commit of repository vapoursynth: 36a5faa1d7191168ee4939cd7093889557c17f63

sh bash 5.2_p37
ld GNU ld (Gentoo 2.42 p6) 2.42.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.30.5::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.5.2::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.0::gentoo
dev-lang/python:           2.7.18_p16-r2::gentoo, 3.12.7_p1::gentoo, 3.13.0::gentoo
dev-lang/rust:             1.77.1-r100::gentoo, 1.81.0-r100::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.54.2::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-devel/binutils:        2.42-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/clang:           18.1.8::gentoo
sys-devel/gcc:             14.2.1_p20241116::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             18.1.8::gentoo
sys-devel/llvm:            18.1.8-r1::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r5::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-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

localrepo
    location: /var/db/repos/localrepo
    masters: gentoo
    volatile: False

mv
    location: /var/db/repos/mv
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/mv.git
    masters: gentoo
    volatile: False

vapoursynth
    location: /var/db/repos/vapoursynth
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/vapoursynth.git
    masters: gentoo
    volatile: False

Installed sets: @dbuspkg, @fonts, @games, @librsvg, @localrepo, @localrepo_emu, @phone, @subtitles, @themes, @vm, @wm, @xfce
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=bdver2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/portage/savedconfig/sys-kernel/linux-firmware /usr/bin/startx /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/thumbnailers/ffmpegthumbnailer.thumbnailer /usr/share/thumbnailers/imagemagick-pdf.thumbnailer /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=bdver2 -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--usepkg --binpkg-respect-use=y"
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="-march=bdver2 -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=bdver2 -O2 -pipe"
GENTOO_MIRRORS="https://mirror.leaseweb.com/gentoo/"
INSTALL_MASK="/etc/sysctl.d/               /etc/systemd/               /lib/systemd/               /usr/lib/sysctl.d/               /usr/lib/systemd/               /usr/lib64/systemd/               /run/systemd/               -/lib/systemd/systemd-udevd"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
LINGUAS="en fr"
MAKEOPTS="-j5"
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 a52 aac acl acpi aio alsa amd64 btrfs bzip2 cairo cdda cdr cet cli crypt cryptsetup cups dbus device-mapper dri dts dvd elogind encode exif fam fftw flac gdbm gif gpm graphite gtk hardened iconv icu ipv6 jpeg libnotify libtirpc lto lvm lz4 lzo mad mp3 mp4 ncurses nfs nls ogg opengl openmp openssl opus pam pango pcre pdf pgo pic pie png policykit readline sdl seccomp sftp split-usr ssh ssl ssp startup-notification svg system-av1 system-binutils system-cairo system-clang system-cmark system-compress system-digest system-ffmpeg system-harfbuzz system-heimdal system-icu system-images system-jpeg system-jsoncpp system-lcms system-leveldb system-libevent system-libmspack system-libs system-libvpx system-libyaml system-llvm system-lua system-lz4 system-nss system-openjpeg system-pixman system-png system-renpy system-snappy system-sqlite system-tbb system-uulib system-vpx system-zlib test-rust tiff truetype udev udisks unicode upower usb vaapi vdpau verify-sig vorbis webp wxwidgets x264 xattr xcb xml xtpax xv xvid xxhash zlib" ABI_X86="64" ADA_TARGET="gcc_12" 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="aes avx f16c fma3 fma4 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="fr" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PERL_FEATURES="ithreads" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby32" VIDEO_CARDS="radeon r600" 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, 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
Comment 1 David Duchesne 2024-11-24 00:03:48 UTC
Created attachment 911722 [details]
readelf -W --dyn-syms /usr/lib64/libcrypto.so.3 --version-info
Comment 2 David Duchesne 2024-11-24 00:04:36 UTC
Created attachment 911723 [details]
lddtree /tor/Browser/libmozgtk.so
Comment 3 David Duchesne 2024-11-24 00:13:58 UTC
Created attachment 911724 [details]
dev-libs/json-c-0.18 build log
Comment 4 David Duchesne 2024-11-24 14:03:40 UTC
See also:
https://github.com/MeisterP/torbrowser-overlay/issues/85
https://gitlab.torproject.org/tpo/applications/tor-browser/-/issues/43326

As a workaround, an user suggests to remove libcrypto.so.3 from the Tor Browser folder in order to force the use of system libcrypto.so.3

Oherwise downgrading dev-libs/json-c-0.18 to 9.17 (with cryptsetup recompiled against json-c-0.17) fixes the issue too. Really strange problem.
Comment 5 David Duchesne 2024-11-24 14:08:08 UTC
little typo, sorry.
> Otherwise downgrading dev-libs/json-c-0.18 to 0.17
Comment 6 Mike Gilbert gentoo-dev 2024-11-26 19:10:20 UTC
Sounds like this is a Tor Browser problem, not a problem with dev-libs/json-c.