Author Topic: Crashy linux help  (Read 3659 times)

zahc

  • friend
  • Senior Member
  • ***
  • Posts: 5,803
Crashy linux help
« on: July 26, 2012, 02:16:55 PM »
I have a linux desktop at work that, until 2 days ago, was completely stable. 200+ days of uptime and no problems at all. Running ubuntu 10.04, if memory serves. I mostly use it for piddly perl stuff and administering a website via ssh.

All of a sudden, it locked up and I had to restart. Ever since, the system will only stay up for a few hours at most. Often, the display goes weird with strange blocking and tearing, while I can still kind-of use the gui. The system will do weird things, like the GUI will work, but I can't launch any programs...even simple things like nautilus. Sometimes the simplest programs like top and du instantly die saying 'killed'. Or they start but then segfault. One time I switched to a virtual terminal to try to restart the xserver, but I couldn't log in...when I entered my credentials I got a screen of debug information including weird memory addresses and a message saying BUG: unable to handle kernel paging request. Since I can't log in, I had to power-cycle. Or the system just locks up hard.

I ran 3 passes of memtest this morning and no errors.

Are there any log files I can look at that might tell me what's wrong? I can try a clean reinstall, but my home directory is encrypted and I'm worried that re-mounting it to a new install might be interesting.
Maybe a rare occurence, but then you only have to get murdered once to ruin your whole day.
--Tallpine

mtnbkr

  • friend
  • Senior Member
  • ***
  • Posts: 15,388
Re: Crashy linux help
« Reply #1 on: July 26, 2012, 02:24:41 PM »
untrue.  Linux doesn't crash.

In all seriousness, what are you seeing in /var/log/alllog?  Maybe tail -f alllog while you try to do something?  Try booting to the CLI and perusing the logs in /var/log.

Chris

lee n. field

  • friend
  • Senior Member
  • ***
  • Posts: 13,613
  • tinpot megalomaniac, Paulbot, hardware goon
Re: Crashy linux help
« Reply #2 on: July 26, 2012, 02:25:27 PM »
My first thought is one you already covered -- RAM diags.  RAM problems, in my experience, can make a system generally flakey like that.

Also do HD diagnostics.   Ultimate Boot CD has a bunch, look for either Seatools GUI or the appropriate manufacturer's diagnostic.  Look for hard disk errors in, uhhhh, I think /var/log/kern.log.

And just for grins, scan your motherboard for bowed up capacitors.  I have seen that in relatively modern systems.

Quote
but my home directory is encrypted and I'm worried that re-mounting it to a new install might be interesting.

Well, that'll be a learning experience.
In thy presence is fulness of joy.
At thy right hand pleasures for evermore.

mtnbkr

  • friend
  • Senior Member
  • ***
  • Posts: 15,388
Re: Crashy linux help
« Reply #3 on: July 26, 2012, 02:25:50 PM »
How much memory?  Are you using swapfile?  If so, is it mounted?  What do you get when you run df -h? 

Chris

zahc

  • friend
  • Senior Member
  • ***
  • Posts: 5,803
Re: Crashy linux help
« Reply #4 on: July 26, 2012, 03:33:20 PM »
1 gig of memory. I don't know about swap; the system is churning memtest right now. I had a theory that since the system crashes after a couple hours, that I should run memtest for at least a couple hours in case the problem is intermittent.

I will check some of those error log paths to see what I find, after I reboot.

Quote
And just for grins, scan your motherboard for bowed up capacitors.  I have seen that in relatively modern systems.

You mean look at them optically?
Maybe a rare occurence, but then you only have to get murdered once to ruin your whole day.
--Tallpine

lee n. field

  • friend
  • Senior Member
  • ***
  • Posts: 13,613
  • tinpot megalomaniac, Paulbot, hardware goon
Re: Crashy linux help
« Reply #5 on: July 26, 2012, 03:45:07 PM »


You mean look at them optically?


yes
In thy presence is fulness of joy.
At thy right hand pleasures for evermore.

zahc

  • friend
  • Senior Member
  • ***
  • Posts: 5,803
Re: Crashy linux help
« Reply #6 on: July 26, 2012, 04:04:54 PM »
Wow, this is really interesting.

So I have my box sitting there running memtest86. I needed the flash drive that was plugged into the front panel USB port, so I pulled it out. BAM, instantly there was a red entry on the memtest screen, like the exact moment I pulled the flash drive out. I figured that's pretty weird, but it must be a coincidence, because how can a flash drive have anything to do with anything? It's running off a liveCD and not even mounting anything. Probably not even scanning the USB ports for devices.

Well, a couple minutes later it's still bothering me, so I took a USB SD card reader and stuck it in the same USB port--with no SD card in it. Pulled it back out. BAM, another red row on the memtest screen the instant I pulled it out. Tried again. Nothing. Tried over and over...nothing. Tried wiggling the SD card reader around. Nothing. Tried leaving it in for a few minutes then pulling it out. Nothing. Tst 6 and 7 had errors, 5 pass, 2 errors.

Edit: there's definitely something weird with putting the flash drive in and out. I don't know what it means, but by doing it several times I have managed to fill up the memtest screen with errors; now there are 10 errors.

« Last Edit: July 26, 2012, 04:18:18 PM by zahc »
Maybe a rare occurence, but then you only have to get murdered once to ruin your whole day.
--Tallpine

vaskidmark

  • National Anthem Snob
  • friends
  • Senior Member
  • ***
  • Posts: 12,799
  • WTF?
Re: Crashy linux help
« Reply #7 on: July 26, 2012, 05:08:04 PM »
Have you tried turning it over, holding it over your head, and shaking it hard?

Always resolves computer problems for me. =D

stay safe.
If cowardly and dishonorable men sometimes shoot unarmed men with army pistols or guns, the evil must be prevented by the penitentiary and gallows, and not by a general deprivation of a constitutional privilege.

Hey you kids!! Get off my lawn!!!

They keep making this eternal vigilance thing harder and harder.  Protecting the 2nd amendment is like playing PACMAN - there's no pause button so you can go to the bathroom.

lee n. field

  • friend
  • Senior Member
  • ***
  • Posts: 13,613
  • tinpot megalomaniac, Paulbot, hardware goon
Re: Crashy linux help
« Reply #8 on: July 26, 2012, 05:24:43 PM »
Pull the hard disk, install into another box with similar specs.  Kernel hardware support is broad enough that it shouldn't have a problem unlike a certain popular but problematic OS.

See if problem follows hard disk.

I like brute force, sometimes.
In thy presence is fulness of joy.
At thy right hand pleasures for evermore.

mtnbkr

  • friend
  • Senior Member
  • ***
  • Posts: 15,388
Re: Crashy linux help
« Reply #9 on: July 26, 2012, 05:33:58 PM »
Pull the hard disk, install into another box with similar specs.  Kernel hardware support is broad enough that it shouldn't have a problem unlike a certain popular but problematic OS.

;/

I guess I should expect my PC to crash any day now considering I pulled the drive from my old PC, plugged it into my new one (that was a completely different CPU, new Mobo, etc), rebooted a few times, and went on about my life.  Windows 7 isn't smart enough to know it's supposed to crash constantly.

Chris

zahc

  • friend
  • Senior Member
  • ***
  • Posts: 5,803
Re: Crashy linux help
« Reply #10 on: July 26, 2012, 05:59:48 PM »
I tried taking out one memory module at a time and running memtest. They both test ok unless I plug things into the front USB ports. My theory is that the PSU or mobo caps are bad and plugging something in blips the power rail just enough to cause memory errors. I rebooted the system with only a keyboard and monitor plugged in, and will see how long it stays up. A mouse would be nice, though.
Maybe a rare occurence, but then you only have to get murdered once to ruin your whole day.
--Tallpine

RocketMan

  • Mad Rocket Scientist
  • friend
  • Senior Member
  • ***
  • Posts: 13,671
  • Semper Fidelis
Re: Crashy linux help
« Reply #11 on: July 26, 2012, 08:42:41 PM »
Zahc, if the mobo caps are indeed toast, and if you have a compelling reason keep that particular hardware running, let me know.   I'd be happy to change the caps out for you at cost. (Good quality low ESR caps are dirt cheap.)  I have the proper desoldering tools for that kind of work and have done it many times.  I even have a good mobo test bench to do post-repair burn in.
If there really was intelligent life on other planets, we'd be sending them foreign aid.

Conservatives see George Orwell's "1984" as a cautionary tale.  Progressives view it as a "how to" manual.

My wife often says to me, "You are evil and must be destroyed." She may be right.

Liberals believe one should never let reason, logic and facts get in the way of a good emotional argument.

Gewehr98

  • friend
  • Senior Member
  • ***
  • Posts: 11,010
  • Yee-haa!
    • Neural Misfires (Blog)
Re: Crashy linux help
« Reply #12 on: July 26, 2012, 08:59:07 PM »
Quote
Kernel hardware support is broad enough that it shouldn't have a problem unlike a certain popular but problematic OS.

I swap Windows XP/Vista/7 HDs between systems all the time with no problems.  Maybe you're doing it wrong?
"Bother", said Pooh, as he chambered another round...

http://neuralmisfires.blogspot.com

"Never squat with your spurs on!"

Nick1911

  • Administrator
  • Senior Member
  • *****
  • Posts: 8,492
Re: Crashy linux help
« Reply #13 on: July 26, 2012, 09:03:05 PM »
I swap Windows XP/Vista/7 HDs between systems all the time with no problems.  Maybe you're doing it wrong?

At least xp, I know for a fact, is compiled at setup time for a particular architecture.  Ive had to do "repair-install" too many times because of it way back when.

mtnbkr

  • friend
  • Senior Member
  • ***
  • Posts: 15,388
Re: Crashy linux help
« Reply #14 on: July 26, 2012, 09:11:02 PM »
At least xp, I know for a fact, is compiled at setup time for a particular architecture.  Ive had to do "repair-install" too many times because of it way back when.

Even Win95 would reconfigure itself if you swapped the drive into a different system.  I've done it before.  It wasn't as stable as my Win7 swap, but it worked well enough to let the user work for a few weeks until the new system came in.  Win7 does it so well, I haven't been compelled to reinstall Windows after taking my drive from my dead Intel-based Shuttle PC and stuffing it into my shiny new AMD-based system. 

At the moment, the only thing that'll get me to rebuild the system is an inexpensive SSD.

Chris

zahc

  • friend
  • Senior Member
  • ***
  • Posts: 5,803
Re: Crashy linux help
« Reply #15 on: July 27, 2012, 04:42:13 PM »
Just to further rule out a software problem I tried to install to a new hard drive, but it locked up in a similar fashion. This is what the screen does sometimes:

Maybe a rare occurence, but then you only have to get murdered once to ruin your whole day.
--Tallpine

Nick1911

  • Administrator
  • Senior Member
  • *****
  • Posts: 8,492
Re: Crashy linux help
« Reply #16 on: July 27, 2012, 04:47:15 PM »
Even Win95 would reconfigure itself if you swapped the drive into a different system.  I've done it before.  It wasn't as stable as my Win7 swap, but it worked well enough to let the user work for a few weeks until the new system came in.  Win7 does it so well, I haven't been compelled to reinstall Windows after taking my drive from my dead Intel-based Shuttle PC and stuffing it into my shiny new AMD-based system. 

At the moment, the only thing that'll get me to rebuild the system is an inexpensive SSD.

Chris

Weird.  I never, not one time, got it to work without a repair install for win2k, win me or win xp.  Every single time, they would BSoD on boot after swapping a motherboard.

GigaBuist

  • friends
  • Senior Member
  • ***
  • Posts: 4,345
    • http://www.justinbuist.org/blog/
Re: Crashy linux help
« Reply #17 on: July 27, 2012, 09:13:45 PM »
I'm with Nick on this one.  XP was a pisser if you switched systems on it.  Hell, it was designed to lock up if too many things changed at one point.  Not sure if that remained into the end of XP and carried into Windows Vista and 7 or not.

At one point, when I was working for a jukebox company that ran XP on the jukes, we had one of the old embedded guys working on a customer bootloader that would swap the HAL.dll before booting based on which chipset was in the board.  We simply could not take hard drives running on an older mobo and switch them to the new one without it.

Not sure how that turned out.  I got canned a couple of weeks after the effort was started.

GigaBuist

  • friends
  • Senior Member
  • ***
  • Posts: 4,345
    • http://www.justinbuist.org/blog/
Re: Crashy linux help
« Reply #18 on: July 27, 2012, 09:14:47 PM »
Oh, and for zahc:  I had a PC do that before when hotplugging USB devices.  Darned thing would just crash if I yanked something out wrong.  I figured it was a short or something somewhere.  It was fairly old (5-6 years) when the problem surfaced.

lee n. field

  • friend
  • Senior Member
  • ***
  • Posts: 13,613
  • tinpot megalomaniac, Paulbot, hardware goon
Re: Crashy linux help
« Reply #19 on: July 28, 2012, 04:22:52 PM »
I'm with Nick on this one.  XP was a pisser if you switched systems on it.  Hell, it was designed to lock up if too many things changed at one point.  Not sure if that remained into the end of XP and carried into Windows Vista and 7 or not.

Pretty much my experience.  Thus my comment above. 

Just to further rule out a software problem I tried to install to a new hard drive, but it locked up in a similar fashion. This is what the screen does sometimes:

So, sounds like it's hardware.
In thy presence is fulness of joy.
At thy right hand pleasures for evermore.

Perd Hapley

  • Superstar of the Internet
  • friend
  • Senior Member
  • ***
  • Posts: 61,490
  • My prepositions are on/in
Re: Crashy linux help
« Reply #20 on: July 28, 2012, 05:52:57 PM »
Just to further rule out a software problem I tried to install to a new hard drive, but it locked up in a similar fashion. This is what the screen does sometimes:


What is that, the orange and lavender screen of death?
"Doggies are angel babies!" -- my wife

rcnixon

  • friend
  • Member
  • ***
  • Posts: 250
Re: Crashy linux help
« Reply #21 on: July 30, 2012, 12:03:04 AM »
Try the HD on another, similar system and if it's stable, the MOBO is probably bad.  Get a new MOBO, they're cheap enough.  With all due respect to the poster who offered board-level repairs, It's just not worth the time.  An extreme MOBO is about $150 - $170 without memory or a CPU.  A resonable one is $99 to $120.  Add memory and a CPU and you can get into a new, high-perf MOBO for $200 - $250.  I too have the tools and skills to do the job but my time is worth more than a bad board that may or may not continue to work.  My former company did board-level repairs but the boards were $1.5 million OC192 router interface cards.

Russ

Perd Hapley

  • Superstar of the Internet
  • friend
  • Senior Member
  • ***
  • Posts: 61,490
  • My prepositions are on/in
Re: Crashy linux help
« Reply #22 on: July 30, 2012, 11:13:39 PM »
Try the HD on another, similar system and if it's stable, the MOBO is probably bad.  Get a new MOBO, they're cheap enough.  With all due respect to the poster who offered board-level repairs, It's just not worth the time.  An extreme MOBO is about $150 - $170 without memory or a CPU.  A resonable one is $99 to $120.  Add memory and a CPU and you can get into a new, high-perf MOBO for $200 - $250.  I too have the tools and skills to do the job but my time is worth more than a bad board that may or may not continue to work.  My former company did board-level repairs but the boards were $1.5 million OC192 router interface cards.

Russ


Hey now. I like having Rocketman's offer on the table. It beats dropping hundreds of dollars on a new mobo, processor and RAM.
"Doggies are angel babies!" -- my wife

Physics

  • ∇xE=-1/c·∂B/∂t, ∇·E=4πρ, ∇·B=0, ∇xB=1/c·∂E/∂t, F=q(E+v/cxB)
  • friend
  • Senior Member
  • ***
  • Posts: 1,315
Re: Crashy linux help
« Reply #23 on: July 31, 2012, 12:16:42 AM »
Only problems I've ever had that produced effects like that were GPU or heat related. 
In the world of science, there is physics.  Everything else is stamp collecting.  -Ernest Rutherford