Nedit crash with Segmentation fault

Bug #1442854 reported by Mazen
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nedit (Ubuntu)
New
Undecided
Unassigned

Bug Description

-- uname --

$ uname -a
Linux asus 3.19.0-10-generic #10-Ubuntu SMP Mon Mar 23 16:25:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

-- lsb_release --
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Vivid Vervet (development branch)
Release: 15.04
Codename: vivid

-- dpkg --
$ dpkg -l | grep nedit
ii nedit 1:5.6-1 amd64 powerful, customizable, Motif based text editor
ii nedit-dbg 1:5.6-1 amd64 debugging symbols for nedit

-- apt-cache policy --
$ apt-cache policy nedit
nedit:
  Installé : 1:5.6-1
  Candidat : 1:5.6-1
 Table de version :
 *** 1:5.6-1 0
        500 http://fr.archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages
        100 /var/lib/dpkg/status

-- nedit --
$ nedit
Erreur de segmentation (core dumped)

-- gdb --
$ gdb nedit
GNU gdb (Ubuntu 7.9-1ubuntu1) 7.9
Copyright (C) 2015 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-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from nedit...Reading symbols from /usr/lib/debug/.build-id/ce/10166e665ca9b57c84ebbd1c1b4fa8740bf845.debug...done.
done.
(gdb) run
Starting program: /usr/bin/nedit
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
initialize (request=0x7fffffffa410, new=0x555555b9f660) at text.c:781
781 text.c: Aucun fichier ou dossier de ce type.
(gdb) bt
#0 initialize (request=0x7fffffffa410, new=0x555555b9f180) at text.c:781
#1 0x00007ffff76c0afc in ?? () from /usr/lib/x86_64-linux-gnu/libXt.so.6
#2 0x00007ffff76c1427 in ?? () from /usr/lib/x86_64-linux-gnu/libXt.so.6
#3 0x00007ffff76c1840 in _XtCreateWidget () from /usr/lib/x86_64-linux-gnu/libXt.so.6
#4 0x00007ffff76ef74e in ?? () from /usr/lib/x86_64-linux-gnu/libXt.so.6
#5 0x00007ffff76efb18 in XtVaCreateManagedWidget () from /usr/lib/x86_64-linux-gnu/libXt.so.6
#6 0x000055555559c4e6 in createTextArea (parent=parent@entry=0x555555b92900, window=window@entry=0x555555a70440, rows=24, cols=80, emTabDist=0,
    delimiters=delimiters@entry=0x5555558d91fc <PrefData+4732> ".,/\\`'!|@#%^&*()-=+{}[]\":;<>?", wrapMargin=0, lineNumCols=0) at window.c:2248
#7 0x00005555555a2ae3 in CreateWindow (name=name@entry=0x7fffffffad20 "Untitled", geometry=<optimized out>, geometry@entry=0x0, iconic=iconic@entry=0)
    at window.c:718
#8 0x000055555558fc06 in EditNewFile (inWindow=0x0, geometry=0x0, iconic=0, languageMode=0x0, defaultPath=0x0) at file.c:129
#9 0x000055555558d202 in main (argc=1, argv=0x555555b9f180) at nedit.c:799

Tags: nedit vivid
Revision history for this message
Paul Gevers (paul-climbing) wrote :

Graham, do you think this is the same as bug 1354961?

Revision history for this message
Mazen (mezen) wrote :

maybe but in my case, nedit doesnt run anyway, the crash was immediate.

Revision history for this message
Mazen (mezen) wrote :
Revision history for this message
Paul Gevers (paul-climbing) wrote :

Seems like this is a duplicate of 1415309.

Are you by any chance also running lubuntu?

Revision history for this message
Mazen (mezen) wrote :

No, I am running ubuntu gnome-session-flashback

CurrentDesktop: GNOME-Flashback:Unity

Revision history for this message
Graham Inggs (ginggs) wrote :

@Paul:
> Graham, do you think this is the same as bug 1354961?
I don't think so, but it should be easy to test.

@Mazen: can you install Motif from my PPA below please and see if it makes a difference?
https://launchpad.net/~ginggs/+archive/ubuntu/motif1565

I haven't been able to get Nedit to crash yet. I have tried unity and gnome flashback (compiz and metacity).

Revision history for this message
Mazen (mezen) wrote :

@Graham:
I installed motif from this ppa "ppa:ginggs/motif1565" but the issue remains the same.

$ dpkg -l | grep motif
ii libmotif-common 2.3.4-8~ppa4 all Motif - common files

$ nedit
Erreur de segmentation (core dumped)

Revision history for this message
Graham Inggs (ginggs) wrote :

@Mazen: Thanks for confirming.

Revision history for this message
Mazen (mezen) wrote :

Just in case, I solved the problem by creating a file ~/.Xdefaults where I put this line

$ cat .Xdefaults
*font: -*-dina-medium-r-*-*-16-*-*-*-*-*-*-*

No crash for nedit this time.

When I remove the file ".Xdefaults" or rename it to something else, nedit segfaults.This seems like nedit cannot find the default fonts...

Revision history for this message
Bob Presswood (rpressw) wrote :

I believe it's hard to say that this problem is due to a single issue. For me, nedit successfully upgraded on 2 machines going from 15.10 -> 16.04. But i saw the segfault on a VM created from scratch. I observed that ~/.nedit was unpopulated -- no nedit.rc.

My solution was to place a copy of nedit.rc from a working machine into ~/.nedit in the VM. After that, things were good.

Revision history for this message
Paul Gevers (paul-climbing) wrote : Re: [Bug 1442854] Re: Nedit crash with Segmentation fault

Hi Bob,

On 25-04-16 00:26, Bob Presswood wrote:
> *** This bug is a duplicate of bug 1415309 ***
> https://bugs.launchpad.net/bugs/1415309
>
> I believe it's hard to say that this problem is due to a single issue.
> For me, nedit successfully upgraded on 2 machines going from 15.10 ->
> 16.04. But i saw the segfault on a VM created from scratch. I observed
> that ~/.nedit was unpopulated -- no nedit.rc.
>
> My solution was to place a copy of nedit.rc from a working machine into
> ~/.nedit in the VM. After that, things were good.

On your system from scratch, do you have xfonts-100dpi or xfonts-75dpi
installed as recommended by nedit?

Paul

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.