LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-30-2012, 12:28 PM   #1
konqi
Member
 
Registered: Oct 2007
Distribution: Gentoo, Slackware
Posts: 162

Rep: Reputation: 16
Fglrx 12.6 segfaults at startx (Radeon 7950, Gentoo Hardened)


Just bought a new computer, with a Radeon 7950 videocard. I installed ati-drivers-12.6, and run aticonfig --initial.
However when i execute 'startx', i get a segfault:
Code:
X.Org X Server 1.12.2
Release Date: 2012-05-29
[   476.120] X Protocol Version 11, Revision 0
[   476.121] Build Operating System: Linux 3.4.2-hardened-r1 x86_64 Gentoo
[   476.121] Current Operating System: Linux SHODAN 3.4.2-hardened-r1 #7 SMP Mon Jul 30 16:52:09 CEST 2012 x86_64
[   476.121] Kernel command line: BOOT_IMAGE=/kernel-3.4.2-hardened-r1 root=/dev/sda4 ro
[   476.122] Build Date: 30 July 2012  07:00:58PM
[   476.122]  
[   476.123] Current version of pixman: 0.26.0
[   476.124] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   476.124] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   476.126] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Jul 30 19:10:03 2012
[   476.126] (==) Using config file: "/etc/X11/xorg.conf"
[   476.126] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   476.127] (==) ServerLayout "aticonfig Layout"
[   476.127] (**) |-->Screen "aticonfig-Screen[0]-0" (0)
[   476.127] (**) |   |-->Monitor "aticonfig-Monitor[0]-0"
[   476.127] (**) |   |-->Device "aticonfig-Device[0]-0"
[   476.127] (==) Automatically adding devices
[   476.127] (==) Automatically enabling devices
[   476.127] (==) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/,
	/usr/share/fonts/Type1/,
	/usr/share/fonts/100dpi/,
	/usr/share/fonts/75dpi/
[   476.127] (==) ModulePath set to "/usr/lib64/xorg/modules"
[   476.127] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[   476.127] (II) Loader magic: 0x3bae6c81ae0
[   476.127] (II) Module ABI versions:
[   476.127] 	X.Org ANSI C Emulation: 0.4
[   476.127] 	X.Org Video Driver: 12.0
[   476.127] 	X.Org XInput driver : 16.0
[   476.127] 	X.Org Server Extension : 6.0
[   476.128] (--) PCI:*(0:3:0:0) 1002:679a:1787:2316 rev 0, Mem @ 0xd0000000/268435456, 0xfbe00000/262144, I/O @ 0x0000e000/256, BIOS @ 0x????????/131072
[   476.128] (II) Open ACPI successful (/var/run/acpid.socket)
[   476.128] (II) "extmod" will be loaded by default.
[   476.128] (II) "dbe" will be loaded by default.
[   476.128] (II) "glx" will be loaded by default.
[   476.128] (II) "record" will be loaded by default.
[   476.128] (II) "dri" will be loaded by default.
[   476.128] (II) "dri2" will be loaded by default.
[   476.128] (II) LoadModule: "extmod"
[   476.128] (II) Loading /usr/lib64/xorg/modules/extensions/libextmod.so
[   476.128] (II) Module extmod: vendor="X.Org Foundation"
[   476.128] 	compiled for 1.12.2, module version = 1.0.0
[   476.128] 	Module class: X.Org Server Extension
[   476.128] 	ABI class: X.Org Server Extension, version 6.0
[   476.128] (II) Loading extension MIT-SCREEN-SAVER
[   476.128] (II) Loading extension XFree86-VidModeExtension
[   476.128] (II) Loading extension XFree86-DGA
[   476.128] (II) Loading extension DPMS
[   476.128] (II) Loading extension XVideo
[   476.128] (II) Loading extension XVideo-MotionCompensation
[   476.128] (II) Loading extension X-Resource
[   476.128] (II) LoadModule: "dbe"
[   476.128] (II) Loading /usr/lib64/xorg/modules/extensions/libdbe.so
[   476.128] (II) Module dbe: vendor="X.Org Foundation"
[   476.128] 	compiled for 1.12.2, module version = 1.0.0
[   476.128] 	Module class: X.Org Server Extension
[   476.128] 	ABI class: X.Org Server Extension, version 6.0
[   476.128] (II) Loading extension DOUBLE-BUFFER
[   476.128] (II) LoadModule: "glx"
[   476.128] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[   476.129] (II) Module glx: vendor="Advanced Micro Devices, Inc."
[   476.129] 	compiled for 6.9.0, module version = 1.0.0
[   476.129] (II) Loading extension GLX
[   476.129] (II) LoadModule: "record"
[   476.129] (II) Loading /usr/lib64/xorg/modules/extensions/librecord.so
[   476.129] (II) Module record: vendor="X.Org Foundation"
[   476.129] 	compiled for 1.12.2, module version = 1.13.0
[   476.129] 	Module class: X.Org Server Extension
[   476.129] 	ABI class: X.Org Server Extension, version 6.0
[   476.129] (II) Loading extension RECORD
[   476.129] (II) LoadModule: "dri"
[   476.129] (WW) Warning, couldn't open module dri
[   476.129] (II) UnloadModule: "dri"
[   476.129] (II) Unloading dri
[   476.129] (EE) Failed to load module "dri" (module does not exist, 0)
[   476.129] (II) LoadModule: "dri2"
[   476.129] (WW) Warning, couldn't open module dri2
[   476.129] (II) UnloadModule: "dri2"
[   476.129] (II) Unloading dri2
[   476.129] (EE) Failed to load module "dri2" (module does not exist, 0)
[   476.129] (II) LoadModule: "fglrx"
[   476.129] (II) Loading /usr/lib64/xorg/modules/drivers/fglrx_drv.so
[   476.138] (II) Module fglrx: vendor="FireGL - AMD Technologies Inc."
[   476.138] 	compiled for 1.4.99.906, module version = 8.98.2
[   476.138] 	Module class: X.Org Video Driver
[   476.138] (II) Loading sub module "fglrxdrm"
[   476.138] (II) LoadModule: "fglrxdrm"
[   476.138] (II) Loading /usr/lib64/xorg/modules/linux/libfglrxdrm.so
[   476.138] (II) Module fglrxdrm: vendor="FireGL - AMD Technologies Inc."
[   476.138] 	compiled for 1.4.99.906, module version = 8.98.2
[   476.138] (II) AMD Proprietary Linux Driver Version Identifier:8.98.2
[   476.138] (II) AMD Proprietary Linux Driver Release Identifier: 8.98                                 
[   476.138] (II) AMD Proprietary Linux Driver Build Date: Jun 11 2012 11:57:59
[   476.138] (--) using VT number 7

[   476.139] (WW) Falling back to old probe method for fglrx
[   476.141] (II) Loading PCS database from /etc/ati/amdpcsdb
[   476.142] (--) Chipset Supported AMD Graphics Processor (0x679A) found
[   476.142] (WW) fglrx: No matching Device section for instance (BusID PCI:0@3:0:1) found
[   476.144] (II) AMD Video driver is running on a device belonging to a group targeted for this release
[   476.144] (II) AMD Video driver is signed
[   476.145] (II) fglrx(0): pEnt->device->identifier=0x3bae6ca80b0
[   476.145] (II) fglrx(0): === [xdl_xs112_atiddxPreInit] === begin
[   476.145] (II) Loading sub module "vgahw"
[   476.145] (II) LoadModule: "vgahw"
[   476.145] (II) Loading /usr/lib64/xorg/modules/libvgahw.so
[   476.145] (II) Module vgahw: vendor="X.Org Foundation"
[   476.145] 	compiled for 1.12.2, module version = 0.1.0
[   476.145] 	ABI class: X.Org Video Driver, version 12.0
[   476.145] (**) fglrx(0): Depth 24, (--) framebuffer bpp 32
[   476.145] (II) fglrx(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps)
[   476.145] (==) fglrx(0): Default visual is TrueColor
[   476.145] (**) fglrx(0): Option "DPMS" "true"
[   476.145] (==) fglrx(0): RGB weight 888
[   476.145] (II) fglrx(0): Using 8 bits per RGB 
[   476.145] (==) fglrx(0): Buffer Tiling is ON
[   476.145] (II) Loading sub module "fglrxdrm"
[   476.145] (II) LoadModule: "fglrxdrm"
[   476.145] (II) Loading /usr/lib64/xorg/modules/linux/libfglrxdrm.so
[   476.145] (II) Module fglrxdrm: vendor="FireGL - AMD Technologies Inc."
[   476.145] 	compiled for 1.4.99.906, module version = 8.98.2
[   476.146] ukiDynamicMajor: found major device number 250
[   476.146] ukiDynamicMajor: found major device number 250
[   476.146] ukiOpenByBusid: Searching for BusID PCI:3:0:0
[   476.146] ukiOpenDevice: node name is /dev/ati/card0
[   476.146] ukiOpenDevice: open result is 12, (OK)
[   476.146] ukiOpenByBusid: ukiOpenMinor returns 12
[   476.146] ukiOpenByBusid: ukiGetBusid reports PCI:3:0:0
[   476.146] (**) fglrx(0): NoAccel = NO
[   476.146] (**) fglrx(0): AMD 2D Acceleration Architecture enabled
[   476.146] (--) fglrx(0): Chipset: "AMD Radeon HD 7900 Series" (Chipset = 0x679a)
[   476.146] (--) fglrx(0): (PciSubVendor = 0x1787, PciSubDevice = 0x2316)
[   476.146] (==) fglrx(0): board vendor info: third party graphics adapter - NOT original AMD
[   476.146] (--) fglrx(0): Linear framebuffer (phys) at 0xd0000000
[   476.146] (--) fglrx(0): MMIO registers at 0xfbe00000
[   476.146] (--) fglrx(0): I/O port at 0x0000e000
[   476.146] (==) fglrx(0): ROM-BIOS at 0x000c0000
[   476.146] (II) fglrx(0): AC Adapter is used
[   476.148] 
[   476.148] Backtrace:
[   476.148] 0: /usr/bin/X (xorg_backtrace+0x4c) [0x3bae6a13e4c]
[   476.148] 1: /usr/bin/X (0x3bae6864000+0x1b4109) [0x3bae6a18109]
[   476.148] 2: /lib64/libpthread.so.0 (0x3bae5b78000+0x10420) [0x3bae5b88420]
[   476.148] 3: /usr/lib64/libpciaccess.so.0 (0x3bae5d95000+0x6314) [0x3bae5d9b314]
[   476.148] 4: /usr/lib64/xorg/modules/drivers/fglrx_drv.so (0x3bae269a000+0x803489) [0x3bae2e9d489]
[   476.148] 5: /usr/lib64/xorg/modules/drivers/fglrx_drv.so (amd_xs112_int10_xf86ExtendedInitInt10+0xdd) [0x3bae2e9d21d]
[   476.149] 6: /usr/lib64/xorg/modules/drivers/fglrx_drv.so (amd_xs112_int10_xf86InitInt10+0xb) [0x3bae2e9cabb]
[   476.149] 7: /usr/lib64/xorg/modules/drivers/fglrx_drv.so (xf86InitInt10+0xd) [0x3bae29e2b3d]
[   476.149] 8: /usr/lib64/xorg/modules/drivers/fglrx_drv.so (0x3bae269a000+0x48421c) [0x3bae2b1e21c]
[   476.149] 9: /usr/lib64/xorg/modules/drivers/fglrx_drv.so (xdl_xs112_PreInitAdapter+0x274) [0x3bae2b1ddf4]
[   476.149] 10: /usr/lib64/xorg/modules/drivers/fglrx_drv.so (xdl_xs112_atiddxPreInit+0x12ad) [0x3bae2b1f4dd]
[   476.149] 11: /usr/bin/X (InitOutput+0x853) [0x3bae6900713]
[   476.149] 12: /usr/bin/X (0x3bae6864000+0x3ef73) [0x3bae68a2f73]
[   476.149] 13: /lib64/libc.so.6 (__libc_start_main+0xfd) [0x3bae4aa326d]
[   476.149] 14: /usr/bin/X (0x3bae6864000+0x3ecb9) [0x3bae68a2cb9]
[   476.149] 
[   476.149] Segmentation fault at address 0xffffffffe6caef82
[   476.149] 
Fatal server error:
[   476.149] Caught signal 11 (Segmentation fault). Server aborting
[   476.149] 
[   476.149] 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[   476.149] Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   476.149] 
[   476.151] Server terminated with error (1). Closing log file.
My xorg.conf file:
Code:
Section "ServerLayout"
	Identifier     "aticonfig Layout"
	Screen      0  "aticonfig-Screen[0]-0" 0 0
EndSection

Section "Module"
EndSection

Section "Monitor"
	Identifier   "aticonfig-Monitor[0]-0"
	Option	    "VendorName" "ATI Proprietary Driver"
	Option	    "ModelName" "Generic Autodetecting Monitor"
	Option	    "DPMS" "true"
EndSection

Section "Device"
	Identifier  "aticonfig-Device[0]-0"
	Driver      "fglrx"
	BusID       "PCI:3:0:0"
EndSection

Section "Screen"
	Identifier "aticonfig-Screen[0]-0"
	Device     "aticonfig-Device[0]-0"
	Monitor    "aticonfig-Monitor[0]-0"
	DefaultDepth     24
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection
As the topicsubject suggests, i run Gentoo Hardened. I have heard of problems between Hardened and Fglrx, however these were quite old. As this is the first time i run Gentoo Hardened, so i don't have experience of Hardened in combination with Fglrx.
 
Old 07-31-2012, 04:06 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,284

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
The word that jumped out of that to me was 'Hardened' as in Gentoo Hardened.

This is where you want to investigate that hardening process. The only hardened system I ever ran was hlfs, and it used pax/grsecurity. There was a little utility called paxctl that allowed you to bend rules. You need to learn your own system. I also imagine Gentoo will have some advice.
 
Old 07-31-2012, 06:50 AM   #3
konqi
Member
 
Registered: Oct 2007
Distribution: Gentoo, Slackware
Posts: 162

Original Poster
Rep: Reputation: 16
I disabled PaX/GRsecurity in my kernel, and all PaX flags should be disabled:
Code:
# paxctl -v /usr/bin/Xorg
Pax control v0.7
Copyright 2004, 2005, 2006, 2007, 2009, 2010, 2011, 2012 Pax Team <pageexec@freemail.hu>

- Pax flags: -------x-e-- [/usr/bin/Xorg]
        RANDEXEC is disabled
        EMUTRAMP is disabled
I have found forums with similar segfault posts, however the solutions didn't work for me.
I think i will test a non-hardened Gentoo installation this evening.
 
Old 07-31-2012, 09:13 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,284

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
It's 10 years since I was near that stuff, but disabling it in the kernel may not be enough. The system is put together differently, which is why a lfs approach to a hardened system is always better. There is/was a very good explanation of the differences in the early part of the HLFS book.
www/linuxfromscratch.org/hlfs
 
Old 07-31-2012, 10:24 AM   #5
konqi
Member
 
Registered: Oct 2007
Distribution: Gentoo, Slackware
Posts: 162

Original Poster
Rep: Reputation: 16
Hmm interesting stuff. Never heard of Hardened LFS before. I will check it out sometime.
 
Old 08-07-2012, 07:49 AM   #6
Sidicas
Member
 
Registered: Apr 2004
Distribution: Debian GNU/Linux
Posts: 47

Rep: Reputation: 6
Use the Catalyst 12.7 Beta driver. If that doesn't work well for you, you need to use an older version of xorg.

I'm running Debian Wheezy and the way I fixed it originally was to use an older Xorg version that I pulled from Debian Squeeze and grabbed catalyst 12.6 to go with it as well.

I believe now the 12.7 Beta will work with the newer versions of xorg that you're trying to use now, but I'm too lazy to try it. Good luck.

The joys of running bleeding edge hardware... Ya' know?

Last edited by Sidicas; 08-07-2012 at 07:58 AM.
 
Old 08-08-2012, 02:01 AM   #7
konqi
Member
 
Registered: Oct 2007
Distribution: Gentoo, Slackware
Posts: 162

Original Poster
Rep: Reputation: 16
I reiinstalled Gentoo (not Hardened this time), the Xorg and driver versions are the same as before. Now it runs without a problem.
 
Old 08-09-2012, 02:48 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,284

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
Originally Posted by konqi View Post
I reiinstalled Gentoo (not Hardened this time), the Xorg and driver versions are the same as before. Now it runs without a problem.
I think you can mark this solved, then.

You really only want a hardened system if you expect hacking attempts. They do best for servers where some program is compromised by a hack attempt and the hacker will find it difficult and noisy to get out by comparison with the ordinary user. For home boxes, hardening is just a pain.
 
  


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
LXer: AMD Radeon HD 7950 Running On Linux LXer Syndicated Linux News 0 03-12-2012 01:00 PM
fglrx segfaults on Radeon HD 4500 bl0tt0 Slackware 5 10-08-2011 07:00 PM
fglrx 8.443.1 + radeon x1600 + gentoo = black screen jimerickso Linux - Desktop 2 12-21-2007 10:55 PM
gentoo, fglrx 8.43.2, radeon x1650 jimerickso Linux - Desktop 13 12-14-2007 04:04 PM
Quake IV Segfaults ATI Radeon x1800 512MiB Gentoo verdeboy2k Linux - Games 1 05-30-2006 11:56 AM

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

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