<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:fyodor_e@hotmail.com" title="Fyodor <fyodor_e@hotmail.com>"> <span class="fn">Fyodor</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - CRASH: autocorrect with change tracking halts LibreOffice"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=83260">bug 83260</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Assignee</td>
           <td>libreoffice-bugs@lists.freedesktop.org
           </td>
           <td>fyodor_e@hotmail.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - CRASH: autocorrect with change tracking halts LibreOffice"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=83260#c10">Comment # 10</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - CRASH: autocorrect with change tracking halts LibreOffice"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=83260">bug 83260</a>
              from <span class="vcard"><a class="email" href="mailto:fyodor_e@hotmail.com" title="Fyodor <fyodor_e@hotmail.com>"> <span class="fn">Fyodor</span></a>
</span></b>
        <pre>I cannot reproduce halt, but can reproduce crush during Undo. Crush happens
during "second" undo. Firstly autocorrection undone, then during undoing
insertion of "includ" crush happens.

This is due to invalid node indexes (I think this is most frequent cause of
crushes in undo/redo, due to their dependency of absolute node indexes...). 
Indexes itself made invalid during previous SwUndoInsert (autocorrection),
because of redline paragraphs (one removed and one containing one removed
letter) moved to special section of SwDoc for deleted redlines. This in its
turn happens due to redline flags are modified during autocorrection execution.
(In SwUndo redline flags set to 0n17 but diring autocorrection they set to
0n49). As a result RedlineGuard calls functions to move nodes outside of
document which invalidates indexes stored in Undo.

I suspect that modification of redline flags done here
<a href="https://opengrok.libreoffice.org/xref/core/sw/source/core/doc/DocumentContentOperationsManager.cxx#3900">https://opengrok.libreoffice.org/xref/core/sw/source/core/doc/DocumentContentOperationsManager.cxx#3900</a>

I'll investigate this bug further.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>