View Issue Details

IDProjectCategoryView StatusLast Update
0002204GNUnetDHT servicepublic2012-06-02 19:15
ReporterChristian Grothoff Assigned ToChristian Grothoff  
PriorityurgentSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Product VersionGit master 
Target Version0.9.3Fixed in Version0.9.3 
Summary0002204: test_dht_2dtorus crashes with an odd error message (after/due to recent changes to testing?)
DescriptionRunning the test, I get:

$ ./test_dht_2dtorus
Hostkeys created Progress: [0%...25%...50%...75%...100%]
Peers started Progress: [0%...25%...50%...75%...100%]
Peer connection Progress: [0%.......25%.......50%.......75%.......100%]
Mar 09 14:24:58-496733 test_dht_topo-20058 ERROR Peers not found (hostkey file changed?)
Mar 09 14:24:58-512475 dht-20132 ERROR Assertion failed at statistics_api.c:426.
Mar 09 14:24:58-517784 dht-20114 ERROR Assertion failed at statistics_api.c:426.
Mar 09 14:24:58-533364 dht-20141 ERROR Assertion failed at statistics_api.c:426.
Mar 09 14:25:00-507747 dht-20097 ERROR Assertion failed at statistics_api.c:426.
Mar 09 14:25:00-510149 dht-20152 ERROR Assertion failed at statistics_api.c:426.
Mar 09 14:25:00-512636 dht-20117 ERROR Assertion failed at statistics_api.c:426.
Mar 09 14:25:00-512914 dht-20177 ERROR Assertion failed at statistics_api.c:426.
Mar 09 14:25:00-525197 dht-20108 ERROR Assertion failed at statistics_api.c:426.
Mar 09 14:25:00-525222 dht-20159 ERROR Assertion failed at statistics_api.c:426.
Mar 09 14:25:00-527426 dht-20421 ERROR Assertion failed at statistics_api.c:426.
Mar 09 14:25:00-528090 dht-20106 ERROR Assertion failed at statistics_api.c:426.
Mar 09 14:25:00-542859 dht-20137 ERROR Assertion failed at statistics_api.c:426.
Mar 09 14:25:00-704911 test_dht_topo-20058 WARNING ID 1 not found!
Mar 09 14:25:00-704931 test_dht_topo-20058 WARNING ID 2 not found!
Mar 09 14:25:00-704937 test_dht_topo-20058 WARNING ID far not found!
Additional InformationThe changes to testing (which are the only ones I can think of that might have an impact) were only to stop/kill all helper processes on termination (replacing a single always-used 'proc' field with per-sub-process 'proc' fields). So the change should have been harmless. I also don't quite understand the error message here either...
TagsNo tags attached.

Activities

LRN

2012-03-11 21:05

reporter   ~0005596

Maybe related. During test_dht_2dtorus i've got this:
Reading symbols from d:\progs\gnunet\bin\gnunet-service-dht.exe...done.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1972.0x2c20]
0x6adc17ec in try_connect (h=0x64b9b0) at statistics_api.c:376
376           if (gh->type == ACTION_WATCH)
(gdb) p gh->type
Cannot access memory at address 0x1dba010
(gdb) p gh
$1 = (struct GNUNET_STATISTICS_GetHandle *) 0x1db9fd8
(gdb) l
371       {
372         gn = h->action_head;
373         while (NULL != (gh = gn))
374         {
375           gn = gh->next;
376           if (gh->type == ACTION_WATCH)
377           {
378             GNUNET_CONTAINER_DLL_remove (h->action_head,
379                                          h->action_tail,
380                                          gh);
(gdb) p *gh
Cannot access memory at address 0x1db9fd8
(gdb) p gn
$2 = (struct GNUNET_STATISTICS_GetHandle *) 0x6400c4
(gdb) p gh->next
$3 = (struct GNUNET_STATISTICS_GetHandle *) 0x6400c4
(gdb) p h->action_head
$4 = (struct GNUNET_STATISTICS_GetHandle *) 0x1dad348
(gdb) p *h->action_head
$5 = {next = 0x64b920, prev = 0x1dfb498, sh = 0x0, subsystem = 0x61c3fca5 "UЙхVSГь@ЛE\bЙEЁЛE\020fЛ", name = 0x28fe18 "РЭ┌\001H╙┌\001", cont = 0, proc = 0xffffffff, cls = 0xffffffff, timeout = {abs_value = 0}, value = 1,
  make_persistent = 0, aborted = 0, type = ACTION_GET, msize = 0}
(gdb) p *h->action_head->next
$6 = {next = 0x64aff0, prev = 0x1dad348, sh = 0x0, subsystem = 0x1daf380 "РЭ┌\001", name = 0x0, cont = 0, proc = 0, cls = 0x0, timeout = {abs_value = 17186470704}, value = 0, make_persistent = 110, aborted = 0,
  type = ACTION_GET, msize = 0}
(gdb) p *h->action_head->next->next
$7 = {next = 0x1dee9b8, prev = 0x64b920, sh = 0x4e524c5c, subsystem = 0x7070415c <Address 0x7070415c out of bounds>, name = 0x61746144 <Address 0x61746144 out of bounds>, cont = 0x636f4c5c, proc = 0x545c6c61,
  cls = 0x5c706d65, timeout = {abs_value = 3275354354096170844}, value = 7521962882103533924, make_persistent = 1869374053, aborted = 1917742447, type = 1630819937, msize = 0}
(gdb) p *h->action_head->next->next->next
$8 = {next = 0x1dafff8, prev = 0x64aff0, sh = 0x61c0c898, subsystem = 0x0, name = 0x1daff58 "РЭ┌\001", cont = 0, proc = 0x3599a13, cls = 0x136, timeout = {abs_value = 0}, value = 0, make_persistent = 0, aborted = 0,
  type = ACTION_GET, msize = 10}
(gdb) p *h->action_head->next->next->next->next
$9 = {next = 0x1df1010, prev = 0x1dee9b8, sh = 0x0, subsystem = 0x64b360 "d", name = 0x1daffa8 "", cont = 0, proc = 0xffffffff, cls = 0xffffffff, timeout = {abs_value = 0}, value = 4, make_persistent = -1, aborted = -1,
  type = ACTION_GET, msize = 65535}
(gdb) p *h->action_head->next->next->next->next->next
$10 = {next = 0x64e658, prev = 0x1dafff8, sh = 0xf2f44d4e, subsystem = 0x4fc7129d <Address 0x4fc7129d out of bounds>, name = 0xca007cec <Address 0xca007cec out of bounds>, cont = 0xa3d0f670, proc = 0xbd4b52d9,
  cls = 0x91bbb34b, timeout = {abs_value = 5898737587878323063}, value = 7142895759267058757, make_persistent = 229962186, aborted = -1785070586, type = 327499540, msize = 49744}
(gdb) bt
#0  0x6adc17ec in try_connect (h=0x64b9b0) at statistics_api.c:376
#1  0x6adc4353 in schedule_action (h=0x64b9b0) at statistics_api.c:943
#2  0x6adc3773 in _fu113__skip_log () at statistics_api.c:806
#3  0x61c0462b in client_delayed_retry (cls=0x64b558, tc=0x28fc80) at client.c:917
#4  0x61c379a5 in run_ready (rs=0x1db06a0, ws=0x649fd8) at scheduler.c:682
#5  0x61c38116 in GNUNET_SCHEDULER_run (task=0x61c42a0e <service_task>, task_cls=0x28fe18) at scheduler.c:870
#6  0x61c436f2 in GNUNET_SERVICE_run (argc=3, argv=0x1daa400, serviceName=0x40e09c "dht", opt=GNUNET_SERVICE_OPTION_NONE, task=0x4015a3 <run>, task_cls=0x0) at service.c:1712
#7  0x00401774 in main (argc=3, argv=0x1daa400) at gnunet-service-dht.c:184

Christian Grothoff

2012-04-26 14:24

manager   ~0005748

I've tired, this is gone (unable to reproduce with SVN HEAD).

Issue History

Date Modified Username Field Change
2012-03-09 14:26 Christian Grothoff New Issue
2012-03-09 14:27 Christian Grothoff Assigned To => Bart Polot
2012-03-09 14:27 Christian Grothoff Priority normal => urgent
2012-03-09 14:27 Christian Grothoff Status new => assigned
2012-03-09 14:27 Christian Grothoff Target Version => 0.9.3
2012-03-11 21:05 LRN Note Added: 0005596
2012-04-26 14:24 Christian Grothoff Note Added: 0005748
2012-04-26 14:24 Christian Grothoff Status assigned => resolved
2012-04-26 14:24 Christian Grothoff Fixed in Version => 0.9.3
2012-04-26 14:24 Christian Grothoff Resolution open => fixed
2012-04-26 14:24 Christian Grothoff Assigned To Bart Polot => Christian Grothoff
2012-06-02 19:15 Christian Grothoff Status resolved => closed