View Issue Details

IDProjectCategoryView StatusLast Update
0003125GNUnetfile-sharing servicepublic2013-12-24 20:54
Reporterbratao Assigned ToChristian Grothoff  
PrioritynormalSeveritycrashReproducibilitysometimes
Status closedResolutionfixed 
PlatformW32OSWindowsOS Version8.1
Target Version0.10.0 
Summary0003125: gnunet-service-fs crashes on reset_mesh
Descriptiongnunet-service-fs periodically crashes on reset_mesh.
This happened after finishing a file transfer between two peers.
Additional InformationProgram received signal SIGSEGV, Segmentation fault.
[Switching to Thread 7692.0xd7c]
0x67546160 in GNUNET_MESH_channel_destroy (channel=0x0) at mesh_api.c:1464
1464 h = channel->mesh;
(gdb) bt full
#0 0x67546160 in GNUNET_MESH_channel_destroy (channel=0x0) at mesh_api.c:1464
        h = 0x28fb78
        msg = {header = {size = 64360, type = 40}, channel_id = 2685800, peer = {public_key = {
              q_y = "\025Üöw\000\000g\000\000\000\000\000\"Üöw\f\235\004æ4\000\000\000\030\r┌\001\003\000\000"}},
          port = 3870882900, opt = 4294967294}
        th = 0x7796b2cd <msvcrt!_atoflt_l+819>
        __FUNCTION__ = "GNUNET_MESH_channel_destroy"
#1 0x00415445 in reset_mesh (mh=0x1dabe68) at gnunet-service-fs_mesh_client.c:222
        channel = 0x0
        __FUNCTION__ = "reset_mesh"
#2 0x0041559f in reset_mesh_task (cls=0x1dabe68, tc=0x28fc00) at gnunet-service-fs_mesh_client.c:272
        mh = 0x1dabe68
#3 0x62b7f6e1 in run_ready (rs=0x67ac00, ws=0x67bc18) at scheduler.c:593
        p = GNUNET_SCHEDULER_PRIORITY_DEFAULT
        pos = 0x1de99e0
        tc = {reason = GNUNET_SCHEDULER_REASON_TIMEOUT, read_ready = 0x67ac00, write_ready = 0x67bc18}
        __FUNCTION__ = "run_ready"
#4 0x62b7ff5d in GNUNET_SCHEDULER_run (task=0x62b8bc24 <service_task>, task_cls=0x28fda8) at scheduler.c:808
        rs = 0x67ac00
        ws = 0x67bc18
        timeout = {rel_value_us = 0}
        ret = 2
        shc_int = 0x1dacc70
        shc_term = 0x1dacce0
        last_tr = 3767568
        busy_wait_warning = 0
        pr = 0x67a120
        c = 98 'b'
        __FUNCTION__ = "GNUNET_SCHEDULER_run"
#5 0x62b8caf3 in GNUNET_SERVICE_run (argc=3, argv=0x1da0d18,
    service_name=0x41c163 <_Jv_RegisterClasses+4309347> "fs", options=GNUNET_SERVICE_OPTION_NONE,
    task=0x402273 <run>, task_cls=0x0) at service.c:1478
        err = 0
        ret = 3
        cfg_fn = 0x1da0f10 "~/.gnunet/gnunet.conf"
        opt_cfg_fn = 0x1da5110 "C:\\Users\\Bruno\\AppData\\Roaming\\Cangote\\cangote.conf"
        loglev = 0x0
        logfile = 0x0
        do_daemonize = 0
        i = 0
        skew_offset = 8619634911333361140
        skew_variance = 11538378101096448
        clock_offset = 962076973424
        sctx = {cfg = 0x1da0948, server = 0x1dacb50, addrs = 0x0,
          service_name = 0x41c163 <_Jv_RegisterClasses+4309347> "fs", task = 0x402273 <run>, task_cls = 0x0,
          v4_denied = 0x0, v6_denied = 0x0, v4_allowed = 0x1db0c38, v6_allowed = 0x1da5f00, my_handlers = 0x67a928,
          addrlens = 0x0, lsocks = 0x67a168, shutdown_task = 5, timeout = {rel_value_us = 18446744073709551615},
          ret = 1, ready_confirm_fd = -1, require_found = 1, match_uid = 0, match_gid = 1,
          options = GNUNET_SERVICE_OPTION_NONE}
        cfg = 0x1da0948
        xdg = 0x0
        service_options = {{shortName = 99 'c', name = 0x62ba711c <defhandlers+1308> "config",
            argumentHelp = 0x62ba7123 <defhandlers+1315> "FILENAME",
            description = 0x62ba712c <defhandlers+1324> "use configuration file FILENAME", require_argument = 1,
            processor = 0x62b6b55e <GNUNET_GETOPT_set_string>, scls = 0x28fe28}, {shortName = 100 'd',
            name = 0x62ba714c <defhandlers+1356> "daemonize", argumentHelp = 0x0,
            description = 0x62ba7158 <defhandlers+1368> "do daemonize (detach from terminal)", require_argument = 0,
            processor = 0x62b6b542 <GNUNET_GETOPT_set_one>, scls = 0x28fe1c}, {shortName = 104 'h',
            name = 0x62ba717c <defhandlers+1404> "help", argumentHelp = 0x0,
            description = 0x62ba7181 <defhandlers+1409> "print this help", require_argument = 0,
            processor = 0x62b6b0d7 <GNUNET_GETOPT_format_help_>, scls = 0x0}, {shortName = 76 'L',
            name = 0x62ba7191 <defhandlers+1425> "log", argumentHelp = 0x62ba7195 <defhandlers+1429> "LOGLEVEL",
            description = 0x62ba71a0 <defhandlers+1440> "configure logging to use LOGLEVEL", require_argument = 1,
            processor = 0x62b6b55e <GNUNET_GETOPT_set_string>, scls = 0x28fe24}, {shortName = 108 'l',
            name = 0x62ba71c2 <defhandlers+1474> "logfile", argumentHelp = 0x62ba71ca <defhandlers+1482> "LOGFILE",
            description = 0x62ba71d4 <defhandlers+1492> "configure logging to write logs to LOGFILE",
            require_argument = 1, processor = 0x62b6b55e <GNUNET_GETOPT_set_string>, scls = 0x28fe20}, {
            shortName = 118 'v', name = 0x62ba71ff <defhandlers+1535> "version", argumentHelp = 0x0,
            description = 0x62ba7207 <defhandlers+1543> "print the version number", require_argument = 0,
            processor = 0x62b6b0a8 <GNUNET_GETOPT_print_version_>, scls = 0x62ba7220 <defhandlers+1568>}, {
            shortName = 0 '\000', name = 0x0, argumentHelp = 0x0, description = 0x0, require_argument = 0,
            processor = 0x0, scls = 0x0}}
        __FUNCTION__ = "GNUNET_SERVICE_run"
#6 0x004024fa in main (argc=3, argv=0x1da0d18) at gnunet-service-fs.c:721
No locals.
(gdb)
TagsNo tags attached.

Relationships

has duplicate 0003134 closedChristian Grothoff Segmentation fault in reset_mesh 

Activities

bratao

2013-11-26 22:49

developer   ~0007711

Still crash in the latest SVN
(gdb) c
Continuing.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 8112.0x1014]
0x675460af in GNUNET_MESH_channel_destroy (channel=0x0) at mesh_api.c:1447
1447 h = channel->mesh;
(gdb) bt full
#0 0x675460af in GNUNET_MESH_channel_destroy (channel=0x0) at mesh_api.c:1447
        h = 0x28fb78
        msg = {header = {size = 64360, type = 40}, channel_id = 2685800, peer = {public_key = {
              q_y = "\025Ü3w\000\000]\000\000\000\000\000\"Ü3wα,\020\017\064\000\000\000X\r╨\001\003\000\000"}},
          port = 2014006712, opt = 4294967294}
        th = 0x0
        __FUNCTION__ = "GNUNET_MESH_channel_destroy"
#1 0x00415445 in reset_mesh (mh=0x1d0bcf0) at gnunet-service-fs_mesh_client.c:222
        channel = 0x0
        __FUNCTION__ = "reset_mesh"
#2 0x0041559f in reset_mesh_task (cls=0x1d0bcf0, tc=0x28fc00) at gnunet-service-fs_mesh_client.c:272
        mh = 0x1d0bcf0
#3 0x62b7f6e1 in run_ready (rs=0x5dac00, ws=0x5dbc18) at scheduler.c:593
        p = GNUNET_SCHEDULER_PRIORITY_DEFAULT
        pos = 0x1d49598
        tc = {reason = GNUNET_SCHEDULER_REASON_TIMEOUT, read_ready = 0x5dac00, write_ready = 0x5dbc18}
        __FUNCTION__ = "run_ready"
#4 0x62b7ff5d in GNUNET_SCHEDULER_run (task=0x62b8bc24 <service_task>, task_cls=0x28fda8) at scheduler.c:808
        rs = 0x5dac00
        ws = 0x5dbc18
        timeout = {rel_value_us = 0}
        ret = 1
        shc_int = 0x1d0d078
        shc_term = 0x1d0cf88
        last_tr = 1183
        busy_wait_warning = 0
        pr = 0x5da180
        c = 98 'b'
        __FUNCTION__ = "GNUNET_SCHEDULER_run"
#5 0x62b8caf3 in GNUNET_SERVICE_run (argc=3, argv=0x1d00d58,
    service_name=0x41c163 <_Jv_RegisterClasses+4309347> "fs", options=GNUNET_SERVICE_OPTION_NONE,
    task=0x402273 <run>, task_cls=0x0) at service.c:1478
        err = 0
        ret = 3
        cfg_fn = 0x1d00ff8 "~/.gnunet/gnunet.conf"
        opt_cfg_fn = 0x1d05268 "C:\\Users\\Bruno\\AppData\\Roaming\\Cangote\\cangote.conf"
        loglev = 0x0
        logfile = 0x0
        do_daemonize = 0
        i = 0
        skew_offset = 8592331838586070516
        skew_variance = 11538378101096448
        clock_offset = 962076973424
        sctx = {cfg = 0x1d00a98, server = 0x1d05050, addrs = 0x0,
          service_name = 0x41c163 <_Jv_RegisterClasses+4309347> "fs", task = 0x402273 <run>, task_cls = 0x0,
          v4_denied = 0x0, v6_denied = 0x0, v4_allowed = 0x1d10b38, v6_allowed = 0x1d06058, my_handlers = 0x5dab68,
          addrlens = 0x0, lsocks = 0x5da318, shutdown_task = 5, timeout = {rel_value_us = 18446744073709551615},
          ret = 1, ready_confirm_fd = -1, require_found = 1, match_uid = 0, match_gid = 1,
          options = GNUNET_SERVICE_OPTION_NONE}
        cfg = 0x1d00a98
        xdg = 0x0
        service_options = {{shortName = 99 'c', name = 0x62ba711c <defhandlers+1308> "config",
            argumentHelp = 0x62ba7123 <defhandlers+1315> "FILENAME",
            description = 0x62ba712c <defhandlers+1324> "use configuration file FILENAME", require_argument = 1,
            processor = 0x62b6b55e <GNUNET_GETOPT_set_string>, scls = 0x28fe28}, {shortName = 100 'd',
            name = 0x62ba714c <defhandlers+1356> "daemonize", argumentHelp = 0x0,
            description = 0x62ba7158 <defhandlers+1368> "do daemonize (detach from terminal)", require_argument = 0,
            processor = 0x62b6b542 <GNUNET_GETOPT_set_one>, scls = 0x28fe1c}, {shortName = 104 'h',
            name = 0x62ba717c <defhandlers+1404> "help", argumentHelp = 0x0,
            description = 0x62ba7181 <defhandlers+1409> "print this help", require_argument = 0,
            processor = 0x62b6b0d7 <GNUNET_GETOPT_format_help_>, scls = 0x0}, {shortName = 76 'L',
            name = 0x62ba7191 <defhandlers+1425> "log", argumentHelp = 0x62ba7195 <defhandlers+1429> "LOGLEVEL",
            description = 0x62ba71a0 <defhandlers+1440> "configure logging to use LOGLEVEL", require_argument = 1,
            processor = 0x62b6b55e <GNUNET_GETOPT_set_string>, scls = 0x28fe24}, {shortName = 108 'l',
            name = 0x62ba71c2 <defhandlers+1474> "logfile", argumentHelp = 0x62ba71ca <defhandlers+1482> "LOGFILE",
            description = 0x62ba71d4 <defhandlers+1492> "configure logging to write logs to LOGFILE",
            require_argument = 1, processor = 0x62b6b55e <GNUNET_GETOPT_set_string>, scls = 0x28fe20}, {
            shortName = 118 'v', name = 0x62ba71ff <defhandlers+1535> "version", argumentHelp = 0x0,
            description = 0x62ba7207 <defhandlers+1543> "print the version number", require_argument = 0,
            processor = 0x62b6b0a8 <GNUNET_GETOPT_print_version_>, scls = 0x62ba7220 <defhandlers+1568>}, {
            shortName = 0 '\000', name = 0x0, argumentHelp = 0x0, description = 0x0, require_argument = 0,
            processor = 0x0, scls = 0x0}}
        __FUNCTION__ = "GNUNET_SERVICE_run"
#6 0x004024fa in main (argc=3, argv=0x1d00d58) at gnunet-service-fs.c:721

Christian Grothoff

2013-11-26 23:31

manager   ~0007713

Should be fixed in SVN 30884. Please confirm/deny ;-)

bratao

2013-11-27 00:26

developer   ~0007716

Apparently yes !

Issue History

Date Modified Username Field Change
2013-11-22 01:40 bratao New Issue
2013-11-26 22:49 bratao Note Added: 0007711
2013-11-26 23:31 Christian Grothoff Note Added: 0007713
2013-11-26 23:31 Christian Grothoff Assigned To => Christian Grothoff
2013-11-26 23:31 Christian Grothoff Status new => feedback
2013-11-26 23:42 Christian Grothoff Target Version => 0.10.0
2013-11-26 23:42 Christian Grothoff Additional Information Updated
2013-11-27 00:26 bratao Note Added: 0007716
2013-11-27 00:26 bratao Status feedback => assigned
2013-11-27 00:26 bratao Status assigned => resolved
2013-11-27 00:26 bratao Resolution open => fixed
2013-11-27 22:13 Christian Grothoff Relationship added has duplicate 0003134
2013-12-24 20:54 Christian Grothoff Status resolved => closed