Created attachment 588260 [details] gdb snippet Hi there, When I switch to rime and try to type something, ibus-engine-rime crashes. Message in dmesg: ibus-engine-rim[56708]: segfault at 7f12a79ac13c ip 00007f12a75d0508 sp 00007ffce69954b0 error 4 in librime.so.1.5.3[7f12a7520000+13b000] The gdb snippet indicates that it may be related to /usr/include/darts.h, which belongs to dev-libs/darts. The following commit moves to dev-libs/darts from bundled headers: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19f971b93a9ca2efdf137981449a1958c84c9d40 I revert the above commit and recompile librime, the issue disappears.
Created attachment 588262 [details] emerge --info
Problem may be related to dev-libs/darts-0.32 being quite old and apparently no longer maintained. There is a slightly more actively maintained fork called "darts-clone" (https://github.com/s-yata/darts-clone). Switching dev-libs/darts Gentoo package to use newest version of darts-clone is likely to fix problem. Please perform the following testing: 1. Replace /usr/include/darts.h header: # wget https://raw.githubusercontent.com/s-yata/darts-clone/master/include/darts.h -O /tmp/darts.h # cat /tmp/darts.h > /usr/include/darts.h 2. Rebuild app-i18n/librime-1.5.3 (without reverted any commits) 3. Test app-i18n/ibus-rime
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #2) > Problem may be related to dev-libs/darts-0.32 being quite old and apparently > no longer maintained. > There is a slightly more actively maintained fork called "darts-clone" > (https://github.com/s-yata/darts-clone). > > Switching dev-libs/darts Gentoo package to use newest version of darts-clone > is likely to fix problem. > > > Please perform the following testing: > > 1. Replace /usr/include/darts.h header: > > # wget > https://raw.githubusercontent.com/s-yata/darts-clone/master/include/darts.h > -O /tmp/darts.h > # cat /tmp/darts.h > /usr/include/darts.h > > 2. Rebuild app-i18n/librime-1.5.3 (without reverted any commits) > > 3. Test app-i18n/ibus-rime It works. Thanks Arfrever.
I will add new ebuild of dev-libs/darts using Darts-clone.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=618f64cbe4c3bfb29e70881dc0f2c9a2a88f086c commit 618f64cbe4c3bfb29e70881dc0f2c9a2a88f086c Author: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> AuthorDate: 2019-09-28 03:01:59 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2019-09-29 02:56:14 +0000 dev-libs/darts: Use sources from Darts-clone (fork of Darts). Fixes: https://bugs.gentoo.org/692950 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> Signed-off-by: Mike Gilbert <floppym@gentoo.org> dev-libs/darts/Manifest | 1 + .../darts/darts-0.32h_pre20181117064816.ebuild | 57 ++++++++++++++++++++++ dev-libs/darts/darts-9999.ebuild | 57 ++++++++++++++++++++++ dev-libs/darts/metadata.xml | 11 +++-- 4 files changed, 122 insertions(+), 4 deletions(-)