|
I made some mistakes while writing this report.
Anyway amule can crash while hashing part files with following error:
/usr/lib64/gcc/x86_64-slamd64-linux/4.1.2/../../../../include/c++/4.1.2/debug/vector:192:
error: attempt to subscript container with out-of-bounds index 0, but
container only holds 0 elements.
Objects involved in the operation:
sequence "this" @ 0x0x45008c80 {
type = N15__gnu_debug_def6vectorIhSaIhEEE;
}
The problem is in ThreadTasks.cpp, in method CHashingTask::Entry().
In facts sometimes this method is called for files with EMPTY hashlist.
The attached patch (against aMule CVS 20080103 version) is JUST TO AVOID the crash, not a real fix (I think... I don't know the code).
Bye,
Mr Hyde |
|