FS#56426 - [enchant] voikko backend crashes
Attached to Project:
Arch Linux
Opened by Gaetan Bisson (vesath) - Friday, 24 November 2017, 00:23 GMT
Last edited by Jan Alexander Steffens (heftig) - Friday, 24 November 2017, 09:49 GMT
Opened by Gaetan Bisson (vesath) - Friday, 24 November 2017, 00:23 GMT
Last edited by Jan Alexander Steffens (heftig) - Friday, 24 November 2017, 09:49 GMT
|
Details
I've got a small webkit2gtk-based browser which uses:
webkit_web_context_set_spell_checking_enabled(c, true); webkit_web_context_set_spell_checking_languages(c, lang); After updating webkit2gtk to 2.18.3-3 and enchant to 2.1.2-1 (both from [testing]) I get the following segfault: (gdb) run Starting program: /usr/bin/squaw [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". [New Thread 0x7fffe2634700 (LWP 19971)] [New Thread 0x7fffa19ff700 (LWP 19972)] [New Thread 0x7fffa11fe700 (LWP 19973)] [New Thread 0x7fffa09fd700 (LWP 19974)] [New Thread 0x7fff9b9ff700 (LWP 19975)] Thread 1 "squaw" received signal SIGSEGV, Segmentation fault. 0x00007fff9a775a87 in ?? () from /usr/lib/enchant/enchant_voikko.so (gdb) bt #0 0x00007fff9a775a87 in () at /usr/lib/enchant/enchant_voikko.so #1 0x00007fffee0d9c15 in () at /usr/lib/libenchant.so.2 #2 0x00007fffee0dba37 in enchant_broker_dict_exists () at /usr/lib/libenchant.so.2 #3 0x00007ffff66f5165 in () at /usr/lib/libwebkit2gtk-4.0.so.37 #4 0x00007ffff59cf75a in webkit_web_context_set_spell_checking_languages () at /usr/lib/libwebkit2gtk-4.0.so.37 #5 0x0000555555556f1d in () #6 0x0000555555556519 in () #7 0x00007ffff1509f6a in __libc_start_main () at /usr/lib/libc.so.6 #8 0x00005555555569ca in () (gdb) quit Same after rebuilding squaw against the new libraries. However all is well if I remove those two lines above from the source C file that enable spell_checking... Here's the source if it matters: https://fenua.org/gaetan/src/squaw-3.1.c But I do not believe it does. Is there any webkit2gtk-based browser that enables enchant and does not segfault with the new libs? Cheers. |
This task depends upon
Closed by Jan Alexander Steffens (heftig)
Friday, 24 November 2017, 09:49 GMT
Reason for closing: Fixed
Additional comments about closing: enchant 2.1.2-2
Friday, 24 November 2017, 09:49 GMT
Reason for closing: Fixed
Additional comments about closing: enchant 2.1.2-2
Comment by
Jan Alexander Steffens (heftig) -
Friday, 24 November 2017, 09:41 GMT
The enchant voikko backend dereferences a NULL pointer when voikko
supports no languages.