LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-24-2013, 12:15 PM   #1
burdi01
Member
 
Registered: Dec 2010
Location: The Netherlands
Distribution: Slackware Current64, PartedMagic, Xubuntu
Posts: 464

Rep: Reputation: 114Reputation: 114
Sat Mar 23 updates: nano segfault error 6 in libmagic.so.1.0.0 when writing the file


Current 64-bit: nano segfaults after writing the file:
.....
File Name to Write: /mnt/etc/fstabSegmentation fault
root@riposo:~/works# -D DOS Format M-A Append M-B Backup File
root@riposo:~/works# tail /var/log/messages Prepend
.....
Mar 24 18:00:32 riposo kernel: nano[1181]: segfault at 0 ip 00007f8b1865fee4 sp 00007fff99787e10 error 6 in libmagic.so.1.0.0[7f8b1865c000+1a000]
Mar 24 18:01:36 riposo kernel: nano[1199]: segfault at 0 ip 00007fd413293ee4 sp 00007fff75422370 error 6 in libmagic.so.1.0.0[7fd413290000+1a000]
root@riposo:~/works#

Last edited by burdi01; 03-24-2013 at 12:19 PM.
 
Old 03-24-2013, 12:45 PM   #2
fskmh
Member
 
Registered: Jun 2002
Location: South Africa
Distribution: Custom slackware64-current
Posts: 307

Rep: Reputation: 92
deleted post

Last edited by fskmh; 03-28-2013 at 12:11 PM.
 
Old 03-25-2013, 03:24 AM   #3
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,943

Rep: Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526
I have the same problem across two Slackware64-current and one Slackware-current installations. Saving an edited file (^X or ^O) results in the segmentation fault as indicated in the first post. This only happens editing an existing file. Creating a new file and saving it does not result in a segmentation fault.

I have reverted back to nano 2.2.6 which works. (sourced from nano stable)

Last edited by chrisretusn; 03-25-2013 at 03:37 AM.
 
Old 03-25-2013, 05:44 AM   #4
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,873

Rep: Reputation: 4982Reputation: 4982Reputation: 4982Reputation: 4982Reputation: 4982Reputation: 4982Reputation: 4982Reputation: 4982Reputation: 4982Reputation: 4982Reputation: 4982
Confirmed here too on 64-current.

It sounds very much like the symptoms described in this 2 year old open bug,
http://savannah.gnu.org/bugs/?30671

However, I tried applying the patch provided by the submitter and it still SEGVs so it's not a solution.
 
Old 03-25-2013, 07:41 AM   #5
burdi01
Member
 
Registered: Dec 2010
Location: The Netherlands
Distribution: Slackware Current64, PartedMagic, Xubuntu
Posts: 464

Original Poster
Rep: Reputation: 114Reputation: 114
Nano 2.2.6 is too old for my liking ...
Current's nano is 2.3.2.
I tried nano 2.3.1 from Slackware 14.0 : same problem.
The file is saved ok however!
Libmagic is from the file package.
Current's file version is 5.13.
I replaced /usr/lib64/libmagic.{la,so.1.0.0} by those from Slackware 14.0's file 5.11 : problem gone for ^X, ^O displays garbage (but saves the file ok).


Edit: Replacing /usr/lib64/libmagic.{la,so.1.0.0} did not resolve the problem after all. But downgrading the complete file package to 5.11 (as hinted to by allend below) did.

Last edited by burdi01; 03-25-2013 at 11:09 AM.
 
Old 03-25-2013, 09:32 AM   #6
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,350

Rep: Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739
Just to confirm that this problem goes away for me if I downgrade to file-5.11-x86_64-1.txz from Slackware64-14.0

[edit] The same problem occurs in 32 bit Slackware where the downgrade also works. [/edit]

Last edited by allend; 03-25-2013 at 10:21 AM.
 
Old 03-26-2013, 01:59 AM   #7
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,943

Rep: Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526
Problem solved. The March 25th update reverted file 5.13 to 5.11 and all is well again. Thanks Pat.
 
Old 03-28-2013, 11:17 AM   #8
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,350

Rep: Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739
I have been playing with this on my 64bit Slackware-current (well almost, have yet to upgrade to kernel 3.8.4) and have found that I can use nano 2.3.2 with file-5.14 without the segmentation fault if the file package is built to use the default compiled magic.mgc file.

I needed to comment out the following lines in file.SlackBuild to build file-5.14
Code:
#zcat $CWD/file.quiet.diff.gz | patch -p1 -E --verbose || exit 1
#rm -f $PKG/etc/file/magic.mgc
#mkdir -p $PKG/etc/file/magic
#cp -a magic/Magdir/* $PKG/etc/file/magic
Looking at the comments in file.SlackBuild it seems that Slackware has provided flat text files for the magic as an aid to administrators.
Does anybody actually add magic entries? Would Slackware users accept a 2.6M compiled magic file in place of the smaller flat files setup?
 
Old 03-28-2013, 01:15 PM   #9
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,650

Rep: Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770
2.6M is not that big for nowadays system IMHO
 
  


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
Sat Mar 23 updates replace Terminal by xfce4-terminal burdi01 Slackware 5 04-22-2013 03:15 AM
Walk-in 10-Mar-12 (Sat) for 'Linux Engineer' Indu Nitla Linux - Software 2 03-06-2012 02:42 AM
Walk-in 10-Mar-12 (Sat) for 'Linux Engineer' Indu Nitla Linux - Newbie 2 03-06-2012 02:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:01 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration