LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 11-23-2013, 01:33 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,033

Rep: Reputation: 45
Getting into real trouble: ldconfig gives segmentation fault when run (boot time).


Kernel 3.6.29, Slackware 14.0, x86_64.
GNU ld (Linux/GNU Binutils) 2.22.52.0.2.20120424

Hi: I have just found this: during booting, the following notifications:
Code:
INIT: Entering runlevel: 3
Going multiuser...
Updating shared library links: /sbin/ldconfig &
ldconfig[1356]:segfault at xxxxxx ip yyyyyyy sp zzzzzzz error 4 in ldconfig [400000 + e5000]
/etc/rc.d/rc.M: line 25: 1356 Segmentation fault    /sbin/ldconfig
The last message is wrong: it is really a couple of lines above 25 that ldconfig is invoked. So I have a segmentation fault at boot time! Having to do with the linker, and some linking processes taking place at run time, methinks I've got into real trouble. I guess some files have been damaged and a reinstallation of those files is advisable. But what files?

EDIT: looking at /var/log/messages, messages.1,..., messages.3, I can state this problem just started on November 19.

EDIT: ldconfig is in both glibc-2.15, belonging to the L series and glibc-solibs-2.15, belonging to the A series. So I guess I could proceed with reinstallation of these series. But, in the case of series A, won't this override many of my personal settings?

EDIT: problems with RAM are unlikely, as this machine is brand new, just boughted. I notwithstanding ran a memory test during three hours, and found no faults. For the same reason, the hard disk is not to be suspected. But the optical disk unit is cheap. It could be that, and the system sometimes reported I/O errors while reading optical disks. But only when these had been burned by me. Not on factory stamped optical disks. However, they were burnd using this unit.

Last edited by stf92; 11-23-2013 at 02:31 PM.
 
Old 11-23-2013, 04:06 PM   #2
mlslk31
Member
 
Registered: Mar 2013
Location: Florida, USA
Distribution: Slackware, FreeBSD
Posts: 106

Rep: Reputation: 29
Last time this happened to me, I deleted /etc/ld.so.cache and ran ldconfig, and that didn't work. After some poking around, I deleted /var/cache/ldconfig/aux-cache as well, ran ldconfig again, and all was back to normal. However, the initial corruption might have been the result of a boot-time oops, IIRC, and you might not be experiencing anything like that. Hopefully, you're not having any mixed-version glibc issues...those can sometimes be tricky to work around...
 
1 members found this post helpful.
Old 11-23-2013, 05:33 PM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,033

Original Poster
Rep: Reputation: 45
Thanks a lot for this post. I did what you did and... voila, everything is fine now. I was debugging a program, and each time I had to reset the machine, which is the reason that I, getting tired, commented out, in /etc/rc.d/rc.S, the lines calling fsck, that were driving me mad. Then, I forgot to restore the file. So, the system was nearly a month without checking the fs, a specially sensible thing in the case of power failures. Could this have been the cause? I don't know, but seems plausible to me.
 
  


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
[SOLVED] Segmentation fault during run time chetan11 Programming 2 08-24-2011 10:55 AM
segmentation fault in program at run time tkmsr Programming 4 10-16-2010 05:13 PM
ldconfig segmentation fault tramni1980 Slackware 9 12-04-2008 01:36 PM
ldconfig gives segmentation fault aditya Linux - General 5 09-12-2002 03:54 AM


All times are GMT -5. The time now is 03:34 AM.

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