mldonkey-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mldonkey-bugs] [bug #15959] Assertion fails at startup - all files lost


From: Jonas Eckerman
Subject: [Mldonkey-bugs] [bug #15959] Assertion fails at startup - all files lost
Date: Wed, 10 May 2006 20:28:45 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3

Follow-up Comment #5, bug #15959 (project mldonkey):

Some checking in files.ini seems to indicate that mlnet is confusing two
different torrents. More below.

I'm also attaching a tet file with somewhat more complete snippets of the
same stuff as here.

The patch gives this output:
---8<---
-su-2.05b# ./mlnet.2.7.5.dbg
2006/05/10 21:36:53 Starting MLDonkey 2.7.5 ...
2006/05/10 21:36:53 Language EN, locale ASCII, ulimit for open files 3636
2006/05/10 21:36:53 MLDonkey is working in .
2006/05/10 21:36:53 [DNS] Resolving [boomer.truls.org] ...
2006/05/10 21:36:54 [DNS] Resolving [www.mldonkey.net] ...
2006/05/10 21:36:58 [IPblock] loading guarding.p2p
2006/05/10 21:37:06 [IPblock] 115067 ranges loaded - optimized to 100848
2006/05/10 21:37:06 [cUd] converting 3 users to new format
2006/05/10 21:37:06 Updating options to version 10
2006/05/10 21:37:06 Updating options to version 11
2006/05/10 21:37:07 [cSw2] file_size for
./temp/BT-X34OR7VZKJDR3SL2QXT2BN2H2VXW4VYZ does not match: swarmer 54143112 /
real 58866719
---8<---

Checking BT-X34OR7VZKJDR3SL2QXT2BN2H2VXW4VYZ in "files.ini" I find the
following (snipped here):
---8<---
 swarmers = [
[...]
  {     file_size = 54143112
     file_name = "./temp/BT-X34OR7VZKJDR3SL2QXT2BN2H2VXW4VYZ"
     file_bitmap =
"333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333303333333333333333333333333333333333333333333333333"
     file_chunk_sizes = [
      262144;]
};
[...]
 files = [
  {     file_network = BitTorrent
     file_size = 54143112
     file_priority = 0
     file_state = Downloading
     file_filename = "Dag Vag - Almanacka (1983)"
     file_age = 147002461
     file_primary = true
     file_swarmer = "./temp/BT-X34OR7VZKJDR3SL2QXT2BN2H2VXW4VYZ"
     file_mtime = 1147102580.
     file_chunks =
"333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333303333333333333333333333333333333333333333333333333"
     file_present_chunks = [
      (0, 41156608);
      (41418752, 54143112)]
     file_downloaded = 53880968
[...]
     file_temp = "./temp/BT-X34OR7VZKJDR3SL2QXT2BN2H2VXW4VYZ"
     file_piece_size = 262144
     file_name = "Dag Vag - Almanacka (1983)"
     file_uploaded = 27230208
     file_id = X34OR7VZKJDR3SL2QXT2BN2H2VXW4VYZ
     file_trackers = [
      "http://tracker.prq.to/announce";;]
---8<---

Adding togetrehr the size of all individual files in the entry above gives
54143112 wich corresponds exactly with "file_size".

When comparing the files in the directory
"./temp/BT-X34OR7VZKJDR3SL2QXT2BN2H2VXW4VYZ" the only difference is that in
the directory the file "09 - Dimma.mp3" is only 1290530 bytes.

Adding together the size of all files in the directory gives 53992068 bytes,
wich coresponds exactly with "file_downloaded" in "files.ini".

Trying to find "58866719" (from the error message at the top) in "files.ini"
I find an entry for another torrent with the same filename ("Dag Vag -
Almanacka (1983)") and almost the same content, but with a different ID and
temp dir.

For some reason the second entry has the same "file_swarmer" as the first
even though the "file_id" and "file_temp" are different.

Some snippets from that files entries in "files.ini":

---8<---
 swarmers = [
  {     file_size = 58866719
     file_name = "./temp/BT-CNJUFHE26BBFTAG3Y4CBWHMDF6AHTCMH"
     file_bitmap =
"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
     file_chunk_sizes = [
      262144;]
};
[...]
 files = [
  {     file_network = BitTorrent
     file_size = 54143112
     file_priority = 0
     file_state = Downloading
     file_filename = "Dag Vag - Almanacka (1983)"
     file_age = 147002461
     file_primary = true
     file_swarmer = "./temp/BT-X34OR7VZKJDR3SL2QXT2BN2H2VXW4VYZ"
     file_mtime = 1147102580.
     file_chunks =
"333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333303333333333333333333333333333333333333333333333333"
     file_present_chunks = [
      (0, 41156608);
      (41418752, 54143112)]
     file_downloaded = 53880968
[...]
     file_temp = "./temp/BT-CNJUFHE26BBFTAG3Y4CBWHMDF6AHTCMH"
     file_piece_size = 262144
     file_name = "Dag Vag - Almanacka (1983)"
     file_uploaded = 0
     file_id = CNJUFHE26BBFTAG3Y4CBWHMDF6AHTCMH
     file_trackers = [
      "http://tracker.prq.to/announce";;]
---8<---

    _______________________________________________________

Additional Item Attachment:

File name: testresult.txt                 Size:30 KB
details about the problematic entries and files
<http://savannah.nongnu.org/bugs/download.php?file_id=9940>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=15959>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]