| View previous topic :: View next topic |
| Author |
Message |
Bague Apprentice

Joined: 09 Feb 2004 Posts: 292
|
Posted: Tue Sep 07, 2004 10:33 pm Post subject: Segmentation (My Computers) Fault |
|
|
Well, I have been working for over a week now trying to get an old machine to work as a web/audio server. SO far, I have hit many brickwalls, and this current one seems like the last, but it is a deadly one.
Everytime I try to emerge certain key parts of the system such as GCC, my computer segfaults. I tried curing this by doing a stage2 install, but then something in "system" gave me a segfault. I'd rather not be dependant on packages, and even so, this worries me.
I have ran memtest86 for 13+ hours with no errors, does anyone have an idea what may be going on here and how I can cure it? |
|
| Back to top |
|
 |
inode77 Veteran


Joined: 20 Jan 2004 Posts: 1303 Location: Heart of Europe
|
Posted: Tue Sep 07, 2004 10:42 pm Post subject: |
|
|
| That's way too little information about your problem. What are the specifcations of your machine, what exact steps did you take until the problem occured. What exactly is your error message and what is your configuraiton, most important the one in "/etc/make.conf". Unless you provide us with more informaiton we won't be able to help out. |
|
| Back to top |
|
 |
Bague Apprentice

Joined: 09 Feb 2004 Posts: 292
|
Posted: Tue Sep 07, 2004 11:07 pm Post subject: |
|
|
PC Specs:
AMD K6(-2?) 300 Mhz
128 MB RAM
Crappy POS Video Card (does not matter, is not needed)
D-Link Network Card
Ensoniq SOund Card (old)
I went through with the regular stage 1 installation, and then when doing bootstrap, GCC gave me a segfault telling me to submit to bugs.gentoo.org.
Later I went through stage2, the make.conf configs were Use="-gtk -qt -kde -gnome -X alsa" the Chost and CXXFLags were auto on stage2 and mcpu="i586" on stage1.
It seems that not all things are segfaulting, just certain ones. |
|
| Back to top |
|
 |
inode77 Veteran


Joined: 20 Jan 2004 Posts: 1303 Location: Heart of Europe
|
Posted: Tue Sep 07, 2004 11:22 pm Post subject: |
|
|
I don't see anything wrong with your settings @ first glance.
What I can provide is a config from an existing gentoo installation on a AMD K6-II machine.
Relevant part's of "/etc/make.conf":
| Code: | CHOST="i586-pc-linux-gnu"
USE="-X -gtk -gnome -arts -kde -qt mmx 3dnow -doc apache2 cdr cscope gd java maildir mysql snmp samba acl ldap"
CFLAGS="-mcpu=k6-2 -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
|
What I suggest is to start like this:
| Code: | CHOST="i586-pc-linux-gnu"
USE="-doc -java"
CFLAGS="-mcpu=k6-2 -O2 -pipe"
CXXFLAGS="${CFLAGS}"
|
Everything as standard (The two removed use flags decrease the bootstrap and system build process by ~30% => hugh amount of time on a K6)
What you have to make sure that your "mcpu" statement is correct.
"cat /proc/cpuinfo"
Mine looks like:
| Code: | processor : 0
vendor_id : AuthenticAMD
cpu family : 5
model : 8
model name : AMD-K6(tm) 3D processor
stepping : 12
cpu MHz : 401.018
cache size : 64 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr mce cx8 pge mmx syscall 3dnow k6_mtrr
bogomips : 792.57
|
Search for the model and make sure you've set the approprate "mcpu" statement. (k6 or k6-2 or k6-3) Google and the model,stepping numbers should be all that's necessary.
If that wasn't causing the error look a the exact type written on your mainboard do google for it and look if there are similar programs.
Let memtest86 run over night to rule out bad memory.
Let something like prime95 or similar run to do a cpu loadtest.
Check the log after booting for io error's on the harddisk.
After that you just can post the exact error and hope. |
|
| Back to top |
|
 |
Bague Apprentice

Joined: 09 Feb 2004 Posts: 292
|
Posted: Wed Sep 08, 2004 12:08 am Post subject: |
|
|
Ok, my processor is a K6 original. I am wondering what all USE flags I should use, since this is going to be a simple web/audio (play music through my speakers constantly) server. I don't want X or anything graphical since I am going to be handling the access via SSH. All I plan to use on the server is: Apache, php, mysql, cplay (or another audio player), alsa, ssh(d). Any large suggestions for use flag? I don't want to compile unnecessary things on a K6
EDIT: Hmmm, another thing, when tarring the stage file, it says Error, Error delayed for previous reasons (or something like that, this is in links2 on the livecd so I can't read it at the moment. |
|
| Back to top |
|
 |
inode77 Veteran


Joined: 20 Jan 2004 Posts: 1303 Location: Heart of Europe
|
Posted: Wed Sep 08, 2004 12:22 am Post subject: |
|
|
| Code: | | vi /etc/make.profile/make.defaults |
Take a look @ the default USE flags (DON'T EDIT THIS FILE) and add them with a "-" before in "/etc/make.conf" to revoke them.
I suggest something like that:
| Code: | | USE="apache2 php mysql -arts -avi -cups -gpm -gtk -gtk2 -kde -gnome -motif -mpeg -opengl -qt -quicktime -sdl -svga -truetype -X |
After editing your make.conf and before emerge system do a emerge -pv system to see what exactly will be installed with what useflags.
To get fast explanation in case you don't know what a certain USE flags means just paste thme following command in your bash. (Should work during installation process or @ least afterwards)
| Code: | explainuseflag() {
sed -ne "s,^\([^ ]*:\)\?$1 - ,,p" /usr/portage/profiles/use.desc /usr/portage/profiles/use.local.desc
} | (Add to your .bashrc)
Now you get info like that: | Code: | #phoenix $ explainuseflag nethack
Express error messages in nethack style |
|
|
| Back to top |
|
 |
Bague Apprentice

Joined: 09 Feb 2004 Posts: 292
|
Posted: Wed Sep 08, 2004 1:45 am Post subject: |
|
|
What does "tar: error exit delayed from previous errors" mean? I have gotten this both with a stage from the cd and one from online.
From the page I am reading, it seems that my processor is indeed a K6-2. Its model number is 8 with a stepping of 0, 64 MB cache, 300 Mhz CPU Family 5. |
|
| Back to top |
|
 |
inode77 Veteran


Joined: 20 Jan 2004 Posts: 1303 Location: Heart of Europe
|
Posted: Wed Sep 08, 2004 2:09 am Post subject: |
|
|
| Quote: | | What does "tar: error exit delayed from previous errors" mean? I have gotten this both with a stage from the cd and one from online. |
You can safely ignore them.
| Quote: | | From the page I am reading, it seems that my processor is indeed a K6-2. Its model number is 8 with a stepping of 0, 64 MB cache, 300 Mhz CPU Family 5. |
WOW 64 MB cache!!! => 64KB seems to be more realistic.  |
|
| Back to top |
|
 |
Bague Apprentice

Joined: 09 Feb 2004 Posts: 292
|
Posted: Wed Sep 08, 2004 2:15 am Post subject: |
|
|
Aha, yeah, that was a typo. In these days I seem to forget the existence of Kilobytes. I am sure 7 years from now We won't know what the hell a megabyte is anymore and will be working with Gigabytes and Terabytes in much more mass.
Good thing that tar error wasn't important, that was scaring me. RIght now I am doing mirrorselect (the old version of the guide had some bad info which began to load /make.conf with a bunch of useless code (it didnt have grep GENTOO_MIRRORS= in it). Luckily I handled that. SO far so good.
It is nice to know what hardware this thing as, since previousely I was completely unaware (it was a hell of a lot easier with my own machine because I built it myself, this server was actually a dekstop computer built by my brother 7 years ago.
EDIT: Emerge sync-ing now |
|
| Back to top |
|
 |
inode77 Veteran


Joined: 20 Jan 2004 Posts: 1303 Location: Heart of Europe
|
Posted: Wed Sep 08, 2004 7:22 am Post subject: |
|
|
After using mirrorselect just make sure your "/etc/make.conf" is still usable.
https://bugs.gentoo.org/show_bug.cgi?id=62899
| Quote: | | It is nice to know what hardware this thing as, since previousely I was completely unaware (it was a hell of a lot easier with my own machine because I built it myself, this server was actually a dekstop computer built by my brother 7 years ago. |
You can use lspci to get some more helpfull information about your hardware in case you compile you kernel by hand (make menuconfig).
Just emerge pciutils and the enter lspci -v |
|
| Back to top |
|
 |
Bague Apprentice

Joined: 09 Feb 2004 Posts: 292
|
Posted: Wed Sep 08, 2004 6:38 pm Post subject: |
|
|
Shoot, got this during the bootstrap,
| Code: | msgl-iconv.c:378: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[4]: *** [msgl-iconv.lo] Error 1
make[4]: Leaving directory `/var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/gettext-tools/src'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/gettext-tools/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/gettext-tools'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/gettext-tools'
make: *** [all-recursive] Error 1
!!! ERROR: sys-devel/gettext-0.12.1 failed.
!!! Function src_compile, Line 50, Exitcode 2
!!! (no error message)
livecd portage #
|
Here is my make.conf
| Code: |
# These settings were set by the catalyst build script that automatically built$
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-O2 -mcpu=k6-2 -pipe"
USE="apache2 php mysql alsa -avi -cups -doc -java -gpm -gtk -gtk2 -kde -gnome -motif"
CHOST="i586-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ http://ftp-mirror.internap.com/pub/gentoo/"
|
Any ideas? |
|
| Back to top |
|
 |
inode77 Veteran


Joined: 20 Jan 2004 Posts: 1303 Location: Heart of Europe
|
Posted: Wed Sep 08, 2004 6:47 pm Post subject: |
|
|
Now I'm starting to run out of ideas.
During compilation of the first two states the cpu is used quite heavily ensure that the necessary cooling is provided. (Last week we had a machine with random crashes nothing to do about it every test we made passed until we started testing over night; long story short conclusion; cpu fan died and if cpu use was too high cpu overheated and crashed)
I don't know if this can help you further, give it a try.
http://membres.lycos.fr/poulot/k6bug.html
Keep the list posted and hope up. |
|
| Back to top |
|
 |
Bague Apprentice

Joined: 09 Feb 2004 Posts: 292
|
Posted: Wed Sep 08, 2004 7:44 pm Post subject: |
|
|
| Hmmm, do you think I could use DistCC and do all the compilation on my AMDXP 1600+ computer? |
|
| Back to top |
|
 |
inode77 Veteran


Joined: 20 Jan 2004 Posts: 1303 Location: Heart of Europe
|
Posted: Wed Sep 08, 2004 7:49 pm Post subject: |
|
|
| I have no expirience with distcc, but AFAIK that would be no problem, so I suggest you give it a try and post back what you expirienced. |
|
| Back to top |
|
 |
Bague Apprentice

Joined: 09 Feb 2004 Posts: 292
|
Posted: Thu Sep 09, 2004 2:53 am Post subject: |
|
|
| This time (with distcc I believe, I may have to check it though), it just plain froze. |
|
| Back to top |
|
 |
inode77 Veteran


Joined: 20 Jan 2004 Posts: 1303 Location: Heart of Europe
|
|
| Back to top |
|
 |
Bague Apprentice

Joined: 09 Feb 2004 Posts: 292
|
Posted: Fri Sep 10, 2004 3:16 am Post subject: |
|
|
Hmm, I "finished" the stage three install, setup the gs-sources kernel, booted it up, selected it in GRUB, and watched my computer reboot itself with no prompts.
I am trying to compile a different kernel (vanilla-sources), but I never recalled actually installing the prebuilt packages (I am bouncing off of two versions of the handbook which makes this confusing). I thought it might be the GRP, but that appears to require a nonexistent second CD, and also is done AFTER boot.
So basically I am asking, where and how do I install the prebuilt packages with stage3? Or is that already done when you untar the stage? |
|
| Back to top |
|
 |
inode77 Veteran


Joined: 20 Jan 2004 Posts: 1303 Location: Heart of Europe
|
Posted: Fri Sep 10, 2004 3:08 pm Post subject: |
|
|
The second cdrom has precompiled packages on it and is just available via bittorent or if you buy it from an offical reseller.
As for your choice of kernel I strongly suggest to go with the gentoo-dev-sources 2.6.8.1. It's actual, has some good pachtes and it's better than 2.4.
After installing stage3 you only need syslog-ng, vixie-cron and special fschk progs from the precompiles section of the cdrom. Their for sure on cdrom1. Then change your config type env-update && source /etc/profile followed by emerge -e world to recompile with the optimized kernel. (i586 as base host definition brings a lot concerning performance that is wasted with i386)
| Code: | K6 (AMD)
CHOST="i586-pc-linux-gnu"
CFLAGS="-march=k6 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=k6 -O3 -pipe -fomit-frame-pointer"
K6-2 (AMD)
CHOST="i586-pc-linux-gnu"
CFLAGS="-march=k6-2 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=k6-2 -O3 -pipe -fomit-frame-pointer"
K6-3 (AMD)
CHOST="i586-pc-linux-gnu"
CFLAGS="-march=k6-3 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=k6-3 -O3 -pipe -fomit-frame-pointer"
|
|
|
| Back to top |
|
 |
Bague Apprentice

Joined: 09 Feb 2004 Posts: 292
|
Posted: Fri Sep 10, 2004 5:24 pm Post subject: |
|
|
Hmmm, do you have any links for the second CD on bittorrent?
Also, even after compiling the vanilla kernel, (I will try dev later), it still does not boot. It simply says the GRUB info and then restarts. WHy would this happen? Any ideas for a cause and cure? |
|
| Back to top |
|
 |
inode77 Veteran


Joined: 20 Jan 2004 Posts: 1303 Location: Heart of Europe
|
Posted: Fri Sep 10, 2004 5:33 pm Post subject: |
|
|
http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/releases/x86/2004.2/packagecd/x86/
Or any mirror should do.
And a thing I didn't know either, there are iso available for the package cd but just x86.
| Quote: | Gentoo Linux 2004.2 non-bootable PackageCDs
This directory contains non-bootable PackageCDs for the x86 architecture.
A complete listing of what is contained on the PackageCDs can be found in the CONTENTS file.
PackageCDs for the athlon-xp, pentium3, and pentium4 architectures are available for download via the Gentoo BitTorrent service.
The integrity of the PackageCDs can be checked by both md5sum and GPG signature. Each PackageCD has been signed by the Gentoo Linux Release Engineering key , key ID: 17072058.
Thank you for choosing Gentoo Linux! |
|
|
| Back to top |
|
 |
Ribs Tux's lil' helper

Joined: 16 Nov 2002 Posts: 133 Location: UK
|
|
| Back to top |
|
 |
|