Bug 1758676 - running nedit in remote desktop (xrdp) seg faults
Summary: running nedit in remote desktop (xrdp) seg faults
Keywords:
Status: NEW
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: nedit
Version: epel7
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jindrich Novy
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-10-04 20:01 UTC by Giacomo G. Brussino
Modified: 2024-05-17 00:19 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Giacomo G. Brussino 2019-10-04 20:01:06 UTC
Description of problem: When I start nedit on a remote desktop from a Win 10 to a RHEL 7 (xrdp) nedit seg faults


Version-Release number of selected component (if applicable):

nedit.x86_64 5.7-1.el7

xrdp 1:0.9.11-1.el7
xorgxrdp 0.2.11-1.el7

How reproducible: always


Steps to Reproduce:
1. remote desktop to a RHEL 7 system
2. start nedit
3.

Actual results:

nedit: the current locale is utf8 (en_US.UTF-8)
nedit: changed locale to non-utf8 (en_US)
Segmentation fault (core dumped)

Expected results:

It should work.

Additional info:

$ gdb nedit
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-115.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/nedit...Reading symbols from /usr/lib/debug/usr/bin/nedit.debug...done.
done.
(gdb) run
Starting program: /bin/nedit 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
nedit: the current locale is utf8 (en_US.UTF-8)
nedit: changed locale to non-utf8 (en_US)

Program received signal SIGSEGV, Segmentation fault.
FindBestVisual (display=0x8bc840, appName=appName@entry=0x513876 "nedit", 
    appClass=appClass@entry=0x4e83a2 "NEdit", 
    visual=visual@entry=0x7fffffffbb68, depth=depth@entry=0x7fffffffbb64, 
    colormap=colormap@entry=0x7fffffffbb70) at misc.c:405
405	    reqID = DefaultVisual(display, screen)->visualid;
(gdb) where
#0  FindBestVisual (display=0x8bc840, appName=appName@entry=0x513876 "nedit", 
    appClass=appClass@entry=0x4e83a2 "NEdit", 
    visual=visual@entry=0x7fffffffbb68, depth=depth@entry=0x7fffffffbb64, 
    colormap=colormap@entry=0x7fffffffbb70) at misc.c:405
#1  0x000000000040a033 in patchResourcesForVisual () at nedit.c:937
#2  main (argc=1, argv=0x7fffffffdcb8) at nedit.c:509
(gdb)

Comment 1 David Redmond 2022-10-18 15:05:32 UTC
I recently encountered this. I narrowed it down to the Remote Desktop Connection using 32bit color. If I connect using anything other than 32bit color the segmentation fault does not occur.

Comment 2 Mai Ling 2023-06-25 13:23:29 UTC
thanks @davidredmon, the issue persists in EL9 and the workaround also works.

Comment 3 Fedora Admin user for bugzilla script actions 2024-05-17 00:19:38 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.


Note You need to log in before you can comment on or make changes to this bug.