Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lt-print segfaults on heb-mlt.autobil.bin #36

Open
ftyers opened this issue Oct 27, 2018 · 2 comments
Open

lt-print segfaults on heb-mlt.autobil.bin #36

ftyers opened this issue Oct 27, 2018 · 2 comments
Labels
bug Something isn't working

Comments

@ftyers
Copy link
Member

ftyers commented Oct 27, 2018

fran@matxine:~/source/apertium/staging/apertium-mlt-heb$ make
apertium-validate-dictionary apertium-mlt-heb.mlt-heb.dix
lt-comp rl apertium-mlt-heb.mlt-heb.dix heb-mlt.autobil.bin
lt-trim .deps/heb.automorf.bin heb-mlt.autobil.bin heb-mlt.automorf.bin
Error: empty set of final states
Makefile:764: recipe for target 'heb-mlt.automorf.bin' failed
make: *** [heb-mlt.automorf.bin] Error 1

fran@matxine:~/source/apertium/staging/apertium-mlt-heb$ ls -lsrth heb-mlt.autobil.bin 
8,0K -rw-r--r-- 1 fran fran 6,6K oct 27 03:34 heb-mlt.autobil.bin

fran@matxine:~/source/apertium/staging/apertium-mlt-heb$ lt-print heb-mlt.autobil.bin
Violació de segment
@ftyers ftyers added the bug Something isn't working label Oct 27, 2018
@ftyers
Copy link
Member Author

ftyers commented Oct 27, 2018

fran@matxine:~/source/apertium/staging/apertium-mlt-heb$ gdb lt-print 
GNU gdb (Debian 8.1-4+b1) 8.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from lt-print...done.
(gdb) run heb-mlt.autobil.bin 
Starting program: /home/fran/local/bin/lt-print heb-mlt.autobil.bin
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff79fc3fa in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) bt
#0  0x00007ffff79fc3fa in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1  0x000055555555687a in std::_Rb_tree_iterator<std::pair<std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const, Transducer> >::operator-- (this=<synthetic pointer>) at /usr/include/c++/7/bits/stl_tree.h:310
#2  main (argc=<optimized out>, argv=<optimized out>) at lt_print.cc:111
(gdb) 

@ftyers
Copy link
Member Author

ftyers commented Oct 27, 2018

Ok, this seems like a classic error and might be a duplicate. Here is the fix:

diff --git a/apertium-mlt-heb.mlt-heb.dix b/apertium-mlt-heb.mlt-heb.dix
index 8c75d3d..d9dd506 100644
--- a/apertium-mlt-heb.mlt-heb.dix
+++ b/apertium-mlt-heb.mlt-heb.dix
@@ -88,6 +88,7 @@
      <pardef n="gd_m_f">
         <e r="LR"><p><l><s n="GD"/></l><r><s n="m"/></r></p></e>
         <e r="LR"><p><l><s n="GD"/></l><r><s n="f"/></r></p></e>
+        <e><p><l></l><r></r></p></e>
      </pardef>
 
    </pardefs>

unhammer added a commit that referenced this issue Aug 28, 2020
similarly empty rhs for rl compilation

Related: #36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant