View Issue Details

IDProjectCategoryView StatusLast Update
0004609secusharesocialpublic2019-02-12 09:19
Reportertg Assigned ToChristian Grothoff  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Summary0004609: crash in CORE_disconnect()
DescriptionCORE_disconnect() segfaults when called soon after CONNECT_connect(),
see example below in test_social.c
when CORE_disconnect() is called at the very end, it works.
Additional Information(gdb) bt full
#0 0x000003711391085b in GNUNET_CONTAINER_multipeermap_iterate (map=0x30e64cfba0deb771, it=0x371136d7100 <disconnect_and_free_peer_entry>, it_cls=0x33558db420) at container_multipeermap.c:329
        count = 0
        i = 0
        me = {sme = 0x33558dca40, bme = 0x33558dca40}
        kc = {public_key = {q_y = " \264\215U3\000\000\000\000qm\023q\003\000\000q\267ޠ\373L\346\060\000wZ\024q\003\000"}}
        __FUNCTION__ = "GNUNET_CONTAINER_multipeermap_iterate"
#1 0x00000371136da2ba in GNUNET_CORE_disconnect (handle=0x33558db420) at core_api.c:931
        __FUNCTION__ = "GNUNET_CORE_disconnect"
#2 0x00000033535b1dbe in app_connected (cls=0x0) at test_social.c:409
        __FUNCTION__ = "app_connected"
...

(gdb) p *map
Cannot access memory at address 0x30e64cfba0deb771
TagsNo tags attached.

Activities

Christian Grothoff

2016-08-04 10:59

manager   ~0011005

If you use CORE_connecT, you also need to use CORE_disconnecT.

Christian Grothoff

2016-08-04 11:01

manager   ~0011006

Fixed in 37659.

Issue History

Date Modified Username Field Change
2016-08-04 01:24 tg New Issue
2016-08-04 01:24 tg Status new => assigned
2016-08-04 01:24 tg Assigned To => Christian Grothoff
2016-08-04 09:55 tg Additional Information Updated
2016-08-04 10:59 Christian Grothoff Note Added: 0011005
2016-08-04 11:01 Christian Grothoff Note Added: 0011006
2016-08-04 11:01 Christian Grothoff Status assigned => resolved
2016-08-04 11:01 Christian Grothoff Fixed in Version => 0.11.0pre66
2016-08-04 11:01 Christian Grothoff Resolution open => fixed
2016-08-04 11:01 Christian Grothoff Category core service => social service
2016-08-04 11:01 Christian Grothoff Product Version => Git master
2016-08-04 11:01 Christian Grothoff Target Version => 0.11.0pre66
2018-06-07 00:24 Christian Grothoff Status resolved => closed
2019-02-12 09:17 Christian Grothoff Project GNUnet => secushare
2019-02-12 09:17 Christian Grothoff Category social service => General
2019-02-12 09:19 Christian Grothoff Category General => social