I have a transmission-daemon (2.94-2) on debian testing.
I noticed that when there is not enough free space on the hard drive, the added torrent starts loading and after a while it stops as there is not enough free space. After deleting this torrent (and Data), the partially downloaded file (.part) is not deleted and the transmission daemon crashes (on 1-3 minutes after deleting).
For the test, I tried the nightly build transmission-master-r3d9fd25269.tar.xz - it’s all the same.
here
"preallocation" : 1
"rename-partial-files": true
backtrace from core file:
Code: Select all
warning: core file may not match specified executable file.
[New LWP 32512]
[New LWP 32514]
[New LWP 32510]
[New LWP 32511]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/bin/transmission-daemon -f --log-error'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x004d2569 in tr_isTorrent (tor=0x4002) at torrent.h:334
334 return tor != NULL && tor->magicNumber == TORRENT_MAGIC_NUMBER && tr_isSession(tor->session);
[Current thread is 1 (Thread 0xb6544b40 (LWP 32512))]
#0 0x004d2569 in tr_isTorrent (tor=0x4002) at torrent.h:334
#1 0x004d540f in tr_torrentInfo (tor=0x4002) at torrent.c:1249
#2 0x004fef5e in tr_torrentHasMetadata (tor=0x4002) at transmission.h:1641
#3 0x004ff023 in tr_cpHasAll (cp=0xaffab83c) at completion.h:84
#4 0x004ffb4c in tr_cpMissingBlocksInPiece (cp=0xaffab83c, piece=727) at completion.c:242
#5 0x004fe0bc in tr_cpPieceIsComplete (cp=0xaffab83c, i=727) at completion.h:106
#6 0x004fe0ed in tr_torrentPieceIsComplete (tor=0xaffab650, i=727) at torrent.h:417
#7 0x004fe1dc in getBlockRun (cache=0xb50d70, pos=0, info=0x706859e0) at cache.c:104
#8 0x004fe2af in calcRuns (cache=0xb50d70, runs=0x706859e0) at cache.c:140
#9 0x004fecee in tr_cacheFlushDone (cache=0xb50d70) at cache.c:407
#10 0x004cb1e7 in onSaveTimer (foo=-1, bar=1, vsession=0xb508e0) at session.c:569
#11 0xb7f49b7b in ?? () from /lib/i386-linux-gnu/libevent-2.1.so.6
#12 0xb7f4a3b1 in event_base_loop () from /lib/i386-linux-gnu/libevent-2.1.so.6
#13 0xb7f4a60a in event_base_dispatch () from /lib/i386-linux-gnu/libevent-2.1.so.6
#14 0x004e273c in libeventThreadFunc (veh=0xb50da0) at trevent.c:263
#15 0x004c83a3 in ThreadFunc (_t=0xb39ce0) at platform.c:104
#16 0xb7946fd2 in start_thread (arg=<optimized out>) at pthread_create.c:486
#17 0xb785a286 in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:108
#0 0x004d2569 in tr_isTorrent (tor=0x4002) at torrent.h:334
No locals.
#1 0x004d540f in tr_torrentInfo (tor=0x4002) at torrent.c:1249
No locals.
#2 0x004fef5e in tr_torrentHasMetadata (tor=0x4002) at transmission.h:1641
No locals.
#3 0x004ff023 in tr_cpHasAll (cp=0xaffab83c) at completion.h:84
No locals.
#4 0x004ffb4c in tr_cpMissingBlocksInPiece (cp=0xaffab83c, piece=727) at completion.c:242
No locals.
#5 0x004fe0bc in tr_cpPieceIsComplete (cp=0xaffab83c, i=727) at completion.h:106
No locals.
#6 0x004fe0ed in tr_torrentPieceIsComplete (tor=0xaffab650, i=727) at torrent.h:417
No locals.
#7 0x004fe1dc in getBlockRun (cache=0xb50d70, pos=0, info=0x706859e0) at cache.c:104
b = 0x8d90e330
n = 24962
blocks = 0x78c39840
ref = 0x90d59cd0
block = 186368
len = 256
#8 0x004fe2af in calcRuns (cache=0xb50d70, runs=0x706859e0) at cache.c:140
rank = 5123043
pos = 0
n = 24962
i = 0
now = 1556101290
#9 0x004fecee in tr_cacheFlushDone (cache=0xb50d70) at cache.c:407
i = 0
n = 5704304
runs = 0x706859e0
err = 0
#10 0x004cb1e7 in onSaveTimer (foo=-1, bar=1, vsession=0xb508e0) at session.c:569
tor = 0x0
session = 0xb508e0
#11 0xb7f49b7b in ?? () from /lib/i386-linux-gnu/libevent-2.1.so.6
No symbol table info available.
#12 0xb7f4a3b1 in event_base_loop () from /lib/i386-linux-gnu/libevent-2.1.so.6
No symbol table info available.
#13 0xb7f4a60a in event_base_dispatch () from /lib/i386-linux-gnu/libevent-2.1.so.6
No symbol table info available.
#14 0x004e273c in libeventThreadFunc (veh=0xb50da0) at trevent.c:263
base = 0xb5c00600
eh = 0xb50da0
#15 0x004c83a3 in ThreadFunc (_t=0xb39ce0) at platform.c:104
t = 0xb39ce0
#16 0xb7946fd2 in start_thread (arg=<optimized out>) at pthread_create.c:486
ret = <optimized out>
start = <optimized out>
pd = <optimized out>
now = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {-1214914560, -1235989696, -1214914560, -1235992152, 1683784966, -469611259}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = 0
#17 0xb785a286 in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:108
No locals.
Thread 4 (Thread 0xb6d45b40 (LWP 32511)):
#0 0xb7fcbd71 in __kernel_vsyscall ()
No symbol table info available.
#1 0xb79514f7 in __libc_read (nbytes=4, buf=0xb6d450cc, fd=3) at ../sysdeps/unix/sysv/linux/read.c:26
resultvar = <optimized out>
resultvar = <optimized out>
sc_cancel_oldtype = 0
sc_ret = <optimized out>
sc_ret = <optimized out>
sc_ret = <optimized out>
__value = <optimized out>
resultvar = <optimized out>
resultvar = <optimized out>
sc_cancel_oldtype = <optimized out>
resultvar = <optimized out>
resultvar = <optimized out>
#2 __libc_read (fd=3, buf=0xb6d450cc, nbytes=4) at ../sysdeps/unix/sysv/linux/read.c:24
sc_ret = <optimized out>
__value = <optimized out>
resultvar = <optimized out>
resultvar = <optimized out>
sc_cancel_oldtype = <optimized out>
resultvar = <optimized out>
resultvar = <optimized out>
#3 0x004c6ee0 in signal_handler_thread_main (arg=0x0) at daemon-posix.c:79
sig = -1216811168
#4 0xb7946fd2 in start_thread (arg=<optimized out>) at pthread_create.c:486
ret = <optimized out>
start = <optimized out>
pd = <optimized out>
now = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {-1214914560, -1227596992, -1214914560, -1227599448, 1685882119, -469611259}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = 0
#5 0xb785a286 in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:108
No locals.
Thread 3 (Thread 0xb6d47240 (LWP 32510)):
#0 0xb7fcbd71 in __kernel_vsyscall ()
No symbol table info available.
#1 0xb785a6b3 in epoll_wait (epfd=5, events=0xb50750, maxevents=32, timeout=999) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
No locals.
#2 0xb7f54b70 in ?? () from /lib/i386-linux-gnu/libevent-2.1.so.6
No symbol table info available.
#3 0xb7f4a1ee in event_base_loop () from /lib/i386-linux-gnu/libevent-2.1.so.6
No symbol table info available.
#4 0xb7f4a60a in event_base_dispatch () from /lib/i386-linux-gnu/libevent-2.1.so.6
No symbol table info available.
#5 0x004c6951 in daemon_start (raw_arg=0xbfe0b774, foreground=true) at daemon.c:752
boolVal = true
pid_filename = 0x0
pidfile_created = false
session = 0xb508e0
status_ev = 0xb4d910
watchdir = 0x0
arg = 0xbfe0b774
settings = 0xbfe0b774
configDir = 0xb4d7a0 "/var/lib/transmission-daemon/.config/transmission-daemon"
#6 0x004c71d4 in dtr_daemon (cb=0xbfe0b760, cb_arg=0xbfe0b774, foreground=true, exit_code=0xbfe0b76c, error=0xbfe0b75c) at daemon-posix.c:220
signal_thread = 3067370304
#7 0x004c6d0e in main (argc=3, argv=0xbfe0b864) at daemon.c:868
data = {settings = {type = 8 '\b', key = 3219175320, val = {b = false, d = 1.6975966340370259e-312, i = 343597383936, s = {type = (unknown: 256), quark = 80, len = 11854656, str = {buf = '\000' <repeats 15 times>, str = 0x0}}, l = {alloc = 256, count = 80, vals = 0xb4e340}}}, configDir = 0xb4d7a0 "/var/lib/transmission-daemon/.config/transmission-daemon", paused = false}
foreground = true
ret = 1
cb = {on_start = 0x4c6356 <daemon_start>, on_stop = 0x4c6329 <daemon_stop>, on_reconfigure = 0x4c61ea <daemon_reconfigure>}
error = 0x0
Thread 2 (Thread 0xb0cffb40 (LWP 32514)):
#0 0xb7fcbd71 in __kernel_vsyscall ()
No symbol table info available.
#1 0xb7852903 in __GI___select (timeout=0xb0cff024, exceptfds=0xb0cfef90, writefds=0xb0cfef10, readfds=0xb0cfee90, nfds=0) at ../sysdeps/unix/sysv/linux/select.c:41
resultvar = <optimized out>
resultvar = <optimized out>
sc_cancel_oldtype = 0
sc_ret = <optimized out>
sc_ret = <optimized out>
sc_ret = <optimized out>
__value = <optimized out>
resultvar = <optimized out>
resultvar = <optimized out>
sc_cancel_oldtype = <optimized out>
resultvar = <optimized out>
resultvar = <optimized out>
#2 __GI___select (nfds=0, readfds=0xb0cfee90, writefds=0xb0cfef10, exceptfds=0xb0cfef90, timeout=0xb0cff024) at ../sysdeps/unix/sysv/linux/select.c:37
sc_ret = <optimized out>
__value = <optimized out>
resultvar = <optimized out>
resultvar = <optimized out>
sc_cancel_oldtype = <optimized out>
resultvar = <optimized out>
resultvar = <optimized out>
#3 0x004eed51 in tr_select (nfds=0, r_fd_set=0xb0cfee90, w_fd_set=0xb0cfef10, c_fd_set=0xb0cfef90, t=0xb0cff024) at web.c:356
No locals.
#4 0x004ef1eb in tr_webThreadFunc (vsession=0xb508e0) at web.c:494
usec = 200000
r_fd_set = {__fds_bits = {0 <repeats 32 times>}}
max_fd = -1
t = {tv_sec = 0, tv_usec = 148177}
w_fd_set = {__fds_bits = {0 <repeats 32 times>}}
c_fd_set = {__fds_bits = {0 <repeats 32 times>}}
msec = 200
unused = 0
msg = 0x0
mcode = CURLM_OK
str = 0xb030c7b0 "`\004\061\260\200\004\060\260/transmission-daemon/.config/transmission-daemon/cookies.txt"
multi = 0xb030e400
web = 0xb030fde0
taskCount = 0
task = 0x758012f0
session = 0xb508e0
#5 0x004c83a3 in ThreadFunc (_t=0xb339c500) at platform.c:104
t = 0xb339c500
#6 0xb7946fd2 in start_thread (arg=<optimized out>) at pthread_create.c:486
ret = <optimized out>
start = <optimized out>
pd = <optimized out>
now = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {-1214914560, -1328547008, -1214914560, -1328549464, 1396475147, -469611259}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = 0
#7 0xb785a286 in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:108
No locals.
Thread 1 (Thread 0xb6544b40 (LWP 32512)):
#0 0x004d2569 in tr_isTorrent (tor=0x4002) at torrent.h:334
No locals.
#1 0x004d540f in tr_torrentInfo (tor=0x4002) at torrent.c:1249
No locals.
#2 0x004fef5e in tr_torrentHasMetadata (tor=0x4002) at transmission.h:1641
No locals.
#3 0x004ff023 in tr_cpHasAll (cp=0xaffab83c) at completion.h:84
No locals.
#4 0x004ffb4c in tr_cpMissingBlocksInPiece (cp=0xaffab83c, piece=727) at completion.c:242
No locals.
#5 0x004fe0bc in tr_cpPieceIsComplete (cp=0xaffab83c, i=727) at completion.h:106
No locals.
#6 0x004fe0ed in tr_torrentPieceIsComplete (tor=0xaffab650, i=727) at torrent.h:417
No locals.
#7 0x004fe1dc in getBlockRun (cache=0xb50d70, pos=0, info=0x706859e0) at cache.c:104
b = 0x8d90e330
n = 24962
blocks = 0x78c39840
ref = 0x90d59cd0
block = 186368
len = 256
#8 0x004fe2af in calcRuns (cache=0xb50d70, runs=0x706859e0) at cache.c:140
rank = 5123043
pos = 0
n = 24962
i = 0
now = 1556101290
#9 0x004fecee in tr_cacheFlushDone (cache=0xb50d70) at cache.c:407
i = 0
n = 5704304
runs = 0x706859e0
err = 0
#10 0x004cb1e7 in onSaveTimer (foo=-1, bar=1, vsession=0xb508e0) at session.c:569
tor = 0x0
session = 0xb508e0
#11 0xb7f49b7b in ?? () from /lib/i386-linux-gnu/libevent-2.1.so.6
No symbol table info available.
#12 0xb7f4a3b1 in event_base_loop () from /lib/i386-linux-gnu/libevent-2.1.so.6
No symbol table info available.
#13 0xb7f4a60a in event_base_dispatch () from /lib/i386-linux-gnu/libevent-2.1.so.6
No symbol table info available.
#14 0x004e273c in libeventThreadFunc (veh=0xb50da0) at trevent.c:263
base = 0xb5c00600
eh = 0xb50da0
#15 0x004c83a3 in ThreadFunc (_t=0xb39ce0) at platform.c:104
t = 0xb39ce0
#16 0xb7946fd2 in start_thread (arg=<optimized out>) at pthread_create.c:486
ret = <optimized out>
start = <optimized out>
pd = <optimized out>
now = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {-1214914560, -1235989696, -1214914560, -1235992152, 1683784966, -469611259}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = 0
#17 0xb785a286 in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:108
No locals.