View Issue Details

IDProjectCategoryView StatusLast Update
0003189GNUnettransport servicepublic2024-05-03 13:58
ReporterChristian Grothoff Assigned ToChristian Grothoff  
PriorityurgentSeveritycrashReproducibilityhave not tried
Status closedResolutionfixed 
Product VersionGit master 
Target Version0.10.0Fixed in Version0.10.0 
Summary0003189: segfault in gnunet-service-dv.c:849
Description(gdb) ba
#0 __memcmp_sse4_1 () at ../sysdeps/x86_64/multiarch/memcmp-sse4.S:1529
#1 0x00007f7dbf24049f in build_set (cls=0x7f7dc10d5ce0) at gnunet-service-dv.c:849
#2 0x00007f7dbe5b7565 in impl_send_continue (cls=0x7f7dc10d5a00, tc=0x7fffcab07460) at mq.c:292
#3 0x00007f7dbe5c7341 in run_ready (rs=0x7f7dc10d8a50, ws=0x7f7dc10d8ae0) at scheduler.c:595
#4 0x00007f7dbe5c7c94 in GNUNET_SCHEDULER_run (task=0x7f7dbe5d4dbd <service_task>, task_cls=0x7fffcab076a0) at scheduler.c:817
#5 0x00007f7dbe5d6abf in GNUNET_SERVICE_run (argc=3, argv=0x7fffcab07a78, service_name=0x7f7dbf244ac5 "dv", options=GNUNET_SERVICE_OPTION_NONE, task=0x7f7dbf2441f7 <run>, task_cls=0x0)
    at service.c:1478
#6 0x00007f7dbf2443cd in main (argc=3, argv=0x7fffcab07a78) at gnunet-service-dv.c:2122
(gdb) print target
$12 = (struct Target *) 0x8

Clearly when target was constructed, the indexing into consensi[] returned a NULL pointer. Sadly, since then, *neighbor was updated. The current values at the time of the crash are:

(gdb) print *neighbor
$13 = {peer = {public_key = {q_y = "\200\337\061i\n\245\244\b\224\246\277]\355\351\334 \022\273\016q\263 \224\353f6\321_+!\233\271"}}, real_session_id = {bits = {903782939, 105276519,
      893861766, 443529465, 4049140586, 1025629340, 1128168464, 3308346828, 4049149101, 4201887470, 570138712, 2585337158, 239320448, 492669314, 1858179195, 1149247836}}, pm_head = 0x0,
  pm_tail = 0x0, cth = 0x0, neighbor_table = 0x0, neighbor_table_consensus = 0x0, my_set = 0x7f7dc10dd210, set_op = 0x7f7dc10e8650, listen_handle = 0x0, initiate_task = 0,
  consensus_insertion_offset = 4, consensus_insertion_distance = 1, pm_queue_size = 0, consensus_elements = 2, direct_route = 0x7f7dc10df3e0, target_removed = 0, distance = 1, network = 2,
  connected = 1}
TagsNo tags attached.

Activities

Christian Grothoff

2013-12-10 15:34

manager   ~0007829

Tried to fix in SVN 31263 by moving code to move past NULL, as it might have run in a different task and concurrent modification might have caused the issue otherwise.

Christian Grothoff

2013-12-10 15:40

manager   ~0007830

Seems fixed now.

Issue History

Date Modified Username Field Change
2013-12-10 13:28 Christian Grothoff New Issue
2013-12-10 15:34 Christian Grothoff Note Added: 0007829
2013-12-10 15:40 Christian Grothoff Note Added: 0007830
2013-12-10 15:40 Christian Grothoff Status new => resolved
2013-12-10 15:40 Christian Grothoff Fixed in Version => 0.10.0
2013-12-10 15:40 Christian Grothoff Resolution open => fixed
2013-12-10 15:40 Christian Grothoff Assigned To => Christian Grothoff
2013-12-24 20:54 Christian Grothoff Status resolved => closed
2024-05-03 13:58 Christian Grothoff Category DV service or transport => transport service