Segmentation Fault for unified parser

258 views
Skip to first unread message

Chaitanya Jadhav

unread,
May 22, 2020, 2:24:54 AM5/22/20
to IndicTTS
Hello Team,

I am trying to use unified parser but I am getting a Segmentation fault (core dumped) error.

Following is the output for various arguments:

chaitanya@hp-notebook:~/Downloads/unified$ ./unified-parser नमस्ते 1 0 0 0
Segmentation fault (core dumped)
chaitanya@hp-notebook:~/Downloads/unified$ ./unified-parser नमस्ते 1 1 0 0
Segmentation fault (core dumped)
chaitanya@hp-notebook:~/Downloads/unified$ ./unified-parser नमस्ते 1 2 0 0
Segmentation fault (core dumped)
chaitanya@hp-notebook:~/Downloads/unified$ ./unified-parser नमस्ते 1 3 0 0
Segmentation fault (core dumped)
chaitanya@hp-notebook:~/Downloads/unified$ ./unified-parser नमस्ते 1 4 0 0
Segmentation fault (core dumped)

I kindly request to please help to solve this issue.

Chaitanya Jadhav

unread,
May 23, 2020, 9:59:16 AM5/23/20
to IndicTTS
Hello all,

The problem was with GCC version. I installed gcc-4.8 and it worked.
In the make file change change CC = gcc to CC = gcc-4.8 (if you dont set gcc-4.8 as default comiler) and compile the program with make.

IndicTTS

unread,
May 23, 2020, 12:02:49 PM5/23/20
to IndicTTS
Dear Chaitanya,

Thank you for your solution.We were using valgrind to solve the issue.


Regards,
TTS Group, IITM

Chaitanya Jadhav

unread,
May 24, 2020, 12:11:43 AM5/24/20
to IndicTTS
Welcome Team !!
Message has been deleted

Zhen Wei

unread,
May 28, 2020, 12:25:13 AM5/28/20
to IndicTTS
Hi Team & Chaitanya,

I also encountered this problem these days.

At the first stage, the segmentation fault appeared as follows:
image.png
then we delete '-std=c99' in Makefile, the fault appeared as follows:
image.png
then we fix a bug in unified.y at line 686, 39➡️38
image.png
and the segmentation fault disappeared!

But when I want to use unified-parser to process all the words in a corpus, the result shows that not all the words can pass the parser procedure, another faults “corrupted size vs. prev size” appeared as follows:
for example: प्रसिद्द , प्रस्तुत , राजनीति , प्रकृति ...
image.png

Since I cannot set breakpoint in .y or .l, I failed to use gdb to debug these faults. Please help!

I really hope that we can make this tool more feasible! 

Zhen Wei

Speech and Music Technology Lab IIT Madras

unread,
May 30, 2020, 3:47:47 AM5/30/20
to IndicTTS
Dear Zhen Wei,

We are happy to help you. But we are unable to see the screenshot you've mentioned. Can you be bit more clearer ?

Thank you and Regards,
IndicTTS Team
IIT Madras

Zhen Wei

unread,
Jun 1, 2020, 11:17:06 PM6/1/20
to IndicTTS
sorry for the failed images.

At the first stage, we got the segmentation fault, and then we delete '-std=c99' in Makefile, fixed a bug in unified.y at line 686, 39➡️38

problem_in_unified_parser_1.png




Then, the segmentation fault disappeared!

But when I want to use unified-parser to process all the words in a corpus, the result shows that not all the words can pass the parser procedure, another faults “corrupted size vs. prev size” appeared as follows:
for example: प्रसिद्द , प्रस्तुत , राजनीति , प्रकृति ...

problem_in_unified-parser_2.png















Besides, when we use absolute directory in unified.y (rootPath), some words (for example, श्रद्धा ) would have fault as follows:

problem_in_unified_parser_3.png

Reply all
Reply to author
Forward
0 new messages