View Issue Details

IDProjectCategoryView StatusLast Update
0003134GNUnetfile-sharing servicepublic2013-12-24 20:54
Reporterbratao Assigned ToChristian Grothoff  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionduplicate 
PlatformW32OSWindowsOS Version8.1
Product VersionGit master 
Target Version0.10.0Fixed in Version0.10.0 
Summary0003134: Segmentation fault in reset_mesh
DescriptionI have A and B machines, connected by LAN.

A is sharing 3 files. B is downloading those 3 files.
B crash in Mesh and service-fs simultaneously .
Additional Information[New Thread 2720.0x115c]
Reading symbols from C:\Cangote\lib\gnunet\libexec\gnunet-service-fs.exe...done.

(gdb) c
Continuing.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 2720.0x13a4]
0x675460af in GNUNET_MESH_channel_destroy (channel=0x0) at mesh_api.c:1447
warning: Source file is more recent than executable.
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 = 58120, type = 87}, channel_id = 2685800,
          peer = {public_key = {
              q_y = "═\230±t\000\000W\000\000\000\000\000┌\230±tw»b©4\000\000\00
0└\022H\000\003\000\000"}}, port = 3434859775, opt = 4294967294}
        th = 0x74f38cd5 <msvcrt!atan2+431>
        __FUNCTION__ = "GNUNET_MESH_channel_destroy"
#1 0x00415445 in reset_mesh (mh=0x5545e8)
    at gnunet-service-fs_mesh_client.c:222
        channel = 0x0
        __FUNCTION__ = "reset_mesh"
#2 0x0041559f in reset_mesh_task (cls=0x5545e8, tc=0x28fc00)
    at gnunet-service-fs_mesh_client.c:272
        mh = 0x5545e8
#3 0x62b7f6e1 in run_ready (rs=0x5797e8, ws=0x57a800) at scheduler.c:593
        p = GNUNET_SCHEDULER_PRIORITY_DEFAULT
        pos = 0x57e1f0
        tc = {reason = GNUNET_SCHEDULER_REASON_TIMEOUT,
          read_ready = 0x5797e8, write_ready = 0x57a800}
        __FUNCTION__ = "run_ready"
#4 0x62b7ff5d in GNUNET_SCHEDULER_run (task=0x62b8bc24 <service_task>,
    task_cls=0x28fda8) at scheduler.c:808
        rs = 0x5797e8
        ws = 0x57a800
        timeout = {rel_value_us = 0}
        ret = 1
        shc_int = 0x48f808
        shc_term = 0x48fb68
        last_tr = 27174
        busy_wait_warning = 0
        pr = 0x5796a8
        c = 98 'b'
        __FUNCTION__ = "GNUNET_SCHEDULER_run"
#5 0x62b8caf3 in GNUNET_SERVICE_run (argc=3, argv=0x4812c0,
    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 = 0x481958 "~/.gnunet/gnunet.conf"
        opt_cfg_fn = 0x484028 "C:\\Users\\slave\\AppData\\Roaming\\Cangote\\cang
ote.conf"
        loglev = 0x0
        logfile = 0x0
        do_daemonize = 0
        i = 0
        skew_offset = 8429334050093769794
        skew_variance = 11538378105819840
        clock_offset = 962076973424
        sctx = {cfg = 0x480da8, server = 0x483cd8, addrs = 0x0,
          service_name = 0x41c163 <_Jv_RegisterClasses+4309347> "fs",
          task = 0x402273 <run>, task_cls = 0x0, v4_denied = 0x0,
          v6_denied = 0x0, v4_allowed = 0x482c40, v6_allowed = 0x485ff0,
          my_handlers = 0x48e648, addrlens = 0x0, lsocks = 0x5795d0,
          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 = 0x480da8
        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 fr
om 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 us
e 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 wr
ite 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 numbe
r", 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=0x4812c0) at gnunet-service-fs.c:721
No locals.
(gdb) l
1442 struct GNUNET_MESH_Handle *h;
1443 struct GNUNET_MESH_ChannelMessage msg;
1444 struct GNUNET_MESH_TransmitHandle *th;
1445
1446 LOG (GNUNET_ERROR_TYPE_DEBUG, "Destroying channel\n");
1447 h = channel->mesh;
1448
1449 msg.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_CHANNEL_DESTROY);
1450 msg.header.size = htons (sizeof (struct GNUNET_MESH_ChannelMessage));
1451 msg.channel_id = htonl (channel->chid);
(gdb) up
#1 0x00415445 in reset_mesh (mh=0x5545e8)
    at gnunet-service-fs_mesh_client.c:222
warning: Source file is more recent than executable.
222 if (NULL != channel)
(gdb) l
217
218 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
219 "Resetting mesh channel to %s\n",
220 GNUNET_i2s (&mh->target));
221 mh->channel = NULL;
222 if (NULL != channel)
223 GNUNET_MESH_channel_destroy (channel);
224 GNUNET_CONTAINER_multihashmap_iterate (mh->waiting_map,
225 &move_to_pending,
226 mh);
(gdb)
TagsNo tags attached.

Relationships

duplicate of 0003125 closedChristian Grothoff gnunet-service-fs crashes on reset_mesh 

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2013-11-27 01:52 bratao New Issue
2013-11-27 13:43 Christian Grothoff Assigned To => Christian Grothoff
2013-11-27 13:43 Christian Grothoff Status new => assigned
2013-11-27 13:45 Christian Grothoff Target Version => 0.10.0
2013-11-27 22:13 Christian Grothoff Relationship added duplicate of 0003125
2013-11-27 22:13 Christian Grothoff Status assigned => resolved
2013-11-27 22:13 Christian Grothoff Fixed in Version => 0.10.0
2013-11-27 22:13 Christian Grothoff Resolution open => duplicate
2013-12-24 20:54 Christian Grothoff Status resolved => closed