Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 692950 - dev-libs/darts-0.32: Segmentation fault in Darts::DoubleArrayImpl::commonPrefixSearch
Summary: dev-libs/darts-0.32: Segmentation fault in Darts::DoubleArrayImpl::commonPref...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: CJK Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-27 13:09 UTC by timemars
Modified: 2019-09-29 02:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
gdb snippet (gdb_snippet,45.55 KB, text/plain)
2019-08-27 13:09 UTC, timemars
Details
emerge --info (emerge_info,5.55 KB, text/plain)
2019-08-27 13:10 UTC, timemars
Details

Note You need to log in before you can comment on or make changes to this bug.
Description timemars 2019-08-27 13:09:19 UTC
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.
Comment 1 timemars 2019-08-27 13:10:17 UTC
Created attachment 588262 [details]
emerge --info
Comment 2 Arfrever Frehtes Taifersar Arahesis 2019-08-28 00:11:57 UTC
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
Comment 3 timemars 2019-08-28 10:30:49 UTC
(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.
Comment 4 Arfrever Frehtes Taifersar Arahesis 2019-08-28 17:17:46 UTC
I will add new ebuild of dev-libs/darts using Darts-clone.
Comment 5 Larry the Git Cow gentoo-dev 2019-09-29 02:56:40 UTC
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(-)