View Issue Details

IDProjectCategoryView StatusLast Update
0003132GNUnetcadet servicepublic2013-12-24 20:54
Reporterbratao Assigned ToBart Polot  
PrioritynormalSeveritycrashReproducibilitysometimes
Status closedResolutionunable to reproduce 
PlatformW32OSWindowsOS Version8.1
Product VersionGit master 
Target Version0.10.0Fixed in Version0.10.0 
Summary0003132: Segmentation fault in message_sent
DescriptionI have A and B machines, connected by LAN.

A is sharing 3 files, and B is downloading those 3 files.
A crash in Mesh.
Additional InformationProgram received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1284.0x17ac]
0x004134be in message_sent (cls=0x47e3b0, t=0x92d7d8, q=0x4a3930, type=280, size=108)
    at gnunet-service-mesh_channel.c:799
799 if (GNUNET_SCHEDULER_NO_TASK == rel->retry_task)
(gdb) bt full
#0 0x004134be in message_sent (cls=0x47e3b0, t=0x92d7d8, q=0x4a3930, type=280, size=108)
    at gnunet-service-mesh_channel.c:799
        copy = 0x47e3b0
        rel = 0xdf0adba
#1 0x00407666 in message_sent (cls=0x4a3930, c=0x92d6f0, q=0x4a39a8, type=280, fwd=0, size=108)
    at gnunet-service-mesh_tunnel.c:2031
        qt = 0x4a3930
        __FUNCTION__ = "message_sent"
#2 0x00408ab0 in message_sent (cls=0x4a39a8, c=0x92d6f0, type=280, fwd=0, size=108, wait=...)
    at gnunet-service-mesh_connection.c:534
        p = 0xc972e5b2
        fc = 0x92d730
        q = 0x4a39a8
        usecsperbyte = -nan(0xffffe00000003)
        __FUNCTION__ = "message_sent"
#3 0x0041d40c in GMP_queue_destroy (queue=0x92d328, clear_cls=0) at gnunet-service-mesh_peer.c:955
        peer = 0x4780c0
        __FUNCTION__ = "GMP_queue_destroy"
#4 0x0041cae4 in queue_send (cls=0x4780c0, size=29036, buf=0x4b0a34) at gnunet-service-mesh_peer.c:860
        peer = 0x4780c0
        c = 0x92d6f0
        queue = 0x92d328
        dst_id = 0x481870
        data_size = 108
        __FUNCTION__ = "queue_send"
#5 0x6950389a in transmit_message (cls=0x926fa8, size=29096, buf=0x4b09f8) at core_api.c:657
        h = 0x926fa8
        cm = 0x0
        th = 0x47ee10
        pr = 0x47ede0
        sm = 0x4b09f8
        hdr = 0x3701c8
        msize = 0
        ret = 1766875054
        __FUNCTION__ = "transmit_message"
#6 0x62b4597f in client_notify (cls=0x92cfe0, size=29096, buf=0x4b09f8) at client.c:1151
        th = 0x92cfe0
        client = 0x475948
        ret = 5
        delay = {rel_value_us = 130299818912460517}
        __FUNCTION__ = "client_notify"
#7 0x62b50b82 in process_notify (connection=0x4760b8) at connection.c:1172
        used = 0
        avail = 29096
        size = 168
        notify = 0x62b4532a <client_notify>
        __FUNCTION__ = "process_notify"
#8 0x62b5167f in transmit_ready (cls=0x4760b8, tc=0x28fbf0) at connection.c:1303
        connection = 0x4760b8
        notify = 0xc98877e3
        ret = 9612288
        have = 4656640
        __FUNCTION__ = "transmit_ready"
#9 0x62b7f6e1 in run_ready (rs=0x92ac00, ws=0x92bc18) at scheduler.c:593
        p = GNUNET_SCHEDULER_PRIORITY_DEFAULT
        pos = 0x48dea0
        tc = {reason = (GNUNET_SCHEDULER_REASON_WRITE_READY | GNUNET_SCHEDULER_REASON_PREREQ_DONE),
          read_ready = 0x92ac00, write_ready = 0x487e60}
        __FUNCTION__ = "run_ready"
#10 0x62b7ff5d in GNUNET_SCHEDULER_run (task=0x62b8bc24 <service_task>, task_cls=0x28fd98) at scheduler.c:808
        rs = 0x92ac00
        ws = 0x92bc18
        timeout = {rel_value_us = 289778715}
        ret = 1
        shc_int = 0x47d148
        shc_term = 0x47d0b8
        last_tr = 877
        busy_wait_warning = 0
        pr = 0x929d48
        c = 98 'b'
        __FUNCTION__ = "GNUNET_SCHEDULER_run"
#11 0x62b8caf3 in GNUNET_SERVICE_run (argc=3, argv=0x470e00, service_name=0x427739 <__FUNCTION__.105212+1342> "mesh",
    options=GNUNET_SERVICE_OPTION_NONE, task=0x42101f <run>, task_cls=0x0) at service.c:1478
        err = 0
        ret = 3
        cfg_fn = 0x471278 "~/.gnunet/gnunet.conf"
        opt_cfg_fn = 0x475270 "C:\\Users\\Bruno\\AppData\\Roaming\\Cangote\\cangote.conf"
        loglev = 0x0
        logfile = 0x0
        do_daemonize = 0
        i = 4294967295
        skew_offset = 18613426188189748
        skew_variance = 41136322587678615
        clock_offset = -8169843484
        sctx = {cfg = 0x470968, server = 0x47cd18, addrs = 0x0,
          service_name = 0x427739 <__FUNCTION__.105212+1342> "mesh", task = 0x42101f <run>, task_cls = 0x0,
          v4_denied = 0x0, v6_denied = 0x0, v4_allowed = 0x480860, v6_allowed = 0x476060, my_handlers = 0x92a668,
          addrlens = 0x0, lsocks = 0x929fe8, shutdown_task = 5, 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 = 0x470968
        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 = 0x28fe18}, {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 = 0x28fe0c}, {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 = 0x28fe14}, {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 = 0x28fe10}, {
            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"
#12 0x004213c9 in main (argc=3, argv=0x470e00) at gnunet-service-mesh.c:161
        ret = 52
        r = 52
TagsNo tags attached.

Activities

Bart Polot

2013-11-27 00:33

reporter   ~0007717

Which svn version is this? The line numbers don't match mines...

bratao

2013-11-27 00:35

reporter   ~0007718

This is r30885.

Bart Polot

2013-11-27 00:37

reporter   ~0007719

Strange. In my file the problematic line is 835, not 799...

bratao

2013-11-27 01:29

reporter   ~0007720

I'm sorry Bart.
Seems like my svn client went nuts. And there mesh was different from SVN head.

I can't reproduce it anymore with a fresh checkout.

Issue History

Date Modified Username Field Change
2013-11-27 00:28 bratao New Issue
2013-11-27 00:28 bratao Status new => assigned
2013-11-27 00:28 bratao Assigned To => Bart Polot
2013-11-27 00:33 Bart Polot Note Added: 0007717
2013-11-27 00:35 bratao Note Added: 0007718
2013-11-27 00:37 Bart Polot Note Added: 0007719
2013-11-27 01:29 bratao Note Added: 0007720
2013-11-27 01:29 bratao Status assigned => resolved
2013-11-27 01:29 bratao Resolution open => unable to reproduce
2013-11-27 13:43 Christian Grothoff Fixed in Version => 0.10.0
2013-11-27 13:43 Christian Grothoff Target Version => 0.10.0
2013-12-24 20:54 Christian Grothoff Status resolved => closed
2014-05-09 18:34 Christian Grothoff Category mesh service => cadet service