View Issue Details

IDProjectCategoryView StatusLast Update
0002461GNUnettesting librarypublic2012-11-05 18:34
ReporterLRN Assigned ToChristian Grothoff  
PrioritynoneSeveritycrashReproducibilityhave not tried
Status closedResolutionwon't fix 
Product VersionGit master 
Target Version0.9.4Fixed in Version0.9.4 
Summary0002461: Crash in testing library when ending test_stream_2peers badly
DescriptionTries to work with freed pointers (0xdf0adba)
Additional Information
Program received signal SIGSEGV, Segmentation fault.
0x61759629 in GNUNET_TESTING_daemons_stop (pg=0x4b7b50, timeout=..., cb=0x61759ee9 <internal_shutdown_callback>, cb_cls=0x1d2fbd0) at testing_group.c:6961
6961        GNUNET_CONTAINER_DLL_remove (pg->cc_head, pg->cc_tail, cc);
(gdb) bt
#0  0x61759629 in GNUNET_TESTING_daemons_stop (pg=0x4b7b50, timeout=..., cb=0x61759ee9 <internal_shutdown_callback>, cb_cls=0x1d2fbd0) at testing_group.c:6961
#1  0x6175a005 in end_badly (cls=0x1d2fbd0, tc=0x28fc60) at testing_peergroup.c:309
#2  0x62af79ab in run_ready (rs=0x4b9fe8, ws=0x4bb000) at scheduler.c:608
#3  0x62af8152 in GNUNET_SCHEDULER_run (task=0x62af1268 <program_main>, task_cls=0x28fdec) at scheduler.c:796
#4  0x62af1a91 in GNUNET_PROGRAM_run2 (argc=5, argv=0x28fee8, binaryName=0x405211 "test-stream-2peers", binaryHelp=0x40520a "nohelp", options=0x28fecc, task=0x402ccf <run>, task_cls=0x0, run_without_scheduler=0)
    at program.c:261
#5  0x62af1b99 in GNUNET_PROGRAM_run (argc=5, argv=0x28fee8, binaryName=0x405211 "test-stream-2peers", binaryHelp=0x40520a "nohelp", options=0x28fecc, task=0x402ccf <run>, task_cls=0x0) at program.c:296
#6  0x00402f53 in main (argc=1, argv=0x1d29ce0) at test_stream_2peers.c:557
(gdb) up
#1  0x6175a005 in end_badly (cls=0x1d2fbd0, tc=0x28fc60) at testing_peergroup.c:309
309       GNUNET_TESTING_daemons_stop (pg_start_ctx->pg,
(gdb) do
#0  0x61759629 in GNUNET_TESTING_daemons_stop (pg=0x4b7b50, timeout=..., cb=0x61759ee9 <internal_shutdown_callback>, cb_cls=0x1d2fbd0) at testing_group.c:6961
6961        GNUNET_CONTAINER_DLL_remove (pg->cc_head, pg->cc_tail, cc);
(gdb) p pg
$1 = (struct GNUNET_TESTING_PeerGroup *) 0x4b7b50
(gdb) p/x *pg
$2 = {cfg = 0xdf001ab, cc_head = 0xdf0adba, cc_tail = 0xdf0adba, notify_connection = 0xdf0adba, notify_connection_cls = 0xdf0adba, hosts = 0xdf0adba, num_hosts = 0xdf0adba, peers = 0xdf0adba, total = 0xdf0adba,
  max_timeout = {abs_value = 0xdf0adba0df0adba}, starting = 0xdf0adba, started = 0xdf0adba, max_outstanding_connections = 0xdf0adba, max_concurrent_ssh = 0xdf0adba, outstanding_connects = 0xdf0adba,
  remaining_hellos = 0xdf0adba, total_connects_scheduled = 0xdf0adba, hostkey_data = 0xdf0adba, ssh_head = 0xdf0adba, ssh_tail = 0xdf0adba, stop_connects = 0xdf0adba, ct_ctx = {remaining_connections = 0xdf0adba,
    pg = 0xdf0adba, connect_timeout = {rel_value = 0xdf0adba0df0adba}, connect_attempts = 0xdf0adba, notify_connections_done = 0xdf0adba, notify_cls = 0xdf0adba}}
(gdb) p cc
$3 = (struct ConnectContext *) 0xdf0adba
(gdb) up
#1  0x6175a005 in end_badly (cls=0x1d2fbd0, tc=0x28fc60) at testing_peergroup.c:309
309       GNUNET_TESTING_daemons_stop (pg_start_ctx->pg,
(gdb) l
304
305       GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
306                   "Failing peer group startup with error: `%s'!\n",
307                   pg_start_ctx->fail_reason);
308
309       GNUNET_TESTING_daemons_stop (pg_start_ctx->pg,
310                                    GNUNET_TIME_absolute_get_remaining
311                                    (pg_start_ctx->timeout),
312                                    &internal_shutdown_callback, pg_start_ctx);
313
(gdb) p/x *pg_start_ctx
$4 = {pg = 0x4b7b50, cfg = 0x1d34bb8, total = 0x2, peers_left = 0x0, max_concurrent_connections = 0x32, connect_attempts = 0x3, connect_timeout = {rel_value = 0x7530}, max_concurrent_ssh = 0xa, timeout = {
    abs_value = 0x13823b153f5}, connect_cb = 0x0, peergroup_cb = 0x4026f9, cls = 0x0, hostnames = 0x0, topology = 0x0, topology_percentage = 0x0, topology_probability = 0x0, restrict_topology = 0x9,
  restrict_transports = 0x0, connect_topology = 0x0, connect_topology_option = 0x0, connect_topology_option_modifier = 0x0, verbose = 0x1, hostkey_meter = 0x1d3a0e0, peer_start_meter = 0x1d3a120, connect_meter = 0x1d5aee8,
  die_task = 0x29, fail_reason = 0x1d54c28, expected_connections = 0x2, connect_start_time = {abs_value = 0x138238cba7d}, total_connections = 0x0, failed_connections = 0x0, topology_output_file = 0x0}
TagsNo tags attached.

Activities

LRN

2012-06-25 19:20

reporter   ~0006143

The log says:
WARNING Failing peer group startup with error: `from connect topology (timeout)'!

Sree Harsha Totakura

2012-06-26 17:28

updater   ~0006155

This bug is related to the old testing code which will be largely replaced soon.

Christian Grothoff

2012-09-16 13:30

manager   ~0006349

Old testing is history, so this bug should no longer be relevant (stream test now uses testbed).

Issue History

Date Modified Username Field Change
2012-06-25 19:19 LRN New Issue
2012-06-25 19:19 LRN Status new => assigned
2012-06-25 19:19 LRN Assigned To => Sree Harsha Totakura
2012-06-25 19:20 LRN Note Added: 0006143
2012-06-26 17:28 Sree Harsha Totakura Note Added: 0006155
2012-06-26 17:28 Sree Harsha Totakura Status assigned => acknowledged
2012-06-26 23:31 Christian Grothoff Assigned To Sree Harsha Totakura =>
2012-06-26 23:31 Christian Grothoff Priority normal => none
2012-06-26 23:31 Christian Grothoff Status acknowledged => confirmed
2012-09-16 13:30 Christian Grothoff Note Added: 0006349
2012-09-16 13:30 Christian Grothoff Assigned To => Christian Grothoff
2012-09-16 13:30 Christian Grothoff Status confirmed => resolved
2012-09-16 13:30 Christian Grothoff Resolution open => won't fix
2012-09-16 13:30 Christian Grothoff Fixed in Version => 0.9.4
2012-09-16 13:30 Christian Grothoff Target Version => 0.9.4
2012-11-05 18:34 Christian Grothoff Status resolved => closed