LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-15-2008, 04:19 AM   #1
zlya
Member
 
Registered: Dec 2006
Distribution: Debian
Posts: 62

Rep: Reputation: 15
segmentation faults on multiple partitions and knoppix and debian boot cd


Hello,

I have a Thinkpad t42 running debian etch and ubuntu hardy, sharing a home directory. Yesterday, a program (transcribe, compiled from source several months ago) crashed due to:

error: segmentation fault

Apt-get update resulted in:

segmentation faulty tree

which I fixed with:

sudo rm /var/cache/apt/*.bin

About an hour later the computer froze; I manually restarted. The mandatory file check on reboot found "unexpected inconsistencies", so I ran it manually:

umount /dev/hda1
fsck /dev/hda1

After an exceedingly large number of unclean inodes, I got this message:

WARNING: PROGRAMMING BUG IN E2FSCK!
OR SOME BONEHEAD (YOU) IS CHECKING A MOUNTED (LIVE) FILESYSTEM.

After a few more 'yes's on my part, I got some sort of kernel system call trace error, filling a page with details of the call trace and freezing the system, so that I was again forced to restart.

This time I tried booting into Ubuntu. The x-server failed to start, instead I got:

kernel panic: not syncing: fatal error in interrupt.

On restarting, I had similar fsck problems I'd had on the Debian side. AT one point I tried to reinstall kde, and got more segmentation faults.

At this point I turned to Knoppix, which booted, but refused to open any programs, citing segmentation faults, then froze.

I tried reinstalling Debian from the boot disk, but the disk kept freezing. After many tries I got to the "Installing Base hardware" step, which gave errors that files in the cdrom directory were corrupt, and finally ending with bootstrapping error. /var/log/syslog showed:

Error: Segmentation fault.

(I tried another Debian boot disk just to make sure it wasn't a cd problem: it wasn't).

So I still have the not working Ubuntu partition, as well as the freshly formatted Debian partition, but the computer is unable to go very long without freezing and keeps giving me segmentation faults. Help?
 
Old 07-15-2008, 11:50 PM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

A simple word of advice; Do not perform maintenance on active or mounted devices. You should perform filesystem maintenance while 'single' user mode. You can enter this by passing the 'single' parameter to the kernel. Or you can use a Livecd or install cd to perform this type of maintenance on your filesystem.
 
Old 07-16-2008, 03:54 AM   #3
zlya
Member
 
Registered: Dec 2006
Distribution: Debian
Posts: 62

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by onebuck View Post
Hi,

A simple word of advice; Do not perform maintenance on active or mounted devices. You should perform filesystem maintenance while 'single' user mode. You can enter this by passing the 'single' parameter to the kernel. Or you can use a Livecd or install cd to perform this type of maintenance on your filesystem.
Thank you for the advice. As I had specifically unmounted the partition, (umount /dev/sda1) I did not consider it a mounted device. Moreover both Knoppix and the Debian install cd returned the same sort of errors when running fsck.

At the moment both Knoppix and the install cd consistently freeze within 5-10 minutes of starting (not enough time to do any useful maintenance). Do you have any other suggestions?
 
Old 07-16-2008, 11:04 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,
You could be experiencing a memory problem. Run 'memtest86' that is on the Knoppix CD. Run for a long term. Overnight if possible. That is unless the fault shows in the first few passes.
 
Old 07-17-2008, 04:22 AM   #5
zlya
Member
 
Registered: Dec 2006
Distribution: Debian
Posts: 62

Original Poster
Rep: Reputation: 15
Hello,

Thank you, I ran memtest and got eight digits of errors within an hour. I think I may have found the problem! I guess now I'll try switching out the ram sticks until I find a combination that doesn't give memtest errors. Thank you!
 
Old 07-17-2008, 10:32 PM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Before you go changing memory try and clean the edge connector and the connector. Do a search here on LQ since I've posted several times on how to clean properly.
 
Old 07-18-2008, 05:18 AM   #7
zlya
Member
 
Registered: Dec 2006
Distribution: Debian
Posts: 62

Original Poster
Rep: Reputation: 15
Thanks again for all of your help. I did have to change the memory in the end, but now everything is working beautifully: memtest ran for 15 hours with no problems, and both operating systems are back up and running!
 
  


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
segmentation faults crash88 Linux - Software 3 07-03-2006 10:22 PM
Some help with segmentation faults? captainslushie Linux - Software 5 06-23-2005 02:59 PM
Segmentation Faults ryankask Mandriva 2 06-13-2005 07:10 PM
segmentation faults at boot time starless Slackware 4 08-21-2004 01:35 PM
Segmentation Faults? DoomsdayChef Linux - Newbie 2 10-18-2003 08:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:51 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