Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

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
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Jan de Groot (JGC)
Eric Belanger (Snowman)
Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No


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/".
[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/
(gdb) bt
#0 0x00007fff9a775a87 in () at /usr/lib/enchant/
#1 0x00007fffee0d9c15 in () at /usr/lib/
#2 0x00007fffee0dba37 in enchant_broker_dict_exists () at /usr/lib/
#3 0x00007ffff66f5165 in () at /usr/lib/
#4 0x00007ffff59cf75a in webkit_web_context_set_spell_checking_languages () at /usr/lib/
#5 0x0000555555556f1d in ()
#6 0x0000555555556519 in ()
#7 0x00007ffff1509f6a in __libc_start_main () at /usr/lib/
#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:

But I do not believe it does. Is there any webkit2gtk-based browser that enables enchant and does not segfault with the new libs?

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
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.