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

libhyphen.so crashes with hyph_tr.dic #1

Open
aloistr opened this issue Jan 28, 2021 · 1 comment
Open

libhyphen.so crashes with hyph_tr.dic #1

aloistr opened this issue Jan 28, 2021 · 1 comment

Comments

@aloistr
Copy link

aloistr commented Jan 28, 2021

I try using hyph_tr.dic with libhyphen.so
it crashes and in the gdb debugger I see this
#3 0x00007ffff63cb299 in int_free () at /lib64/libc.so.6
#4 0x00007ffff7bd7c3e in hnj_hyphen_hyph
() at /lib64/libhyphen.so.0
#5 0x00007ffff7bd825d in hnj_hyphen_hyph_ () at /lib64/libhyphen.so.0
#6 0x00007ffff7bd8a32 in hnj_hyphen_hyphenate3 () at /lib64/libhyphen.so.0
My code calls hnj_hyphen_hyphenate3() with these parameters
retval = hnj_hyphen_hyphenate3(dict, hin, lenu, rp->hyphens, rp->hword,
&rp->rep, &rp->pos, &rp->cut, 2, 2, 3, 3);
dict is HyphenDict* = {lhmin = 0 '\000', rhmin = 0 '\000', clhmin = 3 '\003', crhmin = 3 '\003',
nohyphen = 0x76f0b0 "'", nohyphenl = 3, num_states = 7, cset = "UTF-8", utf8 = 1,
states = 0x7b5230, nextlevel = 0x763830}
hin = "insani"
lenu = 7
rp = {len = 7, hyphens = 0x758360 "", hword = 0x76f530 "", rep = 0x771730, pos = 0x7622d0,
cut = 0x7716d0}

libhyphen.so comes from hyphen-2.8.6-5.el7.x86_64 on RHEL 7
Do I need another version of the hyphen module?

@aloistr
Copy link
Author

aloistr commented Feb 1, 2021

In my fork https://github.com/aloistr/hyphen the problem is solved by a patch in hyphen.c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant