Wulf / nodehun

The Hunspell binding for NodeJS that exposes as much of Hunspell as possible and also adds new features. Hunspell is a first class spellcheck library used by Google, Apple, and Mozilla.
MIT License
286 stars 42 forks source link

Segfault on suggestion #78

Closed luddd3 closed 4 years ago

luddd3 commented 4 years ago

Hi, I'm having segfault issues during suggestions (see stack below). It happens now and then every day for a service that run spelling-suggestions quite often.

/code/node_modules/segfault-handler/build/Release/segfault-handler.node(+0x2ca1) [0x7f829b5fcca1]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x110e0) [0x7f82a2bdf0e0]
/code/node_modules/nodehun/build/Release/Nodehun.node(_ZN10SuggestMgr19leftcommonsubstringEPcPKc+0xf4) [0x7f829b3b5e04]
/code/node_modules/nodehun/build/Release/Nodehun.node(_ZN10SuggestMgr9ngsuggestEPPcS0_iPP7HashMgri+0x406) [0x7f829b3b76c6]
/code/node_modules/nodehun/build/Release/Nodehun.node(_ZN8Hunspell7suggestEPPPcPKc+0xcdd) [0x7f829b3b0a2d]
/code/node_modules/nodehun/build/Release/Nodehun.node(_ZN13SuggestWorker7ExecuteEv+0x4e) [0x7f829b3a617e]
node() [0x1308e0e]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x74a4) [0x7f82a2bd54a4]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x3f) [0x7f82a2917d0f]

I noticed that they have had similar problems in hunspell, maybe it is related? https://github.com/hunspell/hunspell/commit/ac938e2ecb48ab4dd21298126c7921689d60571b

luddd3 commented 4 years ago

The crash was due to emojis...