Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 591912 - app-editors/nedit-5.6-r1 - Avoid crash and fallback to fixed when there is no X core font
Summary: app-editors/nedit-5.6-r1 - Avoid crash and fallback to fixed when there is no...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Amy Liffey
URL: https://sourceforge.net/p/nedit/git/c...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2016-08-23 11:16 UTC by Hadrien Lacour
Modified: 2018-03-13 09:26 UTC (History)
1 user (show)

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


Attachments
emerge_info.log (emerge_info.log,14.28 KB, text/plain)
2016-08-23 11:16 UTC, Hadrien Lacour
Details
gdb output (gdb.txt,1.21 KB, text/plain)
2016-08-23 16:57 UTC, Hadrien Lacour
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hadrien Lacour 2016-08-23 11:16:00 UTC
Created attachment 443904 [details]
emerge_info.log

nedit segfaults when I try to run it via "nedit" (neditc doesn't, but of course needs a server).
Comment 1 Alex Xu (Hello71) 2016-08-23 16:51:50 UTC
$ gdb nedit
(gdb) run
[ ... ] stopped by SIGSEGV
(gdb) thread apply all bt full
Comment 2 Hadrien Lacour 2016-08-23 16:57:12 UTC
Created attachment 443956 [details]
gdb output
Comment 3 Hadrien Lacour 2016-08-24 09:10:17 UTC
I compiled git and it works. Apparently, https://sourceforge.net/p/nedit/git/ci/1a441b957a7f37bb9ab7ae15fefd3f41d59b3da4/ is needed as a patch.
Comment 4 Rees Machtemes 2017-12-05 06:20:55 UTC
Just ran into this bug myself. Any update on including this patch?

Another method to fix this would be to add the adobe-75dpi-fonts and adobe-wood Pi-fonts as deps in the ebuild or mention it in the post install?

It might save users a lot of time trouble shooting.
Comment 5 Will Simoneau 2018-03-12 23:42:34 UTC
I think I just ran into this myself... I installed nedit-5.6-r1 just now to try it out, but all it does is segfault. Cool!

(gdb) run
Starting program: /usr/bin/nedit 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
initialize (request=0x7fffffffa280, new=0x555555b91330) at text.c:781
781	    int charWidth = fs->max_bounds.width;
(gdb) bt
#0  initialize (request=0x7fffffffa280, new=0x555555b91330) at text.c:781
#1  0x00007ffff76b98dc in ?? () from /usr/lib64/libXt.so.6
#2  0x00007ffff76ba278 in ?? () from /usr/lib64/libXt.so.6
#3  0x00007ffff76ba6b2 in _XtCreateWidget () from /usr/lib64/libXt.so.6
#4  0x00007ffff76e9b90 in ?? () from /usr/lib64/libXt.so.6
#5  0x00007ffff76e9fc3 in XtVaCreateManagedWidget () from /usr/lib64/libXt.so.6
#6  0x000055555559b29c in createTextArea (parent=parent@entry=0x555555b84720, 
    window=window@entry=0x555555a06c10, rows=24, cols=80, emTabDist=0, 
    delimiters=delimiters@entry=0x5555558daa70 <PrefData+4720> ".,/\\`'!|@#%^&*()-=+{}[]\":;<>?", wrapMargin=0, lineNumCols=0) at window.c:2242
#7  0x00005555555a16f1 in CreateWindow (
    name=name@entry=0x7fffffffaba0 "Untitled", geometry=<optimized out>, 
    geometry@entry=0x0, iconic=iconic@entry=0) at window.c:716
#8  0x000055555558ea56 in EditNewFile (inWindow=0x0, geometry=0x0, iconic=0, 
    languageMode=0x0, defaultPath=0x0) at file.c:129
#9  0x000055555558c01d in main (argc=<optimized out>, argv=<optimized out>)
    at nedit.c:799
(gdb) p fs
$1 = (XFontStruct *) 0x0

I guess ~19 months isn't enough time to get what appears to be a known fix (itself ~31 months old) incorporated...?
Comment 6 Larry the Git Cow gentoo-dev 2018-03-13 09:26:45 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06f8269c38f50f99683311ebb84658cb7a87b865

commit 06f8269c38f50f99683311ebb84658cb7a87b865
Author:     Amy Liffey <amynka@gentoo.org>
AuthorDate: 2018-03-13 08:57:55 +0000
Commit:     Amy Liffey <amynka@gentoo.org>
CommitDate: 2018-03-13 09:05:26 +0000

    app-editors/nedit: fix X core font crash
    
    Closes: https://bugs.gentoo.org/591912
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 .../nedit/files/nedit-5.6-fix-crash-with-noX.patch | 118 +++++++++++++++++++++
 app-editors/nedit/files/nedit-5.6-ldflags.patch    |   4 +-
 app-editors/nedit/nedit-5.6-r2.ebuild              |  78 ++++++++++++++
 3 files changed, 198 insertions(+), 2 deletions(-)