2018-12-11 21:59 CET

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0005491GNUnetcadet servicepublic2018-11-28 17:27
Reporterch3 
Assigned ToBart Polot 
PrioritynormalSeveritycrashReproducibilitysometimes
StatusassignedResolutionopen 
Product VersionSVN HEAD 
Target Version0.11.0Fixed in Version 
Summary0005491: Cadet crash (rps profiler)
DescriptionFound a core dump that was probably created during an rps profiler run.

Core was generated by `/home/ch3/.local/lib//gnunet/libexec/gnunet-service-cadet -c /tmp/testbedLkhYOJ'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f883d4b571d in GNUNET_CONTAINER_multihashmap_remove (map=0x0, key=0x1dcff68, value=0x1dcfee0)
    at container_multihashmap.c:476
476 map->modification_counter++;
(gdb) bt
#0 0x00007f883d4b571d in GNUNET_CONTAINER_multihashmap_remove (map=0x0, key=0x1dcff68, value=0x1dcfee0)
    at container_multihashmap.c:476
#1 0x000000000040704a in GSC_drop_loose_channel (h_port=0x1dcff68, ch=0x1dcfee0) at gnunet-service-cadet.c:1288
#2 0x0000000000408bb7 in channel_destroy (ch=0x1dcfee0) at gnunet-service-cadet_channel.c:505
#3 0x000000000040d2dd in GCCH_handle_remote_destroy (ch=0x1dcfee0, cti=0x0) at gnunet-service-cadet_channel.c:1690
#4 0x000000000041c32f in destroy_remaining_channels (cls=0x1b736d0, key=0, value=0x1dcfee0)
    at gnunet-service-cadet_tunnels.c:2311
#5 0x00007f883d4bae01 in GNUNET_CONTAINER_multihashmap32_iterate (map=0x1af43c0,
    it=0x41c303 <destroy_remaining_channels>, it_cls=0x1b736d0) at container_multihashmap32.c:265
#6 0x000000000041c3f8 in GCT_destroy_tunnel_now (t=0x1b736d0) at gnunet-service-cadet_tunnels.c:2326
#7 0x00000000004048d9 in destroy_tunnels_now (cls=0x0, pid=0x19a2250, value=0x19a2250) at gnunet-service-cadet.c:343
#8 0x00007f883d4b9134 in GNUNET_CONTAINER_multipeermap_iterate (map=0x18f30e0, it=0x404895 <destroy_tunnels_now>,
    it_cls=0x0) at container_multipeermap.c:363
#9 0x0000000000425f8c in GCP_iterate_all (iter=0x404895 <destroy_tunnels_now>, cls=0x0)
    at gnunet-service-cadet_peer.c:1180
#10 0x000000000040499d in shutdown_rest () at gnunet-service-cadet.c:392
#11 0x0000000000404b03 in shutdown_task (cls=0x0) at gnunet-service-cadet.c:434
#12 0x00007f883d4f4ca7 in GNUNET_SCHEDULER_do_work (sh=0x18fb1c0) at scheduler.c:2113
#13 0x00007f883d4f5b1f in select_loop (sh=0x18fb1c0, context=0x7fff37a1be60) at scheduler.c:2410
#14 0x00007f883d4f01be in GNUNET_SCHEDULER_run (task=0x7f883d4f6651 <service_main>, task_cls=0x7fff37a1c180)
    at scheduler.c:725
#15 0x00007f883d4fb80c in GNUNET_SERVICE_run_ (argc=3, argv=0x7fff37a1c708, service_name=0x4274c7 "cadet",
    options=GNUNET_SERVICE_OPTION_NONE, service_init_cb=0x4079b8 <run>, connect_cb=0x406c6e <client_connect_cb>,
    disconnect_cb=0x407545 <client_disconnect_cb>, cls=0x0, handlers=0x7fff37a1c2e0) at service.c:1879
#16 0x0000000000408461 in main (argc=3, argv=0x7fff37a1c708) at gnunet-service-cadet.c:1510
Steps To ReproduceProbably run rps profiler.
Additional Information(gdb) bt f
#0 0x00007f883d4b571d in GNUNET_CONTAINER_multihashmap_remove (map=0x0, key=0x1dcff68, value=0x1dcfee0)
    at container_multihashmap.c:476
        me = {sme = 0x7fff37a1ba90, bme = 0x7fff37a1ba90}
        i = 0
#1 0x000000000040704a in GSC_drop_loose_channel (h_port=0x1dcff68, ch=0x1dcfee0) at gnunet-service-cadet.c:1288
        __FUNCTION__ = "GSC_drop_loose_channel"
#2 0x0000000000408bb7 in channel_destroy (ch=0x1dcfee0) at gnunet-service-cadet_channel.c:505
        crm = 0x0
        __FUNCTION__ = "channel_destroy"
#3 0x000000000040d2dd in GCCH_handle_remote_destroy (ch=0x1dcfee0, cti=0x0) at gnunet-service-cadet_channel.c:1690
        ccc = 0x0
        __FUNCTION__ = "GCCH_handle_remote_destroy"
#4 0x000000000041c32f in destroy_remaining_channels (cls=0x1b736d0, key=0, value=0x1dcfee0)
    at gnunet-service-cadet_tunnels.c:2311
        ch = 0x1dcfee0
#5 0x00007f883d4bae01 in GNUNET_CONTAINER_multihashmap32_iterate (map=0x1af43c0,
    it=0x41c303 <destroy_remaining_channels>, it_cls=0x1b736d0) at container_multihashmap32.c:265
        e = 0x1c7e740
        i = 0
        count = 0
        ce = 0x1af43d8
        __FUNCTION__ = "GNUNET_CONTAINER_multihashmap32_iterate"
#6 0x000000000041c3f8 in GCT_destroy_tunnel_now (t=0x1b736d0) at gnunet-service-cadet_tunnels.c:2326
        __FUNCTION__ = "GCT_destroy_tunnel_now"
#7 0x00000000004048d9 in destroy_tunnels_now (cls=0x0, pid=0x19a2250, value=0x19a2250) at gnunet-service-cadet.c:343
        cp = 0x19a2250
        t = 0x1b736d0
#8 0x00007f883d4b9134 in GNUNET_CONTAINER_multipeermap_iterate (map=0x18f30e0, it=0x404895 <destroy_tunnels_now>,
    it_cls=0x0) at container_multipeermap.c:363
        sme = 0x19a18d0
        i = 25
        count = 10
        me = {sme = 0x19449e0, bme = 0x19449e0}
        ce = 0x18f30f8
        kc = {public_key = {
            q_y = "\b\000\000\000\000\000\000\000\272\255\360\r\272\255\360\r\250\000\000\000\000\000\000\000\240/\217\001\000\000\000"}}
        __FUNCTION__ = "GNUNET_CONTAINER_multipeermap_iterate"
#9 0x0000000000425f8c in GCP_iterate_all (iter=0x404895 <destroy_tunnels_now>, cls=0x0)
    at gnunet-service-cadet_peer.c:1180
No locals.
#10 0x000000000040499d in shutdown_rest () at gnunet-service-cadet.c:392
No locals.
#11 0x0000000000404b03 in shutdown_task (cls=0x0) at gnunet-service-cadet.c:434
        __FUNCTION__ = "shutdown_task"
#12 0x00007f883d4f4ca7 in GNUNET_SCHEDULER_do_work (sh=0x18fb1c0) at scheduler.c:2113
        p = GNUNET_SCHEDULER_PRIORITY_SHUTDOWN
        pos = 0x18fac50
        now = {abs_value_us = 1543402539123000}
        __FUNCTION__ = "GNUNET_SCHEDULER_do_work"
#13 0x00007f883d4f5b1f in select_loop (sh=0x18fb1c0, context=0x7fff37a1be60) at scheduler.c:2410
        time_remaining = {rel_value_us = 0}
        rs = 0x18f9b50
        ws = 0x18f9be0
        select_result = 0
        __FUNCTION__ = "select_loop"
#14 0x00007f883d4f01be in GNUNET_SCHEDULER_run (task=0x7f883d4f6651 <service_main>, task_cls=0x7fff37a1c180)
    at scheduler.c:725
        sh = 0x18fb1c0
        driver = 0x18f8520
        context = {scheduled_head = 0x1bc1040, scheduled_tail = 0x18f6680, timeout = {
            abs_value_us = 1543402539122996}}
#15 0x00007f883d4fb80c in GNUNET_SERVICE_run_ (argc=3, argv=0x7fff37a1c708, service_name=0x4274c7 "cadet",
    options=GNUNET_SERVICE_OPTION_NONE, service_init_cb=0x4079b8 <run>, connect_cb=0x406c6e <client_connect_cb>,
    disconnect_cb=0x407545 <client_disconnect_cb>, cls=0x0, handlers=0x7fff37a1c2e0) at service.c:1879
        sh = {cfg = 0x18f0c00, service_name = 0x4274c7 "cadet", service_init_cb = 0x4079b8 <run>,
          connect_cb = 0x406c6e <client_connect_cb>, disconnect_cb = 0x407545 <client_disconnect_cb>, cb_cls = 0x0,
          slc_head = 0x18f2ee0, slc_tail = 0x18f2ee0, clients_head = 0x0, clients_tail = 0x0, handlers = 0x18f0c20,
          task_cls = 0x0, v4_denied = 0x0, v6_denied = 0x0, v4_allowed = 0x18fb7d0, v6_allowed = 0x18fb930,
          match_uid = 0, match_gid = 1, got_shutdown = 0, options = GNUNET_SERVICE_OPTION_NONE,
          ready_confirm_fd = -1, ret = 0, require_found = 1}
        cfg_filename = 0x18f0be0 "~/.config/gnunet.conf"
        opt_cfg_filename = 0x18f0ee0 "/tmp/testbedLkhYOJ/94/config"
        loglev = 0x0
        xdg = 0x0
        logfile = 0x0
        do_daemonize = 0
        skew_offset = 0
        skew_variance = 9223372036854775814
        clock_offset = 1
        cfg = 0x18f0c00
        ret = 3
        err = 0
        service_options = {{shortName = 99 'c', name = 0x7f883d50a534 "config",
            argumentHelp = 0x7f883d50a4fa "FILENAME", description = 0x7f883d50a540 "use configuration file FILENAME",
            require_argument = 1, option_mandatory = 0, processor = 0x7f883d4d72e3 <set_filename>, cleaner = 0x0,
            scls = 0x7fff37a1c170}, {shortName = 100 'd', name = 0x7f883d50d764 "daemonize", argumentHelp = 0x0,
            description = 0x7f883d50d740 "do daemonize (detach from terminal)", require_argument = 0,
            option_mandatory = 0, processor = 0x7f883d4d6f24 <set_one>, cleaner = 0x0, scls = 0x7fff37a1c15c}, {
            shortName = 104 'h', name = 0x7f883d50a46e "help", argumentHelp = 0x0,
            description = 0x7f883d50a473 "print this help", require_argument = 0, option_mandatory = 0,
            processor = 0x7f883d4d67be <format_help>, cleaner = 0x0, scls = 0x0}, {shortName = 76 'L',
            name = 0x7f883d50a4be "log", argumentHelp = 0x7f883d50a4c2 "LOGLEVEL",
            description = 0x7f883d50a4d0 "configure logging to use LOGLEVEL", require_argument = 1,
            option_mandatory = 0, processor = 0x7f883d4d701d <set_string>, cleaner = 0x0, scls = 0x7fff37a1c168}, {
            shortName = 108 'l', name = 0x7f883d50a4f2 "logfile", argumentHelp = 0x7f883d50a4fa "FILENAME",
            description = 0x7f883d50a508 "configure logging to write logs to FILENAME", require_argument = 1,
            option_mandatory = 0, processor = 0x7f883d4d72e3 <set_filename>, cleaner = 0x0, scls = 0x7fff37a1c160}, {
            shortName = 118 'v', name = 0x7f883d50a350 "version", argumentHelp = 0x0,
            description = 0x7f883d50a358 "print the version number", require_argument = 0, option_mandatory = 0,
            processor = 0x7f883d4d66b6 <print_version>, cleaner = 0x0, scls = 0x7f883d50d76e}, {shortName = 0 '\000',
            name = 0x0, argumentHelp = 0x0, description = 0x0, require_argument = 0, option_mandatory = 0,
            processor = 0x0, cleaner = 0x0, scls = 0x0}}
        __FUNCTION__ = "GNUNET_SERVICE_run_"
#16 0x0000000000408461 in main (argc=3, argv=0x7fff37a1c708) at gnunet-service-cadet.c:1510
        mh = {{mv = 0x0, cb = 0x404c01 <handle_port_open>, cls = 0x0, type = 1022, expected_size = 68}, {mv = 0x0,
            cb = 0x404e7c <handle_port_close>, cls = 0x0, type = 1023, expected_size = 68}, {mv = 0x0,
            cb = 0x40522c <handle_channel_create>, cls = 0x0, type = 1024, expected_size = 108}, {mv = 0x0,
            cb = 0x40562b <handle_channel_destroy>, cls = 0x0, type = 1025, expected_size = 8}, {
            mv = 0x405888 <check_local_data>, cb = 0x405b11 <handle_local_data>, cls = 0x0, type = 1020,
            expected_size = 8}, {mv = 0x0, cb = 0x405d93 <handle_local_ack>, cls = 0x0, type = 1021,
            expected_size = 8}, {mv = 0x0, cb = 0x405ff2 <handle_get_peers>, cls = 0x0, type = 1036,
            expected_size = 4}, {mv = 0x0, cb = 0x4062f9 <handle_show_peer>, cls = 0x0, type = 1037,
            expected_size = 40}, {mv = 0x0, cb = 0x4064e3 <handle_info_tunnels>, cls = 0x0, type = 1032,
            expected_size = 4}, {mv = 0x0, cb = 0x40664b <handle_info_tunnel>, cls = 0x0, type = 1033,
            expected_size = 40}, {mv = 0x0, cb = 0x406976 <handle_info_dump>, cls = 0x0, type = 1038,
            expected_size = 4}, {mv = 0x0, cb = 0x0, cls = 0x0, type = 0, expected_size = 0}}
TagsNo tags attached.
Attached Files

-Relationships Relation Graph ] Dependency Graph ]
+Relationships

-Notes
There are no notes attached to this issue.
+Notes

-Issue History
Date Modified Username Field Change
2018-11-28 17:27 ch3 New Issue
2018-11-28 17:27 ch3 Status new => assigned
2018-11-28 17:27 ch3 Assigned To => Bart Polot
+Issue History