View previous topic :: View next topic |
Author |
Message |
Ov3nCleaner n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 02 Nov 2006 Posts: 12
|
Posted: Mon Apr 09, 2007 9:09 pm Post subject: Strange Gentoo Hardened Crash[SOLVED] |
|
|
UPDATE:
Re installed gentoo fresh from stage 3 hardened. updated everything(running correct GCC and libc now), installed xorg.
The crashes i found can be outside of Xorg(but once xorg is started, crashes come faster). i tried removing GRsecurity(no difference). I think removing pax would be useless, as symptoms of pax issues can be solved with paxtcl etc. and pax issues always are at the programs init. udev is still freezing half the time upon initialization
Im absolutely clueless as to what is causing my machine to crash(checked all logs, absolutely nothing just a 100% freeze). is there someway i can debug my kernel from another computer to trace the problem? i am willing to do anything to kill this bug :X
Rebuilding kernel with crash dumps enabled... if that will do any good
_________________________________________________________________
i just switched to gentoo hardened, got all the pax bugs worked out. For some reason Xorg keeps crashing a few minutes into use, regardless of driver. I am using no GrSecurity anymore, just pax.
I have tried these drivers:
vesa
nv
nvidia
and all of them crash a few minutes in.
My computer has been acting a bit supsicious lately, killed 2 hard drivers, and pci randomly starts and stops working, Udev also acts strange
I checked for logs, and got nothing. When the comp freezes, i cant even ssh in. I havnt overclocked or done anything strange with the hardware either.
Anyone have any suggestions i would appreciated them >.>
PS this did not happen before hardened gentoo(but ill check with a livecd), and i read all the hardened documentation.
Last edited by Ov3nCleaner on Thu Apr 12, 2007 10:21 pm; edited 8 times in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Sadako Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/2074682074aea79062b33b.jpg)
Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Tue Apr 10, 2007 12:15 am Post subject: |
|
|
I've been using xorg extensively on a fully hardened machine without any problems for almost a year,
and pretty much the only grsec option I don't have enabled is "Disable privileged I/O",
so I wouldn't be so sure that hardened is really the root cause of the problem.
When you say you got all the pax bugs worked out, what do you mean?
How did you switch to hardened, i.e. did you do a clean install with a hardened tarball,
or just emerge -e world with the hardened toolchain?
Does dmesg report anything when it crashes?
Could you post your xorg.conf and /var/log/Xorg.0.log, and maybe your emerge --info, or anything else that could be relevant?
Also, could you try starting x with the following command
Code: | startx > ${HOME}/Xlog 2>&1 | and post Xlog after it crashes, as sometimes interesting info is dumped to the console but not to the X log. _________________ "You have to invite me in" |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Ov3nCleaner n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 02 Nov 2006 Posts: 12
|
Posted: Tue Apr 10, 2007 12:58 am Post subject: |
|
|
emerge --info
http://pastebin.ca/432033
Xorg.0.log with the nvidia driver (i can get you nv and vesa if you want) basicly, nothing here.
http://pastebin.ca/432034
xorg.conf
http://pastebin.ca/432044
Ignore the extra nVidia stuff, it was generated by the closed driver, and when i use vesa and nv, i disable twin view, and change the driver
Kenrel Configuration
http://pastebin.ca/432041
dmesg:
http://pastebin.ca/432052
I installed gentoo from the live cd, switched to the hardened profile, build the hardened-sources, then i did:
"To maintain a consistant toolchain, first emerge binutils gcc virtual/libc. Next, rebuild the entire system with emerge -e world. All future packages will be built with PIE/SSP."
When i said pax bugs worked out, i meant making programs not being "Killed" when started, disabling a few things on xorg and the likes
All worked just fine...
Here is what i get from Xorg crash(basicly nothing):
Code: |
hostname: Unknown host
xauth: creating new authority file /home/carroll/.serverauth.14395
X Window System Version 7.1.1
Release Date: 12 May 2006
X Protocol Version 11, Revision 0, Release 7.1.1
Build Operating System: UNKNOWN
Current Operating System: Linux achtungjuden 2.6.18-hardened-r6 #1 SMP Sun Apr 8 04:39:40 CDT 2007 i686
Build Date: 08 April 2007
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon Apr 9 02:17:02 2007
(==) Using config file: "/etc/X11/xorg.conf"
xkb_keycodes { include "xfree86+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compatibility { include "complete" };
xkb_symbols { include "pc(pc105)+us" };
xkb_geometry { include "pc(pc105)" };
apps file failure
BScreen::BScreen: managing screen 0 using visual 0x21, depth 24
Fluxbox: There is no background option specified in this style. Please consult the manual or read the FAQ.
No running windows found
TextureRender: Warning! Width > 3200 setting Width = 3200
TextureRender: Warning! Width > 3200 setting Width = 3200
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Sadako Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/2074682074aea79062b33b.jpg)
Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Tue Apr 10, 2007 1:48 am Post subject: |
|
|
I can see a problem immediately with the very first line of your emerge --info; you're using gcc 4.* and glibc 2.4.*, neither of which work in hardened yet, and should be masked by the hardened profile.
So first thing, you need to check to see what profile you are using, what does
Code: | ls -l /etc/make.profile | return?
Do you have gcc or glibc unmasked (in /etc/portage/package.unmask)?
Also, gcc-config -l should tell you wether or not you are using a hardened toolchain (or if you even have one installed).
You should have something like
Code: | [1] x86_64-pc-linux-gnu-3.4.6 *
[2] x86_64-pc-linux-gnu-3.4.6-hardenednopie
[3] x86_64-pc-linux-gnu-3.4.6-hardenednopiessp
[4] x86_64-pc-linux-gnu-3.4.6-hardenednossp
[5] x86_64-pc-linux-gnu-3.4.6-vanilla |
(with i386 or i686 instead of x86_64), but I'm betting all you have is
Code: | [1] i686-pc-linux-gnu-4.1.1 * |
This excerpt from /usr/portage/profiles/hardened/package.mask should help explain a little;
Quote: | # Mask off gcc-4 for all hardened arches until SSP is sorted out (i.e.
# backport for gcc-4.0 and 4.0/4.1 rigged for SSP support in the C
# library). After that, may still need to be masked on x86 as some
# PIC assembler that worked pre-4 fails post-4, e.g. bug #104966).
# If you want to play with it, unmask in /etc/portage/package.unmask
# but be prepared to rebuild anything you build with gcc-4, later.
# 2006-01-11 kevquinn
=sys-devel/gcc-4*
# Mask off glibc-2.4 until the approach for SSP compatibilty is
# resolved in a way that doesn't break running systems, and we
# have a sensible upgrade path. Advise having a static busybox
# around if you try it in a live system.
# 2006-03-13 kevquinn
=sys-libs/glibc-2.4*
# And 2.5...
# 2006-10-09 kevquinn
=sys-libs/glibc-2.5* |
Edit; This problem was probably caused by the tarball you used during the install, as most of the current non-hardened ones include gcc 4.* / glibc 2.4.* by default.
Take a look at http://gentoo.osuosl.org/releases/x86/2006.0/stages/hardened/ or http://gentoo.osuosl.org/experimental/x86/hardened/stages/ for the most recent hardened stages. _________________ "You have to invite me in" |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Ov3nCleaner n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 02 Nov 2006 Posts: 12
|
Posted: Tue Apr 10, 2007 2:03 am Post subject: |
|
|
lrwxrwxrwx 1 root root 39 Apr 7 07:35 /etc/make.profile -> /usr/portage/profiles/hardened/x86/2.6/
[1] i686-pc-linux-gnu-3.3.6
[2] i686-pc-linux-gnu-3.4.6
[3] i686-pc-linux-gnu-3.4.6-hardenednopie
[4] i686-pc-linux-gnu-3.4.6-hardenednopiessp
[5] i686-pc-linux-gnu-3.4.6-hardenednossp
[6] i686-pc-linux-gnu-3.4.6-vanilla
[7] i686-pc-linux-gnu-4.1.1 [32;01m*[0m
gahhh i remember something about libc not building a while back... shoudlnt have ignored that... it wouldnt let me downgrade, so im not currently using a hardened one. do you recomend i reinstall from one of the hardened stages? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Sadako Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/2074682074aea79062b33b.jpg)
Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Tue Apr 10, 2007 2:30 am Post subject: |
|
|
Ov3nCleaner wrote: | gahhh i remember something about libc not building a while back... shoudlnt have ignored that... it wouldnt let me downgrade, so im not currently using a hardened one. do you recomend i reinstall from one of the hardened stages? |
If you don't mind starting over, then yes.
There's a very good chance that your current install has bigger problems that xorg crashing,
but they just haven't become apparant yet.
As for hardened, I noticed the binary nvidia drivers are also hardmasked,
so you need to ask yourself which you'd like more, the binary drivers or a hardened system.
For the record, I've never had any real problems with hardened as a desktop system,
and none of the grsec options other than priviledged IO restrictions interfere with xorg,
also the only things I had to fix the pax flags on are java jdk/jre's. _________________ "You have to invite me in" |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Ov3nCleaner n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 02 Nov 2006 Posts: 12
|
Posted: Tue Apr 10, 2007 3:05 am Post subject: |
|
|
just reinstalled using the stage 3 2006.0 hardened. Thanks for all the help, i really appreciate it ![Very Happy :D](images/smiles/icon_biggrin.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Ov3nCleaner n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 02 Nov 2006 Posts: 12
|
Posted: Thu Apr 12, 2007 2:17 am Post subject: |
|
|
read the update |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Sadako Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/2074682074aea79062b33b.jpg)
Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Thu Apr 12, 2007 2:24 pm Post subject: |
|
|
Sorry to hear this still isn't working out for you.
First of all, your new `emerge -v --info`, please.
Could you give more information on these non-X apps crashing, for instance do they segfault,
or just silently drop back to the shell prompt with no errors, or do they lock up the whole machine, cause a kernel panic or whatever.
Anyway, it does kind of look more like a hardware problem. You've never had any problems before hardened?
I'd suggest using a livecd with X (knoppix or the like), load it up and see if you can get it to crash,
make sure you do a lot of reading from and writing to the disks, and whatever else you can think of to stress the system.
`nice -n -19 cat /dev/urandom > /dev/null` should push the cpu, run two instances in parallel as you have a dual core chip, although if you managed to do an emerge -e world without problems then this is probably not the issue.
You should definitely run memtest86 for a while.
Does running lshw or lspci cause any problems, or show up anything interesting? _________________ "You have to invite me in" |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
BlackEdder Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/18387544340ac9a5f1b27a.jpg)
Joined: 26 Apr 2004 Posts: 2588 Location: Dutch enclave in Egham, UK
|
Posted: Thu Apr 12, 2007 2:37 pm Post subject: Re: Strange Gentoo Hardened Crash |
|
|
Ov3nCleaner wrote: | My computer has been acting a bit supsicious lately, killed 2 hard drivers, and pci randomly starts and stops working, Udev also acts strange | Sounds like a hardware problem to me. Try running memtest. It might also be your PSU, so try to get lm_sensors working and monitor the voltage and temperature. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Ov3nCleaner n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 02 Nov 2006 Posts: 12
|
Posted: Thu Apr 12, 2007 10:21 pm Post subject: |
|
|
ahhh i upgraded to hardened-sources 2.6.19-r6 and everything works great! nm, solved |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|