Bug 282873

Summary: Ktorrent-dev: crash after starting to move files
Product: [Applications] ktorrent Reporter: George R. Goffe <grgoffe>
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: gzip'd output from gdb + bt

Description George R. Goffe 2011-09-26 22:36:23 UTC
Version:           unspecified (using KDE 4.6.5) 
OS:                Linux

Selected 10 files to move to a different disk. After completing the new directory name on the GUI, I poked ok. Got a crash for my trouble. Upon restart, ktorrent did not continue the move as expected/hoped.

Reproducible: Always

Steps to Reproduce:
Select file to move.
Select new directory in a different disk.
Poke the OK button on the popup.
Enjoy the crash.

Upon restarting, ktorrent had forgotten the move, leaving partially moved files STILL in the target.

Actual Results:  
See above.

Expected Results:  
See above.

It would be nice if ktorrent remembered what it was doing at the point of a crash and restarted automatically or offered the option to remove the new (failed) files.

I will be trying to run gdb on ktorrent so I can trap the back trace.
Comment 1 George R. Goffe 2011-09-28 05:32:25 UTC
Created attachment 64026 [details]
gzip'd output from gdb + bt

Joris,

This may or may not be related to this bug.

I was checking some successful downloads with shift-c while downloading other files. Drkonqi was not triggered by this crash.

George...
Comment 2 Joris Guisson 2011-10-03 16:51:18 UTC
Git commit 89d3a2e2db30152e6fa77c7a84bfc76a8a9914a3 by Joris Guisson.
Committed on 03/10/2011 at 18:50.
Pushed by guisson into branch 'master'.

Prevent file descriptor exhaustion from happening, fixes several crashes

BUG: 251120
BUG: 282873
BUG: 274544

M  +1    -0    ChangeLog
M  +2    -0    src/diskio/cachefile.cpp
M  +27   -9    src/download/httpconnection.cpp
M  +4    -0    src/interfaces/serverinterface.cpp
M  +32   -18   src/peer/peerconnector.cpp
M  +38   -0    src/util/functions.cpp
M  +6    -0    src/util/functions.h

http://commits.kde.org/libktorrent/89d3a2e2db30152e6fa77c7a84bfc76a8a9914a3