<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    → <a class="moz-txt-link-freetext" href="https://github.com/espressif/esp-idf/issues/3006">https://github.com/espressif/esp-idf/issues/3006</a><br>
    <br>
    Regards,<br>
    Michael<br>
    <br>
    <br>
    <div class="moz-cite-prefix">Am 28.01.19 um 20:46 schrieb Michael
      Balzer:<br>
    </div>
    <blockquote type="cite"
      cite="mid:b193b172-9a83-6df5-7b61-9e0cbfa46281@expeedo.de">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      To clarify: the bug is most likely not restricted to the case of
      building a message in a buffer. It can possibly cause corruptions
      in any RAM section, so can well be responsible for many/most of
      the unidentified crashes and stack/heap corruptions we're
      experiencing.<br>
      <br>
      Regards,<br>
      Michael<br>
      <br>
      <br>
      <div class="moz-cite-prefix">Am 28.01.19 um 20:43 schrieb Michael
        Balzer:<br>
      </div>
      <blockquote type="cite"
        cite="mid:06d0ea65-f4d5-e2c5-9ca1-b0ad63bfa3b1@expeedo.de">
        <meta http-equiv="Content-Type" content="text/html;
          charset=UTF-8">
        For those not following the github discussion: I'm pretty sure
        I've nailed the bug down.<br>
        <br>
        I have reproduced the bug in a simple test project and intend to
        raise an issue with Espressif on this.<br>
        <br>
        <a class="moz-txt-link-freetext"
href="https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/issues/189#issuecomment-457965435"
          moz-do-not-send="true">https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/issues/189#issuecomment-457965435</a><br>
        <br>
        If you'd like to test this on your module, configure the project
        to your wifi credentials, then use "make flash". As the test
        project is small, this normally will not erase your OVMS config
        partition, but a backup is always recommended.<br>
        <br>
        Regards,<br>
        Michael<br>
        <br>
        <br>
        <div class="moz-cite-prefix">Am 24.01.19 um 21:19 schrieb
          Michael Balzer:<br>
        </div>
        <blockquote type="cite"
          cite="mid:e4159a1c-b283-25b0-f1b5-ce570b529a1c@expeedo.de">
          <meta http-equiv="content-type" content="text/html;
            charset=UTF-8">
          Everyone please have a look at…<br>
          <br>
          <a class="moz-txt-link-freetext"
href="https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/issues/189#issuecomment-457334248"
            moz-do-not-send="true">https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/issues/189#issuecomment-457334248</a><br>
          <br>
          Please try to reproduce the bug on your modules.<br>
          <br>
          I'm open for explanations.<br>
          <br>
          I thought this might be some copy-on-write bug with
          std::string, but the gcc 5.x libstdc++ does no longer use that
          implementation (wouldn't be C++11 compliant as well). I also
          tried moving all strings to temporary buffers, but modes 5
          & 6 eliminated this explanation as well.<br>
          <br>
          My remaining theories:<br>
          <ul>
            <li>A task writing out of bounds (but only 0-bytes?)</li>
            <li>A hardware issue only affecting some modules<br>
            </li>
          </ul>
          A hardware issue only affecting some percentage of ESP32 could
          explain this as well as the strange heap corruptions that seem
          to affect some modules especially often.<br>
          <br>
          Regards,<br>
          Michael<br>
          <br>
          <pre class="moz-signature" cols="160">-- 
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
</pre>
          <br>
          <fieldset class="mimeAttachmentHeader"></fieldset>
          <pre class="moz-quote-pre" wrap="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.openvehicles.com" moz-do-not-send="true">OvmsDev@lists.openvehicles.com</a>
<a class="moz-txt-link-freetext" href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" moz-do-not-send="true">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a>
</pre>
        </blockquote>
        <br>
        <pre class="moz-signature" cols="160">-- 
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
</pre>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <pre class="moz-quote-pre" wrap="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.openvehicles.com" moz-do-not-send="true">OvmsDev@lists.openvehicles.com</a>
<a class="moz-txt-link-freetext" href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" moz-do-not-send="true">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a>
</pre>
      </blockquote>
      <br>
      <pre class="moz-signature" cols="160">-- 
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.openvehicles.com">OvmsDev@lists.openvehicles.com</a>
<a class="moz-txt-link-freetext" href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="160">-- 
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
</pre>
  </body>
</html>