View Issue Details

IDProjectCategoryView StatusLast Update
0002079GNUnetcadet servicepublic2012-02-28 11:05
ReporterChristian Grothoff Assigned ToChristian Grothoff  
PriorityurgentSeveritycrashReproducibilityhave not tried
Status closedResolutionfixed 
Product VersionGit master 
Target Version0.9.2Fixed in Version0.9.2 
Summary0002079: use after free in GNUNET_MESH_tunnel_destroy (valgrind report)
DescriptionJan 17 16:44:07-717747 vpn-30062 DEBUG Peer 1A1L disconnected from tunnel.
Jan 17 16:44:07-729691 mesh-api-30062 DEBUG mesh: Destroying tunnel
==30062== Invalid read of size 8
==30062== at 0x52997C2: GNUNET_MESH_tunnel_destroy (mesh_api.c:1319)
==30062== by 0x4025B0: destroy_tunnel_task (gnunet-service-vpn.c:515)
==30062== by 0x5074681: run_ready (scheduler.c:684)
==30062== by 0x5074E66: GNUNET_SCHEDULER_run (scheduler.c:874)
==30062== by 0x5081F53: GNUNET_SERVICE_run (service.c:1712)
==30062== by 0x40919D: main (gnunet-service-vpn.c:2493)
==30062== Address 0x62cbb48 is 40 bytes inside a block of size 96 free'd
==30062== at 0x4C240FD: free (vg_replace_malloc.c:366)
==30062== by 0x50440EB: GNUNET_xfree_ (common_allocation.c:201)
==30062== by 0x5295FEA: destroy_tunnel (mesh_api.c:434)
==30062== by 0x5299820: GNUNET_MESH_tunnel_destroy (mesh_api.c:1327)
==30062== by 0x4025B0: destroy_tunnel_task (gnunet-service-vpn.c:515)
==30062== by 0x5074681: run_ready (scheduler.c:684)
==30062== by 0x5074E66: GNUNET_SCHEDULER_run (scheduler.c:874)
==30062== by 0x5081F53: GNUNET_SERVICE_run (service.c:1712)
==30062== by 0x40919D: main (gnunet-service-vpn.c:2493)
==30062==
==30062== Invalid read of size 4
==30062== at 0x52997CE: GNUNET_MESH_tunnel_destroy (mesh_api.c:1321)
==30062== by 0x4025B0: destroy_tunnel_task (gnunet-service-vpn.c:515)
==30062== by 0x5074681: run_ready (scheduler.c:684)
==30062== by 0x5074E66: GNUNET_SCHEDULER_run (scheduler.c:874)
==30062== by 0x5081F53: GNUNET_SERVICE_run (service.c:1712)
==30062== by 0x40919D: main (gnunet-service-vpn.c:2493)
==30062== Address 0x62cbb54 is 52 bytes inside a block of size 96 free'd
==30062== at 0x4C240FD: free (vg_replace_malloc.c:366)
==30062== by 0x50440EB: GNUNET_xfree_ (common_allocation.c:201)
==30062== by 0x5295FEA: destroy_tunnel (mesh_api.c:434)
==30062== by 0x5299820: GNUNET_MESH_tunnel_destroy (mesh_api.c:1327)
==30062== by 0x4025B0: destroy_tunnel_task (gnunet-service-vpn.c:515)
==30062== by 0x5074681: run_ready (scheduler.c:684)
==30062== by 0x5074E66: GNUNET_SCHEDULER_run (scheduler.c:874)
==30062== by 0x5081F53: GNUNET_SERVICE_run (service.c:1712)
==30062== by 0x40919D: main (gnunet-service-vpn.c:2493)
==30062==
==30062== Invalid read of size 4
==30062== at 0x5299808: GNUNET_MESH_tunnel_destroy (mesh_api.c:1326)
==30062== by 0x4025B0: destroy_tunnel_task (gnunet-service-vpn.c:515)
==30062== by 0x5074681: run_ready (scheduler.c:684)
==30062== by 0x5074E66: GNUNET_SCHEDULER_run (scheduler.c:874)
==30062== by 0x5081F53: GNUNET_SERVICE_run (service.c:1712)
==30062== by 0x40919D: main (gnunet-service-vpn.c:2493)
==30062== Address 0x62cbb50 is 48 bytes inside a block of size 96 free'd
==30062== at 0x4C240FD: free (vg_replace_malloc.c:366)
==30062== by 0x50440EB: GNUNET_xfree_ (common_allocation.c:201)
==30062== by 0x5295FEA: destroy_tunnel (mesh_api.c:434)
==30062== by 0x5299820: GNUNET_MESH_tunnel_destroy (mesh_api.c:1327)
==30062== by 0x4025B0: destroy_tunnel_task (gnunet-service-vpn.c:515)
==30062== by 0x5074681: run_ready (scheduler.c:684)
==30062== by 0x5074E66: GNUNET_SCHEDULER_run (scheduler.c:874)
==30062== by 0x5081F53: GNUNET_SERVICE_run (service.c:1712)
==30062== by 0x40919D: main (gnunet-service-vpn.c:2493)
==30062==
==30062== Invalid read of size 8
==30062== at 0x52958FF: destroy_tunnel (mesh_api.c:390)
==30062== by 0x5299820: GNUNET_MESH_tunnel_destroy (mesh_api.c:1327)
==30062== by 0x4025B0: destroy_tunnel_task (gnunet-service-vpn.c:515)
==30062== by 0x5074681: run_ready (scheduler.c:684)
==30062== by 0x5074E66: GNUNET_SCHEDULER_run (scheduler.c:874)
==30062== by 0x5081F53: GNUNET_SERVICE_run (service.c:1712)
==30062== by 0x40919D: main (gnunet-service-vpn.c:2493)
==30062== Address 0x62cbb48 is 40 bytes inside a block of size 96 free'd
==30062== at 0x4C240FD: free (vg_replace_malloc.c:366)
==30062== by 0x50440EB: GNUNET_xfree_ (common_allocation.c:201)
==30062== by 0x5295FEA: destroy_tunnel (mesh_api.c:434)
==30062== by 0x5299820: GNUNET_MESH_tunnel_destroy (mesh_api.c:1327)
==30062== by 0x4025B0: destroy_tunnel_task (gnunet-service-vpn.c:515)
==30062== by 0x5074681: run_ready (scheduler.c:684)
==30062== by 0x5074E66: GNUNET_SCHEDULER_run (scheduler.c:874)
==30062== by 0x5081F53: GNUNET_SERVICE_run (service.c:1712)
==30062== by 0x40919D: main (gnunet-service-vpn.c:2493)
==30062==
==30062== Invalid read of size 8
==30062== at 0x5295BF1: destroy_tunnel (mesh_api.c:415)
==30062== by 0x5299820: GNUNET_MESH_tunnel_destroy (mesh_api.c:1327)
==30062== by 0x4025B0: destroy_tunnel_task (gnunet-service-vpn.c:515)
==30062== by 0x5074681: run_ready (scheduler.c:684)
==30062== by 0x5074E66: GNUNET_SCHEDULER_run (scheduler.c:874)
==30062== by 0x5081F53: GNUNET_SERVICE_run (service.c:1712)
==30062== by 0x40919D: main (gnunet-service-vpn.c:2493)
==30062== Address 0x62cbb28 is 8 bytes inside a block of size 96 free'd
==30062== at 0x4C240FD: free (vg_replace_malloc.c:366)
==30062== by 0x50440EB: GNUNET_xfree_ (common_allocation.c:201)
==30062== by 0x5295FEA: destroy_tunnel (mesh_api.c:434)
==30062== by 0x5299820: GNUNET_MESH_tunnel_destroy (mesh_api.c:1327)
==30062== by 0x4025B0: destroy_tunnel_task (gnunet-service-vpn.c:515)
==30062== by 0x5074681: run_ready (scheduler.c:684)
==30062== by 0x5074E66: GNUNET_SCHEDULER_run (scheduler.c:874)
==30062== by 0x5081F53: GNUNET_SERVICE_run (service.c:1712)
==30062== by 0x40919D: main (gnunet-service-vpn.c:2493)
==30062==
Jan 17 16:44:07-730815 vpn-30062 ERROR Assertion failed at mesh_api.c:415.
TagsNo tags attached.

Activities

Christian Grothoff

2012-01-17 16:52

manager   ~0005274

Ok, better fix for tunnel destroy is now in SVN 19200.

Issue History

Date Modified Username Field Change
2012-01-17 16:47 Christian Grothoff New Issue
2012-01-17 16:47 Christian Grothoff Status new => assigned
2012-01-17 16:47 Christian Grothoff Assigned To => Bart Polot
2012-01-17 16:48 Christian Grothoff Assigned To Bart Polot => Christian Grothoff
2012-01-17 16:52 Christian Grothoff Note Added: 0005274
2012-01-17 16:52 Christian Grothoff Status assigned => resolved
2012-01-17 16:52 Christian Grothoff Fixed in Version => 0.9.2
2012-01-17 16:52 Christian Grothoff Resolution open => fixed
2012-01-17 16:53 Christian Grothoff Target Version => 0.9.2
2012-02-28 11:05 Christian Grothoff Status resolved => closed
2014-05-09 18:34 Christian Grothoff Category mesh service => cadet service