LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 01-31-2015, 12:17 PM   #1
digimaus
LQ Newbie
 
Registered: Nov 2009
Location: Johnson City, TN, USA
Distribution: Slackware 15.0
Posts: 29

Rep: Reputation: 11
Question Slackware 64 14.1 kernel panic upon boot after upgrading glibc-* for GHOST


Hello, everyone!

I'm a little confused by this problem I have right now: I have two nearly identical computers, both in hardware and software (both running Slackware 64 14.1). The computer in question is a "pure" 64-bit install. I recently upgraded my personal machine, running Slackware 64 14.1 "multilib" and didn't have a single problem with it. Last night, I decided to upgrade my BBS server (yes, I run a BBS under Linux). I copied over the glibc-* packages via SFTP to the BBS machine and used "upgradepkg glibc-*" as per the instructions in the recent Slackware security advisory.

I proceeded to go over to another desktop to work and I switched back, only to see this error repeated over and over: "/usr/sbin/ldconfig: unable to execute binary" (or something to that effect). For some unknown reason, I rebooted the server and then it happened: a kernel panic within 10 seconds of booting past the LILO screen.

I'm still somewhat new to troubleshooting problems under Slackware...simply because I've never had a problem before! First, stupid thing #1: I didn't make a boot disk when I first installed Slack on this machine. The BBS itself is on /opt which is a separate partition, so I'm not terribly worried about losing it. However, what I am stuck at right now is what to do next.

Is this problem recoverable or am I needing to reinstall Slackware? I am trying to figure out why this happened on this machine and not on my personal machine where the upgrade went off without a hitch. I'm wanting to figure out where to start to fix this problem and make sure it doesn't happen again.

The machine in question is an IBM Thinkcentre S50 (3.2gHz, 2GB RAM, 80GB SATA HD). It's running the 3.10.17 SMP ('hugesmp') kernel, nothing special or fancy.

Any help is appreciated!

Thanks,
dm
 
Old 01-31-2015, 12:22 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,078

Rep: Reputation: Disabled
Maybe you used to the 32-bit packages instead of the 64-bit ones for the upgrade?
 
1 members found this post helpful.
Old 01-31-2015, 01:43 PM   #3
digimaus
LQ Newbie
 
Registered: Nov 2009
Location: Johnson City, TN, USA
Distribution: Slackware 15.0
Posts: 29

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by Didier Spaier View Post
Maybe you used to the 32-bit packages instead of the 64-bit ones for the upgrade?
No, I made sure they were the right ones. Here's what I downloaded and used on both machines:

glibc-2.17-x86_64-10_slack14.1.txz
glibc-i18n-2.17-x86_64-10_slack14.1.txz
glibc-profile-2.17-x86_64-10_slack14.1.txz
glibc-solibs-2.17-x86_64-10_slack14.1.txz
glibc-zoneinfo-2014j-noarch-1.txz

I may just have to bite the bullet and reinstall Slack. Just really odd that it suddenly broke like that.
 
Old 01-31-2015, 03:30 PM   #4
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware64
Posts: 364

Rep: Reputation: 67
Have you tried booting with an installer disk and using the rescue option at the boot prompt? That way you could mount the root drive, try chrooting into it, see what errors come up and go from there. Sounds like a possibly borked ld.so.conf or ld.so.cache, but I'm just grasping at straws here on that, really. It could just as easily be that either libc.so or ld.so is borked. If it were me, I would boot installer image/disk in rescue mode, mount root drive, and chroot. If the chroot to the mount point worked, then I would most likely try:
Code:
for F in /path/to/glibc/packages/glibc-*2.17-x86_64-10_slack14.1.txz /path/to/glibc/packages/glibc-zoneinfo-2014j-noarch-1.txz ; do
    /sbin/upgradepkg --reinstall $F 2>&1 | tee /tmp/$F_install.log
done
being sure to go over the logs with a 'fine toothed comb' for any errors. I'm guessing one problem might be a package file is corrupted, not complete, etc.

Also, if the chroot fails, you should be able to use upgradepkg from the installer environment like this:
Code:
ROOT=/mnt upgradepkg /path/to/package/file

Last edited by j_v; 01-31-2015 at 03:39 PM.
 
2 members found this post helpful.
Old 01-31-2015, 06:00 PM   #5
digimaus
LQ Newbie
 
Registered: Nov 2009
Location: Johnson City, TN, USA
Distribution: Slackware 15.0
Posts: 29

Original Poster
Rep: Reputation: 11
Uhm, I'm really embarrassed to admit this, but I found the problem. I installed 64-bit glibc on a 32-bit machine. I thought the other machine was 64-bit but it wasn't. So I am going to try to installing the 32-bit versions instead. Stay tuned.
 
Old 01-31-2015, 06:25 PM   #6
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware64
Posts: 364

Rep: Reputation: 67
Ah, well, very good you found it. Should be able to modify my earlier suggestion for doing the installation from the rescue environment and setting the ROOT variable at the command line. Chroot to the root drive won't work now that the c libraries are borked. But installing the new 32 bit ones should fix you up good.
 
1 members found this post helpful.
Old 01-31-2015, 07:05 PM   #7
digimaus
LQ Newbie
 
Registered: Nov 2009
Location: Johnson City, TN, USA
Distribution: Slackware 15.0
Posts: 29

Original Poster
Rep: Reputation: 11
Thumbs up

Here's what I did:

* Copied the correct glibc-* packages to a USB drive from my personal machine.
* Plugged the USB drive into the broken box, booted to the install CD.
* Mounted /dev/sda1 and the USB drive to /temp
* Fired up pkgtool, told it to install packages from /temp
* Rebooted and et voila! working system!

Lesson learned: pay attention next time!!!

Thank you very much for your help, j_v.
 
Old 01-31-2015, 07:09 PM   #8
digimaus
LQ Newbie
 
Registered: Nov 2009
Location: Johnson City, TN, USA
Distribution: Slackware 15.0
Posts: 29

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by Didier Spaier View Post
Maybe you used to the 32-bit packages instead of the 64-bit ones for the upgrade?
Uhm, yes.

I used the 64-bit ones for the 32-bit machine. With j_v's help, a bit of Googling, and trying to remember some stuff that I learned in college (I'll just use that excuse , I was able to pull it off. Thanks for the suggestion as that is the first thing I went looking for since I had saved the files I'd used on this computer and sure enough, it was x86_64.

Thanks!
 
Old 02-01-2015, 07:06 AM   #9
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware64
Posts: 364

Rep: Reputation: 67
You are very welcome. Glad I could be of some help.
Good job getting your BBS server machine working again.
Don't forget to mark thread as solved.
 
  


Reply



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
Patch for Ghost vulnerability for Glibc in slackware caveman86 Slackware 2 01-29-2015 09:33 AM
[SOLVED] GHOST vulnerability Slackware-14.1 Glibc 2.17 Jeronimo Barros Slackware 5 01-29-2015 05:11 AM
Kernel Panic - Unable to Boot RHEL4 *******glibc*******8 teluguswan Red Hat 4 10-18-2010 08:39 AM
deleted glibc rpm, OS won't boot, getting kernel panic abylin1 Red Hat 2 05-01-2009 05:12 PM
kernel Panic slackware 10.1 (sata) after upgrading to 2.6.10 pkg in /testing sund00bie Slackware 7 07-25-2005 04:59 AM

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

All times are GMT -5. The time now is 06:19 PM.

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