Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 789312

Summary: net-p2p/transmission-3.00-r1 - Transmission crash *** invalid %N$ use detected ***
Product: Gentoo Linux Reporter:
Component: Current packagesAssignee: Mike Gilbert <floppym>
Status: UNCONFIRMED ---    
Severity: normal CC: dirk,, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---

Description 2021-05-10 13:20:14 UTC
There is a translations related issue that causing Transmission to crash few seconds after some specific torrents download start.

There is my use case :
- I'm using gentoo stable
- My system Locale is "fr_FR.utf8"
- Downloading the "manjaro-xfce-21.0.4-210506-linux510.iso.torrent" the currently latest Manjaro XFCE ISO
- Transmission crash after few seconds with this message :

*** invalid %N$ use detected ***
Abandon (core dumped)

However, compiling without the nls use flag in order to disable translations fix the issue.

There is the link to the upstream github issue :
Comment 1 Sam James archtester gentoo-dev Security 2021-05-10 15:28:10 UTC
Can you include emerge --info and a backtrace with debugging symbols (see
Comment 2 2021-05-10 15:46:32 UTC
$ emerge --info 
Portage 3.0.18 (python 3.8.9-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-10.2.0, glibc-2.32-r7, 5.10.27-gentoo-dist x86_64)
System uname: Linux-5.10.27-gentoo-dist-x86_64-Intel-R-_Core-TM-_i7-8700_CPU_@_3.20GHz-with-glibc2.2.5
KiB Mem:    16312292 total,   2095380 free
KiB Swap:   16777212 total,  15655420 free
Timestamp of repository gentoo: Sat, 08 May 2021 16:30:01 +0000
Head commit of repository gentoo: 3ef5b680c65973c26199010dda6ad1cef3143176
Timestamp of repository guru: Sat, 08 May 2021 13:50:01 +0000
Head commit of repository guru: 4fa7764f05119bdb5f0bfe58785995f1ad252b22

sh bash 5.0_p18
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          3.8.9_p2::gentoo, 3.9.4_p1::gentoo
dev-lang/rust:            1.51.0-r2::gentoo
dev-util/cmake:           3.18.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/sandbox:         2.22::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.2-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            10.2.0-r5::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r7::gentoo

    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes

    location: /var/db/repos/guru
    sync-type: git
    masters: gentoo

CFLAGS="-march=native -O2 -pipe"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
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=native -O2 -pipe"
EMERGE_DEFAULT_OPTS=" --quiet-build=y --jobs=12 --load-average=12"
FCFLAGS="-march=native -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="-march=native -O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli colord crypt cups dbus dri dts dvd dvdr eds emboss encode evo exif flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gui iconv icu introspection ipv6 jpeg lcms libglvnd libnotify libsecret libtirpc mad mng mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline sdl seccomp spell split-usr ssl startup-notification svg sysprof systemd tcpd tiff tracker truetype udev udisks unicode upower usb vorbis wayland wxwidgets x264 xattr xcb xml xv xvid 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 mmxext 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="efi-64" INPUT_DEVICES="libinput synaptics keyboard mouse evdev jokstick wacom" KERNEL="linux" L10N="fr" 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" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="nvidia" 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"
Comment 3 2021-05-10 15:47:39 UTC
$ gdb transmission-gtk 
GNU gdb (Gentoo 10.1 vanilla) 10.1
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from transmission-gtk...
Reading symbols from /usr/lib/debug//usr/bin/transmission-gtk.debug...
(gdb) run
Starting program: /usr/bin/transmission-gtk 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/".
[New Thread 0x7ffff5658640 (LWP 113326)]
[New Thread 0x7ffff4e34640 (LWP 113327)]
[New Thread 0x7fffeffff640 (LWP 113328)]
[New Thread 0x7fffef7fe640 (LWP 113329)]
[New Thread 0x7fffeeffd640 (LWP 113330)]
[New Thread 0x7fffdbc3a640 (LWP 113375)]
[New Thread 0x7fffdb439640 (LWP 113376)]
[New Thread 0x7fffdac38640 (LWP 113377)]
[New Thread 0x7fffda437640 (LWP 113378)]
[New Thread 0x7fffd9c36640 (LWP 113379)]
[New Thread 0x7fffd9435640 (LWP 113380)]
[New Thread 0x7fffd8bd5640 (LWP 113382)]
[Thread 0x7fffd8bd5640 (LWP 113382) exited]
[New Thread 0x7fffd8bd5640 (LWP 113385)]
[Thread 0x7fffd8bd5640 (LWP 113385) exited]
[Thread 0x7fffdbc3a640 (LWP 113375) exited]
[Thread 0x7fffd9c36640 (LWP 113379) exited]
[Thread 0x7fffdb439640 (LWP 113376) exited]
[Thread 0x7ffff4e34640 (LWP 113327) exited]
[Thread 0x7fffdac38640 (LWP 113377) exited]
[New Thread 0x7fffdac38640 (LWP 113386)]
[New Thread 0x7fffdb439640 (LWP 113387)]
[New Thread 0x7ffff4e34640 (LWP 113388)]
[Thread 0x7ffff4e34640 (LWP 113388) exited]
[Thread 0x7fffdb439640 (LWP 113387) exited]
[Thread 0x7fffdac38640 (LWP 113386) exited]
[New Thread 0x7fffdac38640 (LWP 113389)]
*** invalid %N$ use detected ***

Thread 1 "transmission-gt" received signal SIGABRT, Aborted.
0x00007ffff6bdbed1 in raise () from /lib64/
Comment 4 Sam James archtester gentoo-dev Security 2021-05-10 15:59:20 UTC
We'll have to play a bit more to get a useful bt, I think.
Comment 5 2021-05-10 16:13:34 UTC
Let me know if I can help or if I can do something for you about this...
Comment 6 emerald 2021-06-27 00:30:27 UTC
I got a backtrace of transmission-daemon and curl: the daemon crashes after a few minutes:

Thread 4 "transmission-da" received signal SIGABRT, Aborted.
[Switching to Thread 0x7f173d1e0640 (LWP 88048)]
0x00007f173f1d37c1 in raise () from /lib64/
(gdb) bt
#0  0x00007f173f1d37c1 in raise () from /lib64/
#1  0x00007f173f1bd536 in abort () from /lib64/
#2  0x00007f173f21471e in ?? () from /lib64/
#3  0x00007f173f21c0aa in ?? () from /lib64/
#4  0x00007f173f21e359 in ?? () from /lib64/
#5  0x00007f173f3c85ca in Curl_free_request_state (data=data@entry=0x7f17281583f0) at /var/tmp/portage/net-misc/curl-7.77.0/work/curl-7.77.0/lib/url.c:2168
#6  0x00007f173f3acbe9 in multi_done (data=data@entry=0x7f17281583f0, status=status@entry=CURLE_OPERATION_TIMEDOUT, premature=<optimized out>, premature@entry=true) at /var/tmp/portage/net-misc/curl-7.77.0/work/curl-7.77.0/lib/multi.c:697
#7  0x00007f173f3ad850 in multi_runsingle (multi=0x7f17280223a0, nowp=0x7f173d1df940, data=0x7f17281583f0) at /var/tmp/portage/net-misc/curl-7.77.0/work/curl-7.77.0/lib/multi.c:1743
#8  0x00007f173f3ae7ae in curl_multi_perform (multi=multi@entry=0x7f17280223a0, running_handles=running_handles@entry=0x7f173d1dfa54) at /var/tmp/portage/net-misc/curl-7.77.0/work/curl-7.77.0/lib/multi.c:2520
#9  0x0000562101f0995b in tr_webThreadFunc (vsession=0x562103bb8bb0) at /var/tmp/portage/net-p2p/transmission-3.00-r1/work/transmission-3.00/libtransmission/web.c:568
#10 0x0000562101ee7e48 in ThreadFunc (_t=0x7f1734b31ce0) at /var/tmp/portage/net-p2p/transmission-3.00-r1/work/transmission-3.00/libtransmission/platform.c:104
#11 0x00007f173f786e4e in start_thread () from /lib64/
#12 0x00007f173f292d7f in clone () from /lib64/