Rtorrent: lastest libtorrent/rtorrent crash/error

Created on 2 Feb 2017  路  12Comments  路  Source: rakshasa/rtorrent

Caught internal_error: SocketFd::close() called on an invalid file descriptor
/usr/lib64/libtorrent.so.19(_ZN7torrent14internal_error10initializeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x221) [0x7f8e0d21e1a1]
rtorrent(_ZN7torrent14internal_errorC1EPKc+0x96) [0x451a96]
/usr/lib64/libtorrent.so.19(+0xcdb44) [0x7f8e0d2bbb44]
/usr/lib64/libtorrent.so.19(+0xcd099) [0x7f8e0d2bb099]
/usr/lib64/libtorrent.so.19(_ZN7torrent17ConnectionManager11listen_openEtt+0x16) [0x7f8e0d21b156]
rtorrent() [0x4c4a79]
rtorrent() [0x450023]
rtorrent() [0x4108d7]
/lib64/libc.so.6(__libc_start_main+0xf0) [0x7f8e0bd1b790]
rtorrent() [0x411c99]

both build from feature-bind branch
changing settings won't help.

From 02/06/2017:

~ $ rtorrent 
rtorrent: Could not open/bind port for listening: Address family not supported by protocol

Most helpful comment

i've found out that rtorrent needs ipv6 kernel module

All 12 comments

This looks like a duplicate of #554. Try changing the port range in your config to be more than one port.

i tried that before posting here

I've installed rtorrent on 2 other machines, the same error

maybe the problem in some dependency/ies

I use Gentoo

[ebuild  N    *] net-p2p/rtorrent-9999::pg_overlay  USE="daemon -debug -ipv6 (-selinux) {-test} -xmlrpc" 0 KiB
[ebuild  N     ]  app-misc/screen-4.5.0-r1::gentoo  USE="pam -debug -multiuser -nethack (-selinux)" 941 KiB
[ebuild  N    *]  net-libs/libtorrent-9999::pg_overlay  USE="ssl -debug -libressl {-test}" 0 KiB
[ebuild  N     ]   dev-libs/libsigc++-2.10.0:2::gentoo  USE="-doc -static-libs {-test}" ABI_X86="(64) -32 (-x32)" 3聽
~ $ emerge --info
Portage 2.3.3 (python 3.5.2-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-6.3.0, glibc-2.23-r3, 4.9.7-gentoo x86_64)
=================================================================
System uname: Linux-4.9.7-gentoo-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.3
KiB Mem:     8163924 total,   5468040 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Sat, 04 Feb 2017 09:22:15 +0000
sh bash 4.4_p11
ld GNU ld (Gentoo 2.27 p1.0) 2.27
app-shells/bash:          4.4_p11::gentoo
dev-lang/perl:            5.24.1_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.5.2::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.23.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.13.4-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.27::gentoo
sys-devel/gcc:            6.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: git://github.com/gentoo-mirror/gentoo.git
    priority: 1
    eclass-overrides: pg_overlay
    sync-git-clone-extra-opts: --branch master

kde
    location: /usr/portage/proj/kde
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/kde.git
    masters: gentoo
    priority: 3
    eclass-overrides: pg_overlay

pg_overlay
    location: /usr/portage/overlay/pg_overlay
    sync-type: git
    sync-uri: git://github.com/perfect7gentleman/pg_overlay.git
    masters: gentoo
    priority: 5
    eclass-overrides: pg_overlay

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /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 -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.rit.edu/gentoo/ rsync://mirrors.rit.edu/gentoo/"
LANG="ru_RU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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="/tmp"
USE="X acl acpi amd64 bash-completion branding bzip2 cairo cdr cli consolekit cracklib cups custom-cflags cxx dbus declarative dri dts dvdr emboss encode exif fam ffmpeg firefox flac fontconfig gif glamor gmp iconv icu introspection jit jpeg kipi lcms libass libnotify lm_sensors lua lzma lzo mad matroska mng modules multilib ncurses nls nptl opengl openmp pam pango pcre pdf phonon png policykit ppds pulseaudio qml qt5 readline seccomp session smp spell ssl svg symlink tcmalloc tcpd threads tiff truetype udev udisks unicode upower usb v4l vdpau wavpack webp widgets wxwidgets x264 xattr xcb xcomposite xml xv xvid zlib" ABI_X86="64" 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock 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" L10N="en en-US ru ru-RU" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US ru ru_RU" LLVM_TARGETS="NVPTX" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python3_5" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64 i386" RUBY_TARGETS="ruby24" SANE_BACKENDS="xerox_mfp" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON



md5-861754bc760cffa88060fe34c13eb03a



    append-cflags -fno-strict-aliasing -Wno-terminate
    append-cxxflags -fno-strict-aliasing -Wno-terminate

Same issue here, tried multiple port ranges (and single port).

Always get the same error on ubuntu 16.04

Caught internal_error: SocketFd::close() called on an invalid file descriptor
/usr/lib/libtorrent.so.19(_ZN7torrent14internal_error10initializeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x227) [0x7f61bfb4f277]
rtorrent(_ZN7torrent14internal_errorC1EPKc+0xb4) [0x557fd7f6b8a4]
/usr/lib/libtorrent.so.19(+0xce914) [0x7f61bfbed914]
/usr/lib/libtorrent.so.19(+0xcdd59) [0x7f61bfbecd59]
/usr/lib/libtorrent.so.19(_ZN7torrent17ConnectionManager11listen_openEtt+0x16) [0x7f61bfb4c3d6]
rtorrent(+0xd6b88) [0x557fd7fe2b88]
rtorrent(+0x5de7a) [0x557fd7f69e7a]
rtorrent(+0x1d19e) [0x557fd7f2919e]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1) [0x7f61be68f3f1]
rtorrent(+0x1e63a) [0x557fd7f2a63a]

I suggest to not use feature branches (only for test) as the implemented features aren't finished yet but use master branches.

@chros73, afaik master branch does'n build

:) I know but you can build them with these commits .

still not fixed.
Well now im getting: rtorrent: Could not open/bind port for listening: Cannot assign requested address

I haven't changed my rtorrent.rc. it should bind/listen on *

@CryptoSiD, the same.

i've found out that rtorrent needs ipv6 kernel module

Was this page helpful?
0 / 5 - 0 ratings