View Issue Details

IDProjectCategoryView StatusLast Update
0003246GNUnetset servicepublic2018-06-07 00:25
ReporterSree Harsha Totakura Assigned ToFlorian Dold  
PrioritynormalSeveritycrashReproducibilityunable to reproduce
Status closedResolutionunable to reproduce 
Product VersionGit master 
Target Version0.11.0pre66Fixed in Version0.11.0pre66 
Summary0003246: Segfault at gnunet-service-set.c:1344
DescriptionCore was generated by `/usr/local/lib/gnunet/libexec/gnunet-service-set -c /home/totakura/.config/gnun'.
Program terminated with signal 11, Segmentation fault.
#0 0x0000000000406e06 in dispatch_p2p_message (cls=0x0, channel=0xe97850, channel_ctx=0xe97878,
    message=0x7fffa6b5f378) at gnunet-service-set.c:1344

warning: Source file is more recent than executable.
1344 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
(gdb) bt
#0 0x0000000000406e06 in dispatch_p2p_message (cls=0x0, channel=0xe97850, channel_ctx=0xe97878,
    message=0x7fffa6b5f378) at gnunet-service-set.c:1344
#1 0x00007f11e8932e25 in process_incoming_data (h=0xe97650, message=0x7fffa6b5f370) at mesh_api.c:867
#2 0x00007f11e893349b in msg_received (cls=0xe97650, msg=0x7fffa6b5f370) at mesh_api.c:1040
#3 0x00007f11e8d5704a in GNUNET_CLIENT_receive (client=0x0, handler=0x7fffa6b5f480, handler_cls=0xe83d60,
    timeout=...) at client.c:626
#4 0x00007f11e8d8fd5e in check_lifeness () at scheduler.c:687
#5 0x00007f11e8d905ec in GNUNET_SCHEDULER_get_reason () at scheduler.c:863
#6 0x00007f11e8d9e4e7 in GNUNET_SERVICE_run (argc=3, argv=0x7fffa6b5fac8,
    service_name=0x40f043 "ssage (type: %u)\n", options=GNUNET_SERVICE_OPTION_NONE,
    task=0x406ead <dispatch_p2p_message+266>, task_cls=0x0) at service.c:1497
#7 0x0000000000406fff in run (cls=0x300401e20, server=0x7fffa6b5fac8, cfg=0x406fff <run+223>)
    at gnunet-service-set.c:1415
#8 0x00007f11e80a4995 in __libc_start_main (main=0x406fcc <run+172>, argc=3, ubp_av=0x7fffa6b5fac8,
    init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffa6b5fab8)
    at libc-start.c:276
#9 0x0000000000401e49 in _start ()
(gdb)
Steps To Reproduce(gdb) bt full
#0 0x0000000000406e06 in dispatch_p2p_message (cls=0x0, channel=0xe97850, channel_ctx=0xe97878,
    message=0x7fffa6b5f378) at gnunet-service-set.c:1344
        log_line = 8
        log_call_enabled = 0
        op = 0x53500e81e50
        ret = 0
        __FUNCTION__ = "dispatch_p2p_message"
#1 0x00007f11e8932e25 in process_incoming_data (h=0xe97650, message=0x7fffa6b5f370) at mesh_api.c:867
        payload = 0x7fffa6b5f378
        handler = 0x40f480 <server_handlers.11713+192>
        dmsg = 0x7fffa6b5f370
        ch = 0xe97850
        size = 80
        i = 0
        type = 581
        __FUNCTION__ = "process_incoming_data"
#2 0x00007f11e893349b in msg_received (cls=0xe97650, msg=0x7fffa6b5f370) at mesh_api.c:1040
        h = 0xe97650
        type = 285
        __FUNCTION__ = "msg_received"
#3 0x00007f11e8d5704a in GNUNET_CLIENT_receive (client=0x0, handler=0x7fffa6b5f480, handler_cls=0xe83d60,
    timeout=...) at client.c:626
        __FUNCTION__ = "GNUNET_CLIENT_receive"
#4 0x00007f11e8d8fd5e in check_lifeness () at scheduler.c:687
        t = 0x300000000
#5 0x00007f11e8d905ec in GNUNET_SCHEDULER_get_reason () at scheduler.c:863
        log_line = 0
        log_call_enabled = -1
        __FUNCTION__ = "GNUNET_SCHEDULER_get_reason"
#6 0x00007f11e8d9e4e7 in GNUNET_SERVICE_run (argc=3, argv=0x7fffa6b5fac8,
    service_name=0x40f043 "ssage (type: %u)\n", options=GNUNET_SERVICE_OPTION_NONE,
    task=0x406ead <dispatch_p2p_message+266>, task_cls=0x0) at service.c:1497
        err = 0
        ret = 3
        cfg_fn = 0xe7f720 "~/.config/gnunet.conf"
        opt_cfg_fn = 0xe7f870 "/home/totakura/.config/gnunet.conf"
        loglev = 0x0
        logfile = 0x0
        do_daemonize = 0
        i = 4222637
        skew_offset = 139714900011131
        skew_variance = 139714902213096
        clock_offset = 4202016
        sctx = {cfg = 0xe7f740, server = 0xe97320, addrs = 0x0, service_name = 0x40f043 "ssage (type: %u)\n",
          task = 0x406ead <dispatch_p2p_message+266>, task_cls = 0x0, v4_denied = 0x0, v6_denied = 0x0,
          v4_allowed = 0xe828d0, v6_allowed = 0xe968e0, my_handlers = 0xe8f6a0, addrlens = 0x0, lsocks = 0xe82900,
          shutdown_task = 4, timeout = {rel_value_us = 18446744073709551615}, ret = 1, ready_confirm_fd = -1,
          require_found = 1, match_uid = 1, match_gid = 1, options = GNUNET_SERVICE_OPTION_NONE}
        cfg = 0xe7f740
        xdg = 0x0
        service_options = {{shortName = 99 'c', name = 0x7f11e8dabe6d "minal)",
            argumentHelp = 0x7f11e8dabe74 "help", description = 0x7f11e8dabe80 "his help", require_argument = 1,
            processor = 0x7f11e8d7e113 <GNUNET_GETOPT_set_filename+43>, scls = 0x7fffa6b5f8e8}, {
            shortName = 100 'd', name = 0x7f11e8dabea0 "e logging to use LOGLEVEL", argumentHelp = 0x0,
            description = 0x7f11e8dabeb0 " LOGLEVEL", require_argument = 0,
            processor = 0x7f11e8d7e0e6 <GNUNET_GETOPT_set_string+275>, scls = 0x7fffa6b5f8d4}, {shortName = 104 'h',
            name = 0x7f11e8dabed4 "igure logging to write logs to LOGFILE", argumentHelp = 0x0,
            description = 0x7f11e8dabed9 " logging to write logs to LOGFILE", require_argument = 0,
            processor = 0x7f11e8d7dbad <GNUNET_GETOPT_format_help_+320>, scls = 0x0}, {shortName = 76 'L',
            name = 0x7f11e8dabee9 "e logs to LOGFILE", argumentHelp = 0x7f11e8dabeed "gs to LOGFILE",
            description = 0x7f11e8dabef8 "LE", require_argument = 1,
            processor = 0x7f11e8d7e113 <GNUNET_GETOPT_set_filename+43>, scls = 0x7fffa6b5f8e0}, {
            shortName = 108 'l', name = 0x7f11e8dabf1a "r", argumentHelp = 0x7f11e8dabf22 " svn-r31747M",
            description = 0x7f11e8dabf30 "DG_CONFIG_HOME", require_argument = 1,
            processor = 0x7f11e8d7e113 <GNUNET_GETOPT_set_filename+43>, scls = 0x7fffa6b5f8d8}, {
---Type <return> to continue, or q <return> to quit---
            shortName = 118 'v', name = 0x7f11e8dabf5b "ig/gnunet.conf", argumentHelp = 0x0,
            description = 0x7f11e8dabf63 "t.conf", require_argument = 0,
            processor = 0x7f11e8d7db67 <GNUNET_GETOPT_format_help_+250>, scls = 0x7f11e8dabf7c}, {
            shortName = 0 '\000', name = 0x0, argumentHelp = 0x0, description = 0x0, require_argument = 0,
            processor = 0x0, scls = 0x0}}
        __FUNCTION__ = "GNUNET_SERVICE_run"
#7 0x0000000000406fff in run (cls=0x300401e20, server=0x7fffa6b5fac8, cfg=0x406fff <run+223>)
    at gnunet-service-set.c:1415
        log_line = 0
        log_call_enabled = -1
        server_handlers = {{callback = 0x405ddd <handle_client_accept>, callback_cls = 0x0, type = 576,
            expected_size = 14}, {callback = 0x405a7e <handle_client_iter_ack>, callback_cls = 0x0, type = 571,
            expected_size = 0}, {callback = 0x40513c <handle_client_add_remove>, callback_cls = 0x0, type = 573,
            expected_size = 0}, {callback = 0x4044f2 <handle_client_create_set>, callback_cls = 0x0, type = 580,
            expected_size = 6}, {callback = 0x4042bd <handle_client_iterate>, callback_cls = 0x0, type = 587,
            expected_size = 4}, {callback = 0x405612 <handle_client_evaluate>, callback_cls = 0x0, type = 577,
            expected_size = 0}, {callback = 0x404952 <handle_client_listen>, callback_cls = 0x0, type = 575,
            expected_size = 72}, {callback = 0x404fb2 <handle_client_reject>, callback_cls = 0x0, type = 569,
            expected_size = 14}, {callback = 0x40513c <handle_client_add_remove>, callback_cls = 0x0, type = 574,
            expected_size = 0}, {callback = 0x405c12 <handle_client_cancel>, callback_cls = 0x0, type = 570,
            expected_size = 8}, {callback = 0x0, callback_cls = 0x0, type = 0, expected_size = 0}}
        mesh_handlers = {{callback = 0x406da3 <dispatch_p2p_message>, type = 581, expected_size = 0}, {
            callback = 0x406da3 <dispatch_p2p_message>, type = 583, expected_size = 0}, {
            callback = 0x406da3 <dispatch_p2p_message>, type = 584, expected_size = 0}, {
            callback = 0x406da3 <dispatch_p2p_message>, type = 586, expected_size = 0}, {
            callback = 0x406da3 <dispatch_p2p_message>, type = 585, expected_size = 0}, {
            callback = 0x406da3 <dispatch_p2p_message>, type = 582, expected_size = 0}, {
            callback = 0x406da3 <dispatch_p2p_message>, type = 591, expected_size = 0}, {
            callback = 0x406da3 <dispatch_p2p_message>, type = 592, expected_size = 0}, {
            callback = 0x406da3 <dispatch_p2p_message>, type = 593, expected_size = 0}, {callback = 0x0, type = 0,
            expected_size = 0}}
        mesh_ports = {19, 0}
        __FUNCTION__ = "run"
#8 0x00007f11e80a4995 in __libc_start_main (main=0x406fcc <run+172>, argc=3, ubp_av=0x7fffa6b5fac8,
    init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffa6b5fab8)
    at libc-start.c:276
        result = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, -4246749350469180436, 4202016, 140735990332096, 0, 0,
                4246840146144125932, 4265845510125118444}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0,
              0x40eb10 <strata_estimator_destroy+8>, 0x7fffa6b5fac8}, data = {prev = 0x0, cleanup = 0x0,
              canceltype = 4254480}}}
        not_first_call = <optimized out>
#9 0x0000000000401e49 in _start ()
No symbol table info available.
(gdb)
TagsNo tags attached.

Activities

Florian Dold

2014-01-06 22:17

developer   ~0007965

I have no idea how that can happen / can't reproduce it.

As GDB says "Source file is more recent than executable.", there is a chance that this was produced by an older version, as there was a bug in the lines below the logging statement.

Issue History

Date Modified Username Field Change
2013-12-28 14:40 Sree Harsha Totakura New Issue
2013-12-28 14:40 Sree Harsha Totakura Status new => assigned
2013-12-28 14:40 Sree Harsha Totakura Assigned To => Florian Dold
2014-01-06 22:17 Florian Dold Note Added: 0007965
2014-01-06 22:17 Florian Dold Status assigned => feedback
2014-04-11 15:21 Christian Grothoff Target Version => 0.11.0pre66
2014-07-04 23:53 Sree Harsha Totakura Reproducibility have not tried => unable to reproduce
2014-07-04 23:53 Sree Harsha Totakura Status feedback => resolved
2014-07-04 23:53 Sree Harsha Totakura Resolution open => unable to reproduce
2014-07-04 23:53 Sree Harsha Totakura Fixed in Version => 0.11.0pre66
2018-06-07 00:25 Christian Grothoff Status resolved => closed