https://bugzilla.redhat.com/show_bug.cgi?id=1704156
Bug ID: 1704156 Summary: [abrt] ibus-m17n: m17n_object_unref(): ibus-engine-m17n killed by SIGSEGV Product: Fedora Version: 29 Hardware: x86_64 Status: NEW Whiteboard: abrt_hash:4b1ea4bae35844c156898b862e03cf9cd449a4ca;VAR IANT_ID=workstation; Component: ibus-m17n Assignee: pnemade@redhat.com Reporter: rdirective@gmail.com QA Contact: extras-qa@fedoraproject.org CC: i18n-bugs@lists.fedoraproject.org, mfabian@redhat.com, pnemade@redhat.com, shawn.p.huang@gmail.com Target Milestone: --- Classification: Fedora
Description of problem: I was trying to type some Vietnamese text in Gnome Text-Editor through Vietnamese(telex(m17n)) input. There was a notification that m17n crashed following completion of the first word and hitting spacebar. I did not encounter such a crash while typing Vietnamese at Gnome Terminal or while using vim.
Version-Release number of selected component: ibus-m17n-1.4.1-1.fc29
Additional info: reporter: libreport-2.10.0 backtrace_rating: 4 cmdline: /usr/libexec/ibus-engine-m17n --ibus crash_function: m17n_object_unref executable: /usr/libexec/ibus-engine-m17n journald_cursor: s=19398682d6cf44d887f8be3b65f5a979;i=4a2c2;b=0f26bd5cf96a4178810f20ab364d8495;m=1640596f9;t=587a72cf11209;x=43dc55abbb3f7630 kernel: 5.0.9-200.fc29.x86_64 rootdir: / runlevel: N 5 type: CCpp uid: 1000
Truncated backtrace: Thread no. 1 (10 frames) #0 m17n_object_unref at m17n-core.c:933 #1 ibus_m17n_engine_callback at engine.c:1041 #2 minput_callback at input.c:6949 #3 get_surrounding_text at input.c:605 #4 get_preceding_char at input.c:645 #5 integer_value at input.c:754 #6 resolve_expression at input.c:808 #7 take_action_list at input.c:3480 #8 handle_key at input.c:3619 #9 filter at input.c:4205
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
Fatmice rdirective@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |https://retrace.fedoraproje | |ct.org/faf/reports/bthash/a | |ae39bbd01fee92c4bda4e1d621c | |1e13a1c1d64e
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
--- Comment #2 from Fatmice rdirective@gmail.com --- Created attachment 1559815 --> https://bugzilla.redhat.com/attachment.cgi?id=1559815&action=edit File: backtrace
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
--- Comment #3 from Fatmice rdirective@gmail.com --- Created attachment 1559817 --> https://bugzilla.redhat.com/attachment.cgi?id=1559817&action=edit File: core_backtrace
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
--- Comment #4 from Fatmice rdirective@gmail.com --- Created attachment 1559818 --> https://bugzilla.redhat.com/attachment.cgi?id=1559818&action=edit File: cpuinfo
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
--- Comment #5 from Fatmice rdirective@gmail.com --- Created attachment 1559819 --> https://bugzilla.redhat.com/attachment.cgi?id=1559819&action=edit File: dso_list
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
--- Comment #6 from Fatmice rdirective@gmail.com --- Created attachment 1559820 --> https://bugzilla.redhat.com/attachment.cgi?id=1559820&action=edit File: environ
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
--- Comment #7 from Fatmice rdirective@gmail.com --- Created attachment 1559821 --> https://bugzilla.redhat.com/attachment.cgi?id=1559821&action=edit File: exploitable
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
--- Comment #9 from Fatmice rdirective@gmail.com --- Created attachment 1559822 --> https://bugzilla.redhat.com/attachment.cgi?id=1559822&action=edit File: limits
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
--- Comment #10 from Fatmice rdirective@gmail.com --- Created attachment 1559824 --> https://bugzilla.redhat.com/attachment.cgi?id=1559824&action=edit File: mountinfo
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
--- Comment #12 from Fatmice rdirective@gmail.com --- Created attachment 1559825 --> https://bugzilla.redhat.com/attachment.cgi?id=1559825&action=edit File: open_fds
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
Mike FABIAN mfabian@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|pnemade@redhat.com |mfabian@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
--- Comment #13 from Mike FABIAN mfabian@redhat.com --- The problem occurs only in Gnome Wayland, not in Gnome Xorg.
Probably because surrounding text does not work correctly in Gnome Wayland, see: https://bugzilla.redhat.com/show_bug.cgi?id=1625626
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
Mike FABIAN mfabian@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hacrot3000@gmail.com
--- Comment #14 from Mike FABIAN mfabian@redhat.com --- *** Bug 1702937 has been marked as a duplicate of this bug. ***
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
--- Comment #15 from Mike FABIAN mfabian@redhat.com --- Created attachment 1560013 --> https://bugzilla.redhat.com/attachment.cgi?id=1560013&action=edit typing-booster-vi-telex.png
As a workaround, you can use ibus-typing-booster with the setting as shown in this screenshot. In ibus-typing-booster, the vi-telex input method works both in Gnome Wayland and Gnome Xorg.
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
--- Comment #16 from Fatmice rdirective@gmail.com --- Yes the workaround does work. Is there a reason why the bug only manifested itself outside of Gnome Terminal while under Wayland? Should I close this bug report given that the workaround?
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
--- Comment #17 from Mike FABIAN mfabian@redhat.com --- I think Gnome Terminal does not support surrounding text. Gedit claims to support surrounding text, but under Wayland it doesn’t work right. Of course, ibus-m17n should not crash in these conditions, it should work around it somehow. As ibus-typing-booster works even in gedit in Gnome Wayland, it should be possible to make a workaround for ibus-m17n as well.
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
--- Comment #18 from Fatmice rdirective@gmail.com --- Please excuse my ignorance but I don't know the practical meaning of "surrounding text". I do know that Vietnamese(telex(m17n)) input does work under wayland but only while within gnome terminal or in a vim session. I assume it should also work within a screen session but I haven't tried. Below are two clips attesting to that claim. Your workaround works in all situations (thank you) although the dictionary lookup is a tad slow but that is not a problem. I usually prefer the m17n as it is quicker if I need to type up a small paragraph, which can just be done within vim.
Gnome-terminal: https://streamable.com/4o7yb Vim: https://streamable.com/q0sa3
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
--- Comment #19 from Mike FABIAN mfabian@redhat.com --- "Surrounding text" means that the input method can ask the application what text is already there in the application. I.e. the input method can ask gedit what text is already there in the line one is typing in and even modify that already existing text. This feature can be helpful in some cases. Some input methods like ibus-m17n and ibus-typing-booster try to use that feature. They first check if the application currently typed into supports this feature or not. In case of gnome-terminal, this feature is not supported, so ibus-m17n and ibus-typing-booster try to work without it. But in case of gedit, the check returns that this feature *is* supported, so ibus-m17n and ibus-typing-booster try to use it. In case of gedit running in Gnome under Xorg this is no problem because in that case surrounding text actually works. But in case of gedit running in Gnome under Wayland, the surrounding text feature is broken.
See for example this bug: https://bugzilla.redhat.com/show_bug.cgi?id=1625626
That this surrounding feature is broken does not necessarily mean that the input method crashes, in case of ibus-typing-booster input using vi-telex works nevertheless (maybe just by accident, but it happens to work). But in case of ibus-m17n, the broken surrounding text support in Gnome Wayland causes a crash.
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
Mike FABIAN mfabian@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED
--- Comment #20 from Mike FABIAN mfabian@redhat.com --- (In reply to Fatmice from comment #18)
Below are two clips attesting to that claim. Your workaround works in all situations (thank you) although the dictionary lookup is a tad slow but that is not a problem.
You may avoid the dictinary lookup by using the option "Enable suggestions by key (Default is Tab key)" in ibus-typing-booster. If that option is used, dictionary lookups are not done until you press the Tab key. That way you can have higher speed if you don't need the dictionary lookups but can still try to complete a word from the dictionary by typing Tab if it makes sense for that word.
If you never ever want any dictionary lookups, you could use the option "Enable suggestions by key (Default is Tab key)" *and* go to the key bindings settings and set the key binding for the "enable_lookup" command to empty.
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
--- Comment #21 from Mike FABIAN mfabian@redhat.com --- Created attachment 1560207 --> https://bugzilla.redhat.com/attachment.cgi?id=1560207&action=edit Fix-segmentation-fault-when-using-ibus-m17n-with-vi-telex-in-gedit-in-wayland.patch
Patch to fix the crash in m17n-lib.
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |MODIFIED
--- Comment #22 from Fedora Update System updates@fedoraproject.org --- m17n-lib-1.8.0-5.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-bebe0df670
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
--- Comment #23 from Fedora Update System updates@fedoraproject.org --- m17n-lib-1.8.0-3.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-81623a624c
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
--- Comment #24 from Fedora Update System updates@fedoraproject.org --- m17n-lib-1.8.0-2.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2019-15acb7c928
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
--- Comment #26 from Fedora Update System updates@fedoraproject.org --- m17n-lib-1.8.0-2.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-15acb7c928
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
--- Comment #25 from Fedora Update System updates@fedoraproject.org --- m17n-lib-1.8.0-5.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-bebe0df670
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
--- Comment #27 from Fedora Update System updates@fedoraproject.org --- m17n-lib-1.8.0-3.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-81623a624c
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
--- Comment #28 from Fatmice rdirective@gmail.com --- I've tried the patch. Seems to be working. I can use telex-m17n now in Gnome Text or LibreOffice.
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
--- Comment #29 from Mike FABIAN mfabian@redhat.com --- (In reply to Fatmice from comment #28)
I've tried the patch. Seems to be working. I can use telex-m17n now in Gnome Text or LibreOffice.
Thank you!
by the way, I am also interested in any feedback about ibus-typing-booster.
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
--- Comment #30 from Fatmice rdirective@gmail.com --- ibus-typing-booster works great now without the constant dictionary lookup after I've tweaked as you suggested to use only tab for lookup. I've used ibus-typing-booster with both vni and telex. The patch has been working without a hitch though it did cause a crash right after patching (sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2019-93e8185425) when it complained about libm17n.so.0.4.2 being deleted...I've been unable to reproduce that crash so maybe it was only a fluke.
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
--- Comment #31 from Fatmice rdirective@gmail.com --- I meant to say (sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2019-81623a624c) not (sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2019-93e8185425)...The former is yours while the latter is for lifeograph, which I had accidentally copy and pasted.
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
--- Comment #32 from hacrot3000@gmail.com --- Thank You for you all when working on this item. I cannot verify but I think it has been fixed on Fedora 30.
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
--- Comment #33 from Mike FABIAN mfabian@redhat.com --- (In reply to Fatmice from comment #30)
ibus-typing-booster works great now without the constant dictionary lookup after I've tweaked as you suggested to use only tab for lookup. I've used ibus-typing-booster with both vni and telex.
Great, thank you!
The patch has been working without a hitch though it did cause a crash right after patching (sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2019-93e8185425) when it complained about libm17n.so.0.4.2 being deleted...I've been unable to reproduce that crash so maybe it was only a fluke.
Yes, probably.
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Resolution|--- |ERRATA Last Closed| |2019-05-10 00:47:15
--- Comment #34 from Fedora Update System updates@fedoraproject.org --- m17n-lib-1.8.0-5.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
--- Comment #35 from Fedora Update System updates@fedoraproject.org --- m17n-lib-1.8.0-2.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=1704156
--- Comment #36 from Fedora Update System updates@fedoraproject.org --- m17n-lib-1.8.0-3.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.
i18n-bugs@lists.fedoraproject.org