<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Crash with Hungarian spell checker in 6.0 debug build"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=116586">116586</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Crash with Hungarian spell checker in 6.0 debug build
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.0.3.1 rc
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Keywords</th>
          <td>haveBacktrace
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>major
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Linguistic
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>baron@caesar.elte.hu
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>nemeth@numbertext.org
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>96000, 105537
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=140828" name="attach_140828" title="Backtrace">attachment 140828</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=140828&action=edit" title="Backtrace">[details]</a></span>
Backtrace

Prerequisite:
With a debug build of libreoffice-6-0 branch (I was at
90fb652ebbc4b16ae5001140076f52209e913345), have Hungarian spell checker
installed (ie. hunspell-hu in Ubuntu), or copy the content of 'hu_HU' from
dictionaries repo into 'instdir/share/extensions/dict-hu'.
I assume debug libstdc++ packages are also needed.

Repro:
Open a Hungarian document eg. 'sw/qa/extras/uiwriter/data/commented-word.odt',
or set document language to Hungarian, and start typing.

=> Crash.
(the menioned document is for a unit test, so if Hungarian spell checker is
installed, the respective unit test will fail)

The crash is in Hunspell (or rather in C++ STD library), this is the relevant
part of the backtrace (attaching the whole thing):

#2  0x00007ffff6a564e3 in __gnu_debug::_Error_formatter::_M_error() const () at
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007fffbf28f9a4 in std::binary_search<unsigned short*, unsigned
short>(unsigned short*, unsigned short*, unsigned short const&)
(__first=0x555557420e00, __last=0x555557420e2c, __val=@0x55555741a9dc: 119) at
/usr/include/c++/7/bits/stl_algo.h:2254
#4  0x00007fffbf2e92c2 in
HashMgr::remove_forbidden_flag(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&) (this=0x55555741a9c0,
word="élethalálharc") at hashmgr.cxx:509

There's also this message on the console:
/usr/include/c++/7/bits/stl_algo.h:2254:
Error: elements in iterator range [__first, __last) are not partitioned by 
the value __val.


There is no crash in a debug master build, so I have to close this as
WORKSFORME right away.
László, is there a chance you could investigate what is wrong here?</pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [META] Spelling and grammar checking bugs and enhancements"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=96000">Bug 96000</a>] [META] Spelling and grammar checking bugs and enhancements
              </li>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [META] Assertion failed crashes"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=105537">Bug 105537</a>] [META] Assertion failed crashes
              </li>
          </ul>
        </div>
        <br>

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

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