Bug 282873 - Ktorrent-dev: crash after starting to move files
Summary: Ktorrent-dev: crash after starting to move files
Status: RESOLVED FIXED
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-26 22:36 UTC by George R. Goffe
Modified: 2011-10-03 16:51 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
gzip'd output from gdb + bt (3.33 KB, application/x-gzip)
2011-09-28 05:32 UTC, George R. Goffe
Details

Note You need to log in before you can comment on or make changes to this bug.
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