Package: rtorrent
Version: 0.9.8-1
Severity: minor
Usertags: crash

When I accidentally ran rtorrent with /dev/null as stdin, it crashed
with an internal error. It should exit with an error message instead.

   $ gdb rtorrent
   GNU gdb (Debian 12.1-4) 12.1
   Copyright (C) 2022 Free Software Foundation, Inc.
   License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
   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-linux-gnu".
   Type "show configuration" for configuration details.
   For bug reporting instructions, please see:
   <https://www.gnu.org/software/gdb/bugs/>.
   Find the GDB manual and other documentation resources online at:
       <http://www.gnu.org/software/gdb/documentation/>.
   
   For help, type "help".
   Type "apropos word" to search for commands related to "word"...
   Reading symbols from rtorrent...
   Reading symbols from 
/usr/lib/debug/.build-id/e7/c688948ec2623bead56a965c1c5804fa1a0d3b.debug...
   (gdb) run < /dev/null
   Starting program: /usr/bin/rtorrent < /dev/null
   [Thread debugging using libthread_db enabled]
   Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
   [New Thread 0x7ffff65a86c0 (LWP 1360077)]
   Caught internal_error: PollEPoll::modify(...) epoll_ctl(9, 1 -> 1, 0, 
[0x5555557a89d0:1]) = 1: Operation not permitted
   
/usr/lib/x86_64-linux-gnu/libtorrent.so.21(_ZN7torrent14internal_error10initializeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x250)
 [0x7ffff7dc1c80]
   /usr/bin/rtorrent(_ZN7torrent14internal_errorC1EPKc+0xaf) [0x5555555fdf8f]
   
/usr/lib/x86_64-linux-gnu/libtorrent.so.21(_ZN7torrent9PollEPoll6modifyEPNS_5EventEij+0x20e)
 [0x7ffff7dcb23e]
   /usr/bin/rtorrent(+0xa3280) [0x5555555f7280]
   /usr/bin/rtorrent(+0x418c1) [0x5555555958c1]
   /lib/x86_64-linux-gnu/libc.so.6(+0x2718a) [0x7ffff784618a]
   /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x85) [0x7ffff7846245]
   /usr/bin/rtorrent(+0x422da) [0x5555555962da]
   [Thread 0x7ffff68c1980 (LWP 1360068) exited]
   [Thread 0x7ffff65a86c0 (LWP 1360077) exited]
   [New process 1360068]
   [Inferior 1 (process 1360068) exited with code 0377]

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing-debug
  APT policy: (900, 'testing-debug'), (900, 'testing'), (800, 
'unstable-debug'), (800, 'unstable'), (790, 'buildd-unstable'), (700, 
'experimental-debug'), (700, 'experimental'), (690, 'buildd-experimental')
merged-usr: no
Architecture: amd64 (x86_64)

Kernel: Linux 6.0.0-4-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8), LANGUAGE=en_AU:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages rtorrent depends on:
ii  libc6                2.36-4
ii  libcurl4             7.86.0-1
ii  libgcc-s1 [libgcc1]  12.2.0-9
ii  libncursesw6         6.3+20220423-2
ii  libstdc++6           12.2.0-9
ii  libtinfo6            6.3+20220423-2
ii  libtorrent21         0.13.8-2+b1
ii  libxmlrpc-core-c3    1.33.14-11

rtorrent recommends no packages.

Versions of packages rtorrent suggests:
ii  screen  4.9.0-3

-- no debconf information

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to