Registered Member
|
Today, ktorrent suddenly started to crash with an older version [>=559475 don't know anymore] occasionally after I added a new torrent to the download list (was it the reason? i don't know, after i removed that torrent the problem wasn't gone). Another reason could be, that another torrent downloaded chunks from files i don't wanted (looks like that it downloaded chunks which are splitted between files, but no one of them were selected for download).
I decided to update to svn [563115] but the problem still exists. Anyway, here is the backtrace with help of gdb:
|
Moderator
|
This is upload related, I can see where it goes wrong, I'll build in a safety check (though that doesn't address the root cause, seeing that this shouldn't happen)
EDIT: now it shouldn't crash anymore, I will take a look at border chunks of 2 excluded files, and see how we handle these. |
Registered Member
|
it still shoots itself with the same(?) backtrace.
|
Moderator
|
|
Registered Member
|
|
Moderator
|
|
Registered Member
|
but it does not show a backtrace with arguments, only "No symbol table info available." somehow i got it wrong but don't know where EDIT: here a plain memory output of the stack (hopefully, i forget always which registers are for what at the stack), if this helps:
Edit2: AMD Opteron in 64bit mode Edit3: hope that gathers all information:
|
Moderator
|
I have made some other improvements, they should catch invalid stuff making it into memcpy.
Btw, seeing that there is no difference between the debug and release version backtraces, are you sure that you do not have 2 versions of KT installed. (maybe configure defaults to a different prefix then /usr on your system) |
Registered Member
|
there are a lot of possible reasons for that problem. One could be that my gdb is to old, another that i use for everything (except ktorrent svn) heavily optimizing flags, which can kill a lot of debug informations (i think use of registers instead of stack is one of them). I will try to update my gdb, check if the flags are really disabled for ktorrent svn and make a new build after killing everything which looks like ktorrent .
EDIT: killed 2 versions of ktorrent (but both were the same o.O') and made everything how said/told. At the moment it runs smooth. If it does not crash the next 20 minutes that problem should be gone. |
Registered Member
|
|
Moderator
|
Registered users: Bing [Bot], Evergrowing, Google [Bot]