Opened 2 years ago

Last modified 23 months ago

#3522 new bug

Segmentation Fault on Deamon start (Armv71)

Reported by: M0x40 Owned by:
Priority: minor Milestone: not applicable
Component: Unknown Version: 2.0.3
Keywords: SIGSEGV segmentation fault armv71 Cc:

Description

I had successfully been running the latest deluged (v2.0.3) available from the raspbian apt repository until it started encountering segmentation faults after a recent reboot. In troubleshooting, I downloaded the latest source for 2.0.5 and built/installed it locally. I am still receiving the same segmentation fault error. I am assuming I updated a component recently that broke a dependency and didn't realize it until having to restart the service. I am not using any plugins or non-default features. The process dies before any logging occurs, even when setting the logging level to DEBUG. Let me know if any additional information is required.

deluged 2.0.5
libtorrent: 1.2.9.0
Python: 3.9.2
OS: Linux Raspbian GNU/Linux 11 bullseye
uname -a
Linux raspberrypi 5.15.41-v7+ #1557 SMP Mon May 23 16:46:23 BST 2022 armv7l GNU/Linux
/usr/bin/python3 /usr/bin/deluged -d -L debug
Segmentation fault
gdb --args python /usr/bin/deluged -d
GNU gdb (Raspbian 10.1-1.7) 10.1.90.20210103-git
Copyright (C) 2021 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 "arm-linux-gnueabihf".
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 python...
(No debugging symbols found in python)
(gdb) run
Starting program: /usr/bin/python /usr/bin/deluged -d
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
[Detaching after fork from child process 4502]
[Detaching after fork from child process 4503]

Program received signal SIGSEGV, Segmentation fault.
0x76fdb34c in _dl_map_object_deps (map=map@entry=0x8740b0, preloads=preloads@entry=0x0, npreloads=npreloads@entry=0, trace_mode=trace_mode@entry=0, open_mode=<optimized out>, open_mode@entry=-2147483648) at dl-deps.c:226
226     dl-deps.c: No such file or directory.
(gdb) thread apply all backtrace

Thread 1 (Thread 0x76ff7980 (LWP 4497) "python"):
#0  0x76fdb34c in _dl_map_object_deps (map=map@entry=0x8740b0, preloads=preloads@entry=0x0, npreloads=npreloads@entry=0, trace_mode=trace_mode@entry=0, open_mode=<optimized out>, open_mode@entry=-2147483648) at dl-deps.c:226
#1  0x76fe1260 in dl_open_worker (a=0x7effc91c) at dl-open.c:571
#2  0x76e4e9a8 in __GI__dl_catch_exception (exception=0x749b5d90, operate=0x7effc910, args=0x7effc990) at dl-error-skeleton.c:208
#3  0x76fe0d3c in _dl_open (file=0x749bcce8 "/usr/lib/python3/dist-packages/GeoIP.cpython-39-arm-linux-gnueabihf.so", mode=-2147483646, caller_dlopen=0x1f1948, nsid=-2, argc=3, argv=0x7efff734, env=0x7efff744) at dl-open.c:837
#4  0x76f64d98 in dlopen_doit (a=0x7effcb7c) at dlopen.c:66
#5  0x76e4e9a8 in __GI__dl_catch_exception (exception=0x58, exception@entry=0x7effcb30, operate=0x7effcb38, args=0x0, args@entry=0x76f77000) at dl-error-skeleton.c:208
#6  0x76e4ea90 in __GI__dl_catch_error (objname=0x50513c, errstring=0x505140, mallocedp=0x505138, operate=<optimized out>, args=0x7effcb7c) at dl-error-skeleton.c:227
#7  0x76f6587c in _dlerror_run (operate=<optimized out>, args=0x7effcb7c, args@entry=0x7effcb74) at dlerror.c:170
#8  0x76f64e5c in __dlopen (file=<optimized out>, mode=<optimized out>) at dlopen.c:87
#9  0x001f1948 in ?? ()
git status
On branch 2.0.x
nothing to commit, working tree clean

Change History (2)

comment:1 Changed 23 months ago by Cas

This could be a libtorrent related issue but as you suggest, it is more likely something not quite right with your system dependencies after an update. How are you installing libtorrent?

Since Deluge is written in Python it is not something we can fix.

Last edited 23 months ago by Cas (previous) (diff)

comment:2 Changed 23 months ago by Cas

  • Component changed from Core to Unknown
  • Milestone changed from needs verified to not applicable
Note: See TracTickets for help on using tickets.