I am trying to compile espeak-ng from the master branch. After installing dependencies, running autogen.sh, configure and so on, I could get the binary of espeak-ng but after that, make failed with the following error:
I fired up gdb64 to run the binary "src/.libs/espeak-ng" with the same environment variables and arguments, and found it appeared to be a dictionary processing error:
Program received signal SIGSEGV, Segmentation fault.
InitGroups (tr=0x619a70) at src/libespeak-ng/dictionary.c:197
197 while (*p != RULE_GROUP_END)
(gdb) bt
0 InitGroups (tr=0x619a70) at src/libespeak-ng/dictionary.c:197
---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/44866946-espeak-crashed-when-compiling-phonemes?utm_campaign=plugin&utm_content=tracker%2F254964&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F254964&utm_medium=issues&utm_source=github).
I am trying to compile espeak-ng from the master branch. After installing dependencies, running autogen.sh, configure and so on, I could get the binary of espeak-ng but after that, make failed with the following error:
ESPEAK_DATA_PATH=/home/osboxes/work/espeakNG/espeak-ng src/espeak-ng --compile-intonations && \ ESPEAK_DATA_PATH=/home/osboxes/work/espeakNG/espeak-ng src/espeak-ng --compile-phonemes && \ touch phsource/phonemes.stamp Compiled 26 intonation tunes: 0 errors. /bin/bash: line 2: 80909 Segmentation fault (core dumped) ESPEAK_DATA_PATH=/home/osboxes/work/espeakNG/espeak-ng src/espeak-ng --compile-phonemes Makefile:1861: recipe for target 'phsource/phonemes.stamp' failed make[1]: *** [phsource/phonemes.stamp] Error 139
---- end of compile error ----
I fired up gdb64 to run the binary "src/.libs/espeak-ng" with the same environment variables and arguments, and found it appeared to be a dictionary processing error:
Program received signal SIGSEGV, Segmentation fault. InitGroups (tr=0x619a70) at src/libespeak-ng/dictionary.c:197 197 while (*p != RULE_GROUP_END) (gdb) bt
0 InitGroups (tr=0x619a70) at src/libespeak-ng/dictionary.c:197
1 LoadDictionary (tr=tr@entry=0x619a70, name=name@entry=0x7fffffffd7a0 "en", no_error=no_error@entry=0)
2 0x00007ffff7b79d3c in LoadVoice (vname=vname@entry=0x7ffff7b9e1aa "", control=control@entry=0) at src/libespeak-ng/voices.c:910
3 0x00007ffff7b4d653 in espeak_ng_CompilePhonemeDataPath (rate=rate@entry=22050, source_path=source_path@entry=0x0,
4 0x00007ffff7b4e61f in espeak_ng_CompilePhonemeData (rate=rate@entry=22050, log=,
5 0x00000000004022bb in main (argc=2, argv=0x7fffffffe428) at src/espeak-ng.c:551
Do you have any idea why it happens? My environment is
Ubuntu 16.04.2 LTS gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
Thanks!