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

Segmentation fault on large paragraphs #28

Open
jbrugge opened this issue Nov 17, 2016 · 1 comment
Open

Segmentation fault on large paragraphs #28

jbrugge opened this issue Nov 17, 2016 · 1 comment
Labels

Comments

@jbrugge
Copy link

jbrugge commented Nov 17, 2016

When translating an XML document that has a large amount of text in an area deemed a paragraph, file2brl is ending with a segmentation fault.

We are running liblouis 3.0.0 with liblouisutdml 2.6.0 HEAD on Linux. I've attached a sample XML file, the config file used, and shell script of the options we use for running file2brl.

The significant portion of the stderr output appears to be this, since I see the exact same pattern in other XML files that fail with the same error. The "inlen" is always the exact same number just before a failure, 8188:

...
Begin insert_text: node->content=367

Begin insert_translation
Performing translation: tableList=en-us-brf.dis,en-us-g2.ctb, inlen=8188
Inbuf=0x000A
...
47 0x0020 0x0020 0x0020 0x0020
Finished insert_translation
Begin write_paragraph
Begin insert_translation
Finished insert_translation, no text to translate
Begin end_style
Begin insert_translation
Finished insert_translation, no text to translate
Finish end_style
Finish write_paragraph
./convert-utdml.sh: line 9: 73318 Segmentation fault: 11  file2brl -f ./bookshare-refreshable.cfg -C

Thanks for any suggestions,
John Brugge

@jbrugge
Copy link
Author

jbrugge commented Nov 17, 2016

segfault-sample.zip

@egli egli added the bug label Mar 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants