View Issue Details

IDProjectCategoryView StatusLast Update
0003696GNUnetcadet servicepublic2018-06-07 00:24
ReporterChristian Grothoff Assigned ToBart Polot  
PrioritynormalSeveritycrashReproducibilityhave not tried
Status closedResolutionduplicate 
Platformi7OSDebian GNU/LinuxOS Versionsqueeze
Product VersionGit master 
Target Version0.11.0pre66 
Summary0003696: segv in get_prev_hop()
DescriptionProgram terminated with signal SIGSEGV, Segmentation fault.
#0 0x000000000040eea8 in get_prev_hop (c=0x2576200) at gnunet-service-cadet_connection.c:728
728 if (0 == c->own_pos || c->path->length < 2)
(gdb) ba
#0 0x000000000040eea8 in get_prev_hop (c=0x2576200) at gnunet-service-cadet_connection.c:728
#1 0x00000000004169c6 in GCC_notify_broken (c=0x2576200, peer=0x2555030) at gnunet-service-cadet_connection.c:2966
#2 0x000000000042513a in notify_broken (cls=0x2555030, key=0x63a8c0 <hc>, value=0x2576200) at gnunet-service-cadet_peer.c:350
#3 0x00007f5f52c452af in GNUNET_CONTAINER_multihashmap_put (map=0x7f5f52c345f5 <mylog+201>, key=0x25757f0, value=0x7fffc8cef670,
    opt=GNUNET_CONTAINER_MULTIHASHMAPOPTION_REPLACE) at container_multihashmap.c:729
#4 0x00000000004257e9 in core_disconnect (cls=0x0, peer=0x2557090) at gnunet-service-cadet_peer.c:454
#5 0x00007f5f52802d08 in disconnect_and_free_peer_entry (cls=0x253c950, key=0x7fffc8ceef50, value=0x2557040) at core_api.c:389
#6 0x00007f5f52c467d9 in GNUNET_CONTAINER_multipeermap_get_multiple (map=0x761b065621f7ebc9, key=0xf8e500c43d6af28f,
    it=0xc5c97fd9544cbe1f, it_cls=0x42801b2f427e4ccb) at container_multipeermap.c:763
#7 0x00007f5f52808165 in GNUNET_CORE_disconnect (handle=0x253c950) at core_api.c:1259
#8 0x0000000000429dc1 in GCP_shutdown () at gnunet-service-cadet_peer.c:1699
#9 0x000000000042e4da in shutdown_task (cls=0x0, tc=0x7fffc8cef050) at gnunet-service-cadet.c:115
#10 0x00007f5f52c6d465 in GNUNET_SCHEDULER_run (task=0x253d2c0, task_cls=0x42506d <notify_broken>) at scheduler.c:811
#11 0x00007f5f52c6dd7f in GNUNET_SCHEDULER_cancel (task=0x253aea0) at scheduler.c:931
#12 0x00007f5f52c7c55f in GNUNET_SERVICE_run (argc=3, argv=0x7fffc8cef678, service_name=0x43527a "cadet",
    options=GNUNET_SERVICE_OPTION_NONE, task=0x42e56a <run>, task_cls=0x0) at service.c:1512
#13 0x000000000042e8d9 in main (argc=3, argv=0x7fffc8cef678) at gnunet-service-cadet.c:174
(gdb) print c
$1 = (const struct CadetConnection *) 0x2576200
(gdb) print c->path
$2 = (struct CadetPeerPath *) 0x100000001
TagsNo tags attached.

Relationships

has duplicate 0003796 closedBart Polot crash upon exit through gnunet-arm 
has duplicate 0003794 closedBart Polot cadet use after free valgrind report (on shutdown, with crash) 
related to 0003793 closedBart Polot gnunet9's CADET segfaults during cleanup on peer disconnect (SVN 35758) 

Activities

amatus

2015-03-01 23:21

developer   ~0008953

I hit this also.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x08051f43 in get_prev_hop (c=0x8b954b0)
    at gnunet-service-cadet_connection.c:728
728 gnunet-service-cadet_connection.c: No such file or directory.
(gdb) bt
#0 0x08051f43 in get_prev_hop (c=0x8b954b0)
    at gnunet-service-cadet_connection.c:728
#1 0x08056aac in GCC_notify_broken (c=0x8b954b0, peer=0x8af8e90)
    at gnunet-service-cadet_connection.c:2966
#2 0x0805fb80 in notify_broken (cls=0x8af8e90, key=0x806eec0 <hc>,
    value=0x8b954b0) at gnunet-service-cadet_peer.c:350
#3 0xb76825c0 in GNUNET_CONTAINER_multihashmap_iterate (map=0x8b318a0,
    it=0x805fb59 <notify_broken>, it_cls=0x8af8e90)
    at container_multihashmap.c:340
#4 0x08060192 in core_disconnect (cls=0x0, peer=0x8b40e80)
    at gnunet-service-cadet_peer.c:454
#5 0xb76495dc in disconnect_and_free_peer_entry (cls=0x8af6a70,
    key=0xbf903558, value=0x8b40e50) at core_api.c:389
#6 0xb764c1a7 in main_notify_handler (cls=0x8af6a70, msg=0xbf903550)
    at core_api.c:913
#7 0xb766fa42 in receive_task (cls=0x8af6b50, tc=0xbf9035e4) at client.c:618
#8 0xb76a73f0 in run_ready (rs=0x8b04db8, ws=0x8af59c0) at scheduler.c:587
#9 0xb76a7c91 in GNUNET_SCHEDULER_run (task=0xb76b27f5 <service_task>,
    task_cls=0xbf903810) at scheduler.c:816
#10 0xb76b4393 in GNUNET_SERVICE_run (argc=7, argv=0xbf903a04,
    service_name=0x8069158 "cadet", options=GNUNET_SERVICE_OPTION_NONE,
    task=0x8065d67 <run>, task_cls=0x0) at service.c:1503
#11 0x08065ff9 in main (argc=7, argv=0xbf903a04) at gnunet-service-cadet.c:174
(gdb) p c->path
$2 = (struct CadetPeerPath *) 0x15

amatus

2015-03-03 05:09

developer   ~0008973

This is easily reproduced by running a peer for a bit and then shutting it down.

Bart Polot

2015-10-02 05:56

manager   ~0009676

Duplicate of 0003794.

Issue History

Date Modified Username Field Change
2015-02-28 20:05 Christian Grothoff New Issue
2015-02-28 20:05 Christian Grothoff Status new => assigned
2015-02-28 20:05 Christian Grothoff Assigned To => Bart Polot
2015-03-01 23:21 amatus Note Added: 0008953
2015-03-03 05:09 amatus Note Added: 0008973
2015-03-20 21:25 Christian Grothoff Target Version => 0.11.0pre66
2015-05-26 14:12 Bart Polot Relationship added has duplicate 0003796
2015-06-08 10:50 Christian Grothoff Relationship added has duplicate 0003794
2015-06-08 10:50 Christian Grothoff Relationship added related to 0003793
2015-06-09 10:50 Christian Grothoff Assigned To Bart Polot => Christian Grothoff
2015-06-24 00:39 Christian Grothoff Assigned To Christian Grothoff => Bart Polot
2015-06-24 16:53 Bart Polot Status assigned => feedback
2015-10-02 05:56 Bart Polot Note Added: 0009676
2015-10-02 05:56 Bart Polot Status feedback => resolved
2015-10-02 05:56 Bart Polot Resolution open => duplicate
2018-06-07 00:24 Christian Grothoff Status resolved => closed