View Issue Details

IDProjectCategoryView StatusLast Update
0002502GNUnettransport servicepublic2012-11-05 18:33
ReporterLRN Assigned ToMatthias Wachs  
PrioritylowSeverityminorReproducibilityalways
Status closedResolutionunable to reproduce 
Product VersionGit master 
Target Version0.9.4Fixed in Version0.9.4 
Summary0002502: Crash in transport service during test_testing (old)
Descriptionr22578+1
(that +1 bit might be relevant, i'll try it again without it, and see if things improve)
Steps To Reproducerun test_testing in testing_old
Additional Information
Program received signal SIGSEGV, Segmentation fault.
0x62afde4b in GNUNET_SERVER_disconnect_notify (server=0x48eda0, callback=0x402dd0 <client_disconnect_notification>, callback_cls=0x0) at server.c:1263
1263      GNUNET_CONTAINER_DLL_insert (server->disconnect_notify_list_head,
(gdb) bt
#0  0x62afde4b in GNUNET_SERVER_disconnect_notify (server=0x48eda0, callback=0x402dd0 <client_disconnect_notification>, callback_cls=0x0) at server.c:1263
#1  0x00403e69 in GST_blacklist_start (server=0x48eda0) at gnunet-service-transport_blacklist.c:384
#2  0x00402b06 in key_generation_cb (cls=0x49e768, pk=0x49e8c8, emsg=0x0) at gnunet-service-transport.c:631
#3  0x62ade9a3 in async_return_key (cls=0x5a99c0, tc=0x28fc80) at crypto_rsa.c:974
#4  0x62af92a3 in run_ready (rs=0x49aea0, ws=0x49beb8) at scheduler.c:602
#5  0x62af9a4a in GNUNET_SCHEDULER_run (task=0x62b05c12 <service_task>, task_cls=0x28fe20) at scheduler.c:790
#6  0x62b0694e in GNUNET_SERVICE_run (argc=3, argv=0x48be18, service_name=0x41935a "transport", options=GNUNET_SERVICE_OPTION_NONE, task=0x402ba7 <run>,
    task_cls=0x0) at service.c:1795
#7  0x00402dc2 in main (argc=3, argv=0x48be18) at gnunet-service-transport.c:699
(gdb) p server
$1 = (struct GNUNET_SERVER_Handle *) 0x48eda0
(gdb) l
1258      struct NotifyList *n;
1259
1260      n = GNUNET_malloc (sizeof (struct NotifyList));
1261      n->callback = callback;
1262      n->callback_cls = callback_cls;
1263      GNUNET_CONTAINER_DLL_insert (server->disconnect_notify_list_head,
1264                                   server->disconnect_notify_list_tail,
1265                                   n);
1266    }
1267
(gdb) p server->disconnect_notify_list_head
$2 = (struct NotifyList *) 0x730072
(gdb) p server->disconnect_notify_list_tail
$3 = (struct NotifyList *) 0x4c005c
(gdb) p *server->disconnect_notify_list_head
Cannot access memory at address 0x730072
(gdb) p *server->disconnect_notify_list_tail
Cannot access memory at address 0x4c005c
(gdb) p n
$4 = (struct NotifyList *) 0x49ad78
(gdb) p *n
$5 = {next = 0x730072, prev = 0x0, callback = 0x402dd0 <client_disconnect_notification>, callback_cls = 0x0}
(gdb) p *server
$6 = {handlers = 0x498ec0, clients_head = 0x48cf38, clients_tail = 0x650073, disconnect_notify_list_head = 0x730072,
  disconnect_notify_list_tail = 0x4c005c, access = 0x4e0052, access_cls = 0x41005c, listen_sockets = 0x700070, idle_timeout = {
    rel_value = 27303570963497028}, listen_task = 27866499440705628, mst_create = 0x6c0061, mst_destroy = 0x54005c, mst_receive = 0x6d0065,
  mst_cls = 0x5c0070, require_found = -1163067392, in_soft_shutdown = -1163005939}
(gdb) p *server->handlers
$7 = {next = 0x5af7f0, handlers = 0x48eda0}
(gdb) p *server->clients_head
$8 = {next = 0x48eda0, prev = 0x49da60, mst = 0xbaadf00d, server = 0xbaadf00d, connection = 0xbaadf00d, restart_task = 13451671603782742029,
  warn_task = 13451671603782742029, warn_start = {abs_value = 13451671603782742029}, last_activity = {abs_value = 13451671603782742029}, th = {
    callback = 0xbaadf00d, callback_cls = 0xbaadf00d, cth = 0xf524f16}, idle_timeout = {rel_value = 20495618301017192}, reference_count = 4772080,
  suspended = 4769312, in_process_client_buffer = 4772168, shutdown_now = 4772296, receive_pending = 4772416, finish_pending_write = 4772528,
  persist = 4772576, is_monitor = 4769344, warn_type = 54064}
(gdb) p *server->clients_tail
Cannot access memory at address 0x650073
(gdb) p *server->access
Cannot access memory at address 0x4e0052
(gdb) p *server->access_cls
Attempt to dereference a generic pointer.
(gdb) p *server->listen_sockets
Cannot access memory at address 0x700070
(gdb) up
#1  0x00403e69 in GST_blacklist_start (server=0x48eda0) at gnunet-service-transport_blacklist.c:384
384       GNUNET_SERVER_disconnect_notify (server, &client_disconnect_notification,
(gdb) l
379      */
380     void
381     GST_blacklist_start (struct GNUNET_SERVER_Handle *server)
382     {
383       read_blacklist_file ();
384       GNUNET_SERVER_disconnect_notify (server, &client_disconnect_notification,
385                                        NULL);
386     }
387
388
(gdb) up
#2  0x00402b06 in key_generation_cb (cls=0x49e768, pk=0x49e8c8, emsg=0x0) at gnunet-service-transport.c:631
631       GST_blacklist_start (scx->server);
(gdb) l
626       }
627
628       /* start subsystems */
629       GST_hello_start (&process_hello_update, NULL);
630       GNUNET_assert (NULL != GST_hello_get());
631       GST_blacklist_start (scx->server);
632       GST_ats =
633           GNUNET_ATS_scheduling_init (GST_cfg, &ats_request_address_change, NULL);
634       GST_plugins_load (&plugin_env_receive_callback,
635                         &plugin_env_address_change_notification,
(gdb) p *scx
$9 = {server = 0x48eda0, c = 0x489c48}
(gdb) p *scx->c
$10 = {sections = 0x49a650, dirty = 0}
(gdb) p *scx->c->sections
$11 = {next = 0x49a590, entries = 0x49aa00, name = 0x5afb70 "vpn"}
TagsNo tags attached.

Activities

LRN

2012-07-18 22:35

reporter   ~0006259

No, removing +1 didn't fix it, so the fault isn't mine :)

Matthias Wachs

2012-07-19 09:27

reporter   ~0006260

server seems to be invalid ... thats strange because I am just passing it. Added checks.

Matthias Wachs

2012-07-19 15:30

reporter   ~0006263

Reverted to old hostkey API

Christian Grothoff

2012-09-17 12:54

manager   ~0006353

What's the status with this bug?

Matthias Wachs

2012-10-17 16:36

reporter   ~0006443

On my machine testing_old was passing the whole time ...
double checked it ... so no idea

LRN

2012-10-17 16:50

reporter   ~0006444

Yes, it's quite old. I haven't had any crashes in testing for some time now.

Matthias Wachs

2012-10-17 16:57

reporter   ~0006445

so ... shall we close it?

Issue History

Date Modified Username Field Change
2012-07-18 22:32 LRN New Issue
2012-07-18 22:32 LRN Status new => assigned
2012-07-18 22:32 LRN Assigned To => Matthias Wachs
2012-07-18 22:35 LRN Note Added: 0006259
2012-07-19 09:27 Matthias Wachs Note Added: 0006260
2012-07-19 15:30 Matthias Wachs Note Added: 0006263
2012-09-17 12:54 Christian Grothoff Note Added: 0006353
2012-09-17 12:54 Christian Grothoff Status assigned => feedback
2012-09-17 12:59 Christian Grothoff Priority normal => low
2012-10-17 16:36 Matthias Wachs Note Added: 0006443
2012-10-17 16:50 LRN Note Added: 0006444
2012-10-17 16:50 LRN Status feedback => assigned
2012-10-17 16:57 Matthias Wachs Note Added: 0006445
2012-10-17 17:00 Christian Grothoff Status assigned => resolved
2012-10-17 17:00 Christian Grothoff Fixed in Version => 0.9.4
2012-10-17 17:00 Christian Grothoff Resolution open => fixed
2012-10-17 17:00 Christian Grothoff Resolution fixed => unable to reproduce
2012-10-17 17:00 Christian Grothoff Target Version => 0.9.4
2012-11-05 18:33 Christian Grothoff Status resolved => closed