wordlist2dawg segfaults on a small wordlist
Bug #435997 reported by
Neskie Manuel
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tesseract (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
wordlist2dawg segfaults on even a small list. This list used is here.
ell
Hello
hello
Kukstsemc
qelmúcw
Secwepemc
te
t̓e
The
the
weytk
The culprit is in training/
EDGE_ARRAY dawg;
inT32 max_num_edges = 100000000;
inT32 reserved_edges = 1000000;
dawg = (EDGE_ARRAY) Emalloc(sizeof (EDGE_RECORD) * max_num_edges);
It's not dynamically increased to what's needed. wordlist2dawg works out of svn, and it looks like they fixed it.
I took off two zeros from max_num_edges and reserved_edges and put it in /usr/local/bin
I dont know if this is fixed in karmic.
To post a comment you must log in.
suspect fixed due to shipping newer code