View Issue Details

IDProjectCategoryView StatusLast Update
0001649GNUnettopology daemonpublic2011-04-28 21:11
ReporterChristian Grothoff Assigned ToChristian Grothoff  
PrioritynormalSeveritycrashReproducibilityhave not tried
Status closedResolutionunable to reproduce 
Summary0001649: segfault (NPE)
DescriptionFound a 'core' with the following trace after running 'make check' (which passed):

Core was generated by `gnunet-daemon-topology -c /home/grothoff/svn/gnunet/src/hostlist/test_learning_'.
Program terminated with signal 11, Segmentation fault.
#0 0x4004a08e in GNUNET_CLIENT_notify_transmit_ready (sock=0x0, size=80, timeout={rel_value = 18446744073709551615}, auto_retry=0,
    notify=0x400231a3 <transmit_message>, notify_cls=0x8e01a30) at client.c:870
870 if (NULL != sock->th)
(gdb) ba
#0 0x4004a08e in GNUNET_CLIENT_notify_transmit_ready (sock=0x0, size=80, timeout={rel_value = 18446744073709551615}, auto_retry=0,
    notify=0x400231a3 <transmit_message>, notify_cls=0x8e01a30) at client.c:870
#1 0x40023b13 in trigger_next_request (h=0x8e01a30, ignore_currently_down=0) at core_api.c:790
#2 0x4002679f in GNUNET_CORE_peer_request_connect (h=0x8e01a30, timeout={rel_value = 60000}, peer=0x8e09b40,
    cont=0x8049745 <connect_completed_callback>, cont_cls=0x8e09b40) at core_api.c:1755
#3 0x08049eb7 in attempt_connect (pos=0x8e09b40) at gnunet-daemon-topology.c:416
#4 0x0804a787 in try_add_peers (cls=0x0, pid=0xbfd571c0, value=0x8e09b40) at gnunet-daemon-topology.c:758
#5 0x40054d89 in GNUNET_CONTAINER_multihashmap_iterate (map=0x8e01880, it=0x804a770 <try_add_peers>, it_cls=0x0)
    at container_multihashmap.c:211
#6 0x0804a943 in disconnect_notify (cls=0x0, peer=0x8e097e8) at gnunet-daemon-topology.c:811
#7 0x400223e6 in disconnect_and_free_peer_entry (cls=0x8e01a30, key=0xbfd572b0, value=0x8e097e0) at core_api.c:435
#8 0x40054d89 in GNUNET_CONTAINER_multihashmap_iterate (map=0x8e01ae0, it=0x40022002 <disconnect_and_free_peer_entry>, it_cls=0x8e01a30)
    at container_multihashmap.c:211
#9 0x400226a7 in reconnect_later (h=0x8e01a30) at core_api.c:469
#10 0x40023b79 in main_notify_handler (cls=0x8e01a30, msg=0x0) at core_api.c:833
#11 0x400493ca in receive_helper (cls=0x8e01e30, buf=0x0, available=0, addr=0x0, addrlen=0, errCode=0) at client.c:485
#12 0x4004ff46 in signal_timeout (sh=0x8e01da0) at connection.c:1098
#13 0x4005019b in receive_ready (cls=0x8e01da0, tc=0xbfd6757c) at connection.c:1156
#14 0x40069494 in run_ready (rs=0x8dfb2b0, ws=0x8dfedd8) at scheduler.c:643
#15 0x40069a1e in GNUNET_SCHEDULER_run (task=0x4006564c <program_main>, task_cls=0xbfd678d0) at scheduler.c:789
#16 0x40065d75 in GNUNET_PROGRAM_run (argc=3, argv=0xbfd67a14, binaryName=0x804c4b0 "topology",
    binaryHelp=0x804c59c "GNUnet topology control (maintaining P2P mesh and F2F constraints)", options=0x804c5e0, task=0x804ba42 <run>,
    task_cls=0x0) at program.c:227
#17 0x0804bd9d in main (argc=3, argv=0xbfd67a14) at gnunet-daemon-topology.c:1437
Additional Information(gdb) bt full
#0 0x4004a08e in GNUNET_CLIENT_notify_transmit_ready (sock=0x0, size=80, timeout={rel_value = 18446744073709551615}, auto_retry=0,
    notify=0x400231a3 <transmit_message>, notify_cls=0x8e01a30) at client.c:870
        th = (struct GNUNET_CLIENT_TransmitHandle *) 0x8e01f98
#1 0x40023b13 in trigger_next_request (h=0x8e01a30, ignore_currently_down=0) at core_api.c:790
        msize = 80
#2 0x4002679f in GNUNET_CORE_peer_request_connect (h=0x8e01a30, timeout={rel_value = 60000}, peer=0x8e09b40,
    cont=0x8049745 <connect_completed_callback>, cont_cls=0x8e09b40) at core_api.c:1755
        ret = (struct GNUNET_CORE_PeerRequestHandle *) 0x8e01f98
        cm = (struct ControlMessage *) 0x8e096a8
        msg = (struct ConnectMessage *) 0x8e096bc
#3 0x08049eb7 in attempt_connect (pos=0x8e09b40) at gnunet-daemon-topology.c:416
        rem = {rel_value = 15000}
#4 0x0804a787 in try_add_peers (cls=0x0, pid=0xbfd571c0, value=0x8e09b40) at gnunet-daemon-topology.c:758
        pos = (struct Peer *) 0x8e09b40
#5 0x40054d89 in GNUNET_CONTAINER_multihashmap_iterate (map=0x8e01880, it=0x804a770 <try_add_peers>, it_cls=0x0)
    at container_multihashmap.c:211
        count = 0
        i = 30
        e = (struct MapEntry *) 0x8e09ce0
        n = (struct MapEntry *) 0x0
        kc = {bits = {1818112446, 1757136455, 2289683019, 1716964244, 4246808623, 1977729254, 3132200273, 1249149962, 2212132409,
    680427869, 3026203102, 2023575860, 3041358431, 47736191, 1487973286, 1347376921}}
#6 0x0804a943 in disconnect_notify (cls=0x0, peer=0x8e097e8) at gnunet-daemon-topology.c:811
        pos = (struct Peer *) 0x8e09b40
#7 0x400223e6 in disconnect_and_free_peer_entry (cls=0x8e01a30, key=0xbfd572b0, value=0x8e097e0) at core_api.c:435
        zero = {value__ = 0}
        h = (struct GNUNET_CORE_Handle *) 0x8e01a30
        th = (struct GNUNET_CORE_TransmitHandle *) 0x0
        pr = (struct PeerRecord *) 0x8e097e0
        pcic = (GNUNET_CORE_PeerConfigurationInfoCallback) 0
#8 0x40054d89 in GNUNET_CONTAINER_multihashmap_iterate (map=0x8e01ae0, it=0x40022002 <disconnect_and_free_peer_entry>, it_cls=0x8e01a30)
    at container_multihashmap.c:211
        count = 1
        i = 62
        e = (struct MapEntry *) 0x8e09858
        n = (struct MapEntry *) 0x0
        kc = {bits = {1818112446, 1757136455, 2289683019, 1716964244, 4246808623, 1977729254, 3132200273, 1249149962, 2212132409,
    680427869, 3026203102, 2023575860, 3041358431, 47736191, 1487973286, 1347376921}}
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2011-01-24 22:38 Christian Grothoff New Issue
2011-04-28 21:11 Christian Grothoff Assigned To => Christian Grothoff
2011-04-28 21:11 Christian Grothoff Status new => closed
2011-04-28 21:11 Christian Grothoff Resolution open => unable to reproduce