LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 10-25-2012, 06:46 PM   #1
perseus12
LQ Newbie
 
Registered: Oct 2012
Distribution: Slackware 14.0
Posts: 20

Rep: Reputation: Disabled
NEdit crashes on 14.0 32bit


Anyone using NEdit on 32bits Slackware 14.0?

I have tried the v5.5 static build and it crashes on startup with segmentation fault.

Using a more recent snapshot of source built against lesstif
v0.95.2 it starts up, but as soon as you press a double key combo like ctrl-c, it crashes.

I was using the static 5.5 version successfully on 13.37.

Thanks.
 
Old 10-28-2012, 05:08 AM   #2
sairum
LQ Newbie
 
Registered: Sep 2004
Distribution: Slackware
Posts: 17

Rep: Reputation: 7
I'm using it (v5.5 static compiled version) on Slackware 14.0, 64bit multilib without a single problem.

Antonio
 
Old 10-31-2012, 02:17 PM   #3
s1aw0
LQ Newbie
 
Registered: Jun 2012
Posts: 17

Rep: Reputation: Disabled
Quote:
Originally Posted by perseus12 View Post
Anyone using NEdit on 32bits Slackware 14.0?

I have tried the v5.5 static build and it crashes on startup with segmentation fault.
Do you use a UTF8 locale in Slack-14.0? If so, try starting nedit, e.g., this way:
env LANG=C nedit
 
Old 11-02-2012, 01:42 PM   #4
perseus12
LQ Newbie
 
Registered: Oct 2012
Distribution: Slackware 14.0
Posts: 20

Original Poster
Rep: Reputation: Disabled
sairum, slaw0: I'm glad nedit is working for you - it means there is still hope for me; I thought that it was the end of an era!

No luck with locale, it crashes as normal.
~$ env LANG=C nedit
Segmentation fault
~$

On my 32 bit installation locale is:
bash-4.2$ locale
LANG=en_US
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE=C
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=

Could that be a problem?
Also for me 'ldd nedit' produces:
linux-gate.so.1 (0xffffe000)
libXp.so.6 => /usr/lib/libXp.so.6 (0xb7787000)
libXpm.so.4 => /usr/lib/libXpm.so.4 (0xb7776000)
libXext.so.6 => /usr/lib/libXext.so.6 (0xb7765000)
libXt.so.6 => /usr/lib/libXt.so.6 (0xb7709000)
libSM.so.6 => /usr/lib/libSM.so.6 (0xb7701000)
libICE.so.6 => /usr/lib/libICE.so.6 (0xb76e7000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb75b1000)
libm.so.6 => /lib/libm.so.6 (0xb7585000)
libc.so.6 => /lib/libc.so.6 (0xb7400000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb73df000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb73d9000)
libdl.so.2 => /lib/libdl.so.2 (0xb73d3000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb73d0000)
libuuid.so.1 => /lib/libuuid.so.1 (0xb73cc000)
/lib/ld-linux.so.2 (0xb77aa000)

It is the same for both of you? Do you have a standard and full Slackware installation? I have a, ap, d, l, n, x installed completely.

If I force a core dump and then look at this with gdb I get:
---snip---
Reading symbols from /tmp/nedit-5.5-Linux-x86/nedit...(no debugging symbols found)...done.
[New LWP 11516]

warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
Core was generated by `nedit'.
Program terminated with signal 11, Segmentation fault.
#0 0xb73f8108 in __overflow () from /lib/libc.so.6
(gdb)
---snip---

How can I find out exactly where its crashing; I suspect it is in some X related
lib; what else can I try?

Thanks.
 
Old 11-02-2012, 02:26 PM   #5
s1aw0
LQ Newbie
 
Registered: Jun 2012
Posts: 17

Rep: Reputation: Disabled
perseus12: I see my initial guess that the problem relates to UTF8 was probably wrong. I have changed my UTF8 locale settings to the stock ones (i.e., those you are using) but nedit still crashes. But, contrary to your case, it starts fine with "env LANG=C nedit".

I have stock Slackware-14.0 installation with a few libraries and programs added but none of them is used by nedit, as far as I can judge. "ldd nedit" shows exactly the same list of libraries as you listed.

Actually, I am a bit lost. I used to run nedit in Slack-13.37 with the en_US locale, and it worked fine. Will let you know if I have an idea.
 
Old 11-03-2012, 06:16 AM   #6
perseus12
LQ Newbie
 
Registered: Oct 2012
Distribution: Slackware 14.0
Posts: 20

Original Poster
Rep: Reputation: Disabled
I decided to workaround this problem by building openmotif and using it instead of lesstif and got succees. Btw I am now using Nedit v5.6 source which I got from

'http://fossies.org/unix/privat/nedit-latest-sources-HEAD.tar.gz/'

I'm going to mark this thread as solved even though the problem I am having with Slackware libs is NOT solved.

Thank you all for your help.
 
Old 11-04-2012, 12:56 PM   #7
sairum
LQ Newbie
 
Registered: Sep 2004
Distribution: Slackware
Posts: 17

Rep: Reputation: 7
Hi again!

Nedit has always been my preferred text editor (and it still is). Regarding your question, the results of both 'locale' and 'ldd' are just like yours (above). Hence, there seems to be nothing wrong with the binaries nor the environment. On the other hand, the error of the core dump referring linux-gate.so.1 (see http://www.trilithium.com/johan/2005/08/linux-gate/) reminded me of something related with a VDSO parameter in the kernel. This is a long shot, but might be worth trying. Nowadays, in my 3.6 Kernel configuration I have "Processor type and features"--->"Compat VDSO support" set to N (none), but I recall a time where setting this to N would break a lot of things, especially if "old" software was involved. The kernel help says:

│ Map the 32-bit VDSO to the predictable old-style address too. │
│ │
│ Say N here if you are running a sufficiently recent glibc │
│ version (2.3.3 or later), to remove the high-mapped │
│ VDSO mapping and to exclusively use the randomized VDSO. │
│ │
│ If unsure, say Y. │

You may try enabling or disabling it, depending on its default state.

Antonio
 
Old 11-05-2012, 07:15 AM   #8
perseus12
LQ Newbie
 
Registered: Oct 2012
Distribution: Slackware 14.0
Posts: 20

Original Poster
Rep: Reputation: Disabled
sairum:

Yes nedit has always been my preferred ed as well, although because of the recent problem with nedit I discovered 'geany' and I like it very much for python programming.

As to your suggestion: I don't know what Slackware's stock kernels use but I have always had VDSO=y because that was the default (now running 3.2.33) and nedit was OK. You may be right about vdso, however I now
think that the culprit is 'lesstif' (perhaps + vdso), because keeping everything the same, if I use lesstif nedit crashes, if I use openmotif nedit works better than it has ever worked. What I mean by that is it responds faster now and a big irritation is gone: the open file dialog has two panel areas: left = select directory and the right for selecting files. With lesstif the right area was always tiny so I have to constantly expand it manually, but with openmotif the fileopen dialog adjusts itself to the size of longest dir name AND file name.

I should have switched to openmotif years ago :-) If you feel like it, give openmotif a try and let us know your findings.
Thanks.
 
Old 11-10-2012, 11:34 AM   #9
s1aw0
LQ Newbie
 
Registered: Jun 2012
Posts: 17

Rep: Reputation: Disabled
I became curious about the problem and rebuilt nedit from source applying a patch from Arch Linux' repository. The stock lesstif library was used.

The new nedit works fine both in en_US and en_US.UTF8 locales. The left panel for choosing a file adjusts itself to the longest directory name.

Since I am using a UTF8 locale, I'm glad I don't have to set env LANG=... anymore. Thanks! :-)
 
Old 01-07-2013, 03:35 AM   #10
aihaike
Member
 
Registered: Feb 2006
Location: Shanghai, China
Distribution: Slackware
Posts: 201

Rep: Reputation: 15
Hey,

I had to switch from en_US.UTF_8 to en_US to make nedit v5.5 running on slackware 14.0 32bit.

Éric.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 13 32bit and then Linux Mint 32bit and then Ubuntu 10.04 32bit ciao303 Linux - Newbie 3 08-09-2010 11:03 PM
Nedit memorial colucix Linux - General 8 10-29-2008 06:05 AM
nedit - problems rustyray Linux - Enterprise 4 04-09-2008 02:45 PM
Nedit Doyley Linux - Newbie 1 05-26-2007 10:35 AM
NEdit macros theonebeyond Linux - Software 0 09-10-2004 02:59 AM


All times are GMT -5. The time now is 02:30 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration