View Issue Details

IDProjectCategoryView StatusLast Update
0002055GNUnetfile-sharing servicepublic2012-02-28 10:05
ReporterLRN Assigned ToChristian Grothoff Due Date
PrioritylowSeverityminorReproducibilityrandom
Status closedResolutionfixed 
Product VersionGit master 
Target Version0.9.2Fixed in Version0.9.2 
Summary0002055: gnunet-service-fs_cp.c breaks on line 907
Descriptionsubj happens randomly
Additional Information

Breakpoint 1, _fu89__skip_log () at f:/src/gnunet-git-svn/src/fs/gnunet-service-fs_cp.c:907
907         GNUNET_break (0);
(gdb) l
902         return;
903       }
904       GNUNET_break (type != GNUNET_BLOCK_TYPE_ANY);
905       if ((prd->type != type) && (prd->type != GNUNET_BLOCK_TYPE_ANY))
906       {
907         GNUNET_break (0);
908         return;
909       }
910     #if DEBUG_FS

(gdb) p prd->type
$1 = GNUNET_BLOCK_TYPE_FS_DBLOCK
(gdb) p type
$2 = GNUNET_BLOCK_TYPE_FS_IBLOCK
(gdb) p *prd
$3 = {query = {bits = {1882740257, 3202148844, 3793786527, 2644104753, 799112929, 3202500231, 3252135879, 1407372604, 847872428, 1982379041, 1697692818, 2336373799, 2201873018, 456709864, 302726279, 240758995}}, namespace = {
    bits = {0 <repeats 16 times>}}, target = {hashPubKey = {bits = {0 <repeats 16 times>}}}, rpr_head = 0x0, rpr_tail = 0x0, ttl = {abs_value = 1323411592260}, start_time = {abs_value = 1325378650260}, anonymity_level = 1,
  priority = 0, original_priority = 0, options = GSF_PRO_DEFAULTS, type = GNUNET_BLOCK_TYPE_FS_DBLOCK, results_found = 0, has_target = 0, has_started = 1}
(gdb) p prd->query
$4 = {bits = {1882740257, 3202148844, 3793786527, 2644104753, 799112929, 3202500231, 3252135879, 1407372604, 847872428, 1982379041, 1697692818, 2336373799, 2201873018, 456709864, 302726279, 240758995}}
(gdb) p *peerreq
$5 = {pr = 0x17ce8128, cp = 0x1d6d548, kill_task = 0}
(gdb) p *peerreq->pr
$6 = {public_data = {query = {bits = {1882740257, 3202148844, 3793786527, 2644104753, 799112929, 3202500231, 3252135879, 1407372604, 847872428, 1982379041, 1697692818, 2336373799, 2201873018, 456709864, 302726279, 240758995}},
    namespace = {bits = {0 <repeats 16 times>}}, target = {hashPubKey = {bits = {0 <repeats 16 times>}}}, rpr_head = 0x0, rpr_tail = 0x0, ttl = {abs_value = 1323411592260}, start_time = {abs_value = 1325378650260},
    anonymity_level = 1, priority = 0, original_priority = 0, options = GSF_PRO_DEFAULTS, type = GNUNET_BLOCK_TYPE_FS_DBLOCK, results_found = 0, has_target = 0, has_started = 1}, rh = 0x403c3e <handle_p2p_reply>,
  rh_cls = 0xb0a3c58, replies_seen = 0x0, bf = 0x0, hnode = 0x12468f98, qe = 0x0, gh = 0x0, llc_cont = 0x40171d <consider_forwarding>, llc_cont_cls = 0x0, local_result = GNUNET_BLOCK_EVALUATION_OK_MORE, sender_pid = 0,
  origin_pid = 1, qe_start = {abs_value = 1325378650260}, warn_task = 0, local_result_offset = 5854295223382835201, first_uid = 13587, replies_seen_count = 0, replies_seen_size = 0, mingle = 0, have_first_uid = 1}
TagsNo tags attached.

Activities

Christian Grothoff

2012-01-01 18:55

manager   ~0005231

Changed from break to a stats call in 18879. Still, I don't see how without malicious participants we should actually observe this, but it is clearly possible in theory. So by counting we can keep an eye on the frequency.

Issue History

Date ModifiedUsernameFieldChange
2012-01-01 00:59LRNNew Issue
2012-01-01 18:55Christian GrothoffNote Added: 0005231
2012-01-01 18:55Christian GrothoffStatusnew => resolved
2012-01-01 18:55Christian GrothoffFixed in Version => 0.9.2
2012-01-01 18:55Christian GrothoffResolutionopen => fixed
2012-01-01 18:55Christian GrothoffAssigned To => Christian Grothoff
2012-01-02 02:39Christian GrothoffTarget Version => 0.9.2
2012-02-28 10:05Christian GrothoffStatusresolved => closed