Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 221113 - X11 1.4 server segfaults after unknown PCI ID (E7221)
Summary: X11 1.4 server segfaults after unknown PCI ID (E7221)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo X packagers
URL: http://bugs.freedesktop.org/show_bug....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-09 16:52 UTC by Jeremy Huddleston (RETIRED)
Modified: 2009-04-24 08:00 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Huddleston (RETIRED) gentoo-dev 2008-05-09 16:52:10 UTC
When using low security settings with grsec, the X11 server will be killed after the intel DRI driver fails to recognize the PCI ID of the intel video card (bug #221111 includes a fix to get the PCI ID added to Mesa).

I reported this firs at http://bugs.freedesktop.org/show_bug.cgi?id=14395 :

"""
grsec: signal 11 sent to /usr/bin/Xorg[X:13023] uid/euid:0/0 gid/egid:0/0,
parent /usr/bin/xinit[xinit:13022] uid/euid:0/0 gid/egid:0/0
grsec: denied resource overstep by requesting 4096 for RLIMIT_CORE against
limit 0 for /usr/bin/Xorg[X:13023] uid/euid:0/0 gid/egid:0/0, parent
/usr/bin/xinit[xinit:13022] uid/euid:0/0 gid/egid:0/0

gdb is being annoying and not letting me attach to the process in order to get
a usable backtrace to see where that's coming from, and I'm not sure why...
really frustrating.
"""

Starting X after 'export RLIMIT_CORE=4096' is a workaround... but I'd like to figure out where this is actually coming from, and gdb is being annoying.  It's not attaching to the process for me to get a backtrace, and I can't figure out why.  It looks like it's just hung (I don't see the normal "Reading symbols ........." progress).
Comment 1 Gordon Malm (RETIRED) gentoo-dev 2008-05-09 18:25:30 UTC
> grsec: signal 11 sent to /usr/bin/Xorg[X:13023] uid/euid:0/0 gid/egid:0/0,
> parent /usr/bin/xinit[xinit:13022] uid/euid:0/0 gid/egid:0/0
> grsec: denied resource overstep by requesting 4096 for RLIMIT_CORE against
> limit 0 for /usr/bin/Xorg[X:13023] uid/euid:0/0 gid/egid:0/0, parent
> /usr/bin/xinit[xinit:13022] uid/euid:0/0 gid/egid:0/0
> 

A message like this is typically grsec simply recording that process receiving a signal 11, not it actually doing the killing.  When the process died it tried to dump a core but grsec did deny that.

Please post your emerge --info, kernel config and /var/log/Xorg.0.log
Comment 2 Jeremy Huddleston (RETIRED) gentoo-dev 2008-05-09 19:44:55 UTC
/var/log/Xorg.0.log is upstream... There was no useful info there, since I couldn't get gdb to attach.  I'll get a core dump and analyze it next time I can.

Thanks for the info on the grsec side of things.
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2008-05-09 22:18:58 UTC
http://wiki.x.org/wiki/Development/Documentation/ServerDebugging might be useful, if you haven't seen it already.
Comment 4 Łukasz Damentko (RETIRED) gentoo-dev 2008-10-30 17:04:24 UTC
Reassigning to herd since eradicator has left Gentoo.
Comment 5 Gordon Malm (RETIRED) gentoo-dev 2009-04-24 08:00:58 UTC
Bug is long fixed.  Check freedesktop.org bug linked in the original post.  Closing as FIXED.