Bug 1172232 - Segfault rooted at OsLookupColor+0x119 passes through intel_drv.so (_init+0x5713c)
Summary: Segfault rooted at OsLookupColor+0x119 passes through intel_drv.so (_init+0x5...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: xorg-x11-drv-intel
Version: 21
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Hans de Goede
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-09 16:41 UTC by Sam
Modified: 2015-06-10 19:12 UTC (History)
6 users (show)

Fixed In Version: xorg-x11-drv-intel-2.99.916-4.20141117.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-10 19:12:02 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
My xconfig.d. Tarball has the full etc path in it. (1015 bytes, application/x-bzip)
2014-12-09 16:41 UTC, Sam
no flags Details
Xorg.0.log showing crash. (13.44 KB, text/plain)
2014-12-09 16:42 UTC, Sam
no flags Details
Crash 2 Config (2.90 KB, text/plain)
2014-12-10 20:23 UTC, Sam
no flags Details
Crash 2 Xorg Log (34.54 KB, text/plain)
2014-12-10 20:23 UTC, Sam
no flags Details

Description Sam 2014-12-09 16:41:44 UTC
Created attachment 966358 [details]
My xconfig.d. Tarball has the full etc path in it.

Description of problem:
My Xinerama configuration from Fedora 20 segfaults in Fedora 21. Nvidia proprietary driver is one card and the stock Fedora 21 intel driver is the second card.

Disabling the intel driver or the nvidia driver allows the system to bring up the single associated display.

Version-Release number of selected component (if applicable):
xorg-x11-server 1.16.2-1.fc21
NVIDIA dlloader X Driver  340.65  Tue Dec  2 08:47:36 PST 2014
intel(1): Using Kernel Mode Setting driver: i915, version 1.6.0 20140725

How reproducible:
Consistently.
Disabling the intel driver or the nvidia driver allows the system to bring up the single associated display.

Steps to Reproduce:
1. Install included configurations.
2. Install NVidia's NVIDIA-Linux-x86_64-340.65.run driver.
3. Startx

Actual results:
(EE) Backtrace:
(EE) 0: /usr/libexec/Xorg.bin (OsLookupColor+0x119) [0x59bfd9]
(EE) 1: /lib64/libc.so.6 (__restore_rt+0x0) [0x3cdac3494f]
(EE) 2: /usr/lib64/xorg/modules/drivers/intel_drv.so (_init+0x5713c) [0x7f0b7a7aaa6c]
(EE) 3: /usr/libexec/Xorg.bin (AddScreen+0x101) [0x439351]
(EE) 4: /usr/libexec/Xorg.bin (InitOutput+0x3e1) [0x47b4b1]
(EE) 5: /usr/libexec/Xorg.bin (remove_fs_handlers+0x22a) [0x43cfaa]
(EE) 6: /lib64/libc.so.6 (__libc_start_main+0xf0) [0x3cdac1ffe0]
(EE) 7: /usr/libexec/Xorg.bin (_start+0x29) [0x42761e]
(EE) 8: ? (?+0x29) [0x29]

Expected results:
X starts. ;)

Additional info:
There are a few bugs showing OsLookupColor being at the base of the call stack. I don't see evidence of the glamor driver loading making me think this error is something different.

Comment 1 Sam 2014-12-09 16:42:55 UTC
Created attachment 966360 [details]
Xorg.0.log showing crash.

Comment 2 Sam 2014-12-10 20:22:53 UTC
Sam behaviour was observed on another platform with a radeon card and intel card:

[   106.166] (II) intel(1): RandR 1.2 enabled, ignore the following RandR disabled message.
[   106.166] (EE) 
[   106.166] (EE) Backtrace:
[   106.186] (EE) 0: /usr/libexec/Xorg.bin (OsLookupColor+0x119) [0x59bf79]
[   106.192] (EE) 1: /lib64/libc.so.6 (__restore_rt+0x0) [0x7feb685a794f]
[   106.192] (EE) 2: /usr/lib64/xorg/modules/drivers/intel_drv.so (_init+0x5713c) [0x7feb631fca6c]
[   106.192] (EE) 3: /usr/libexec/Xorg.bin (AddScreen+0x101) [0x439341]
[   106.192] (EE) 4: /usr/libexec/Xorg.bin (InitOutput+0x3e1) [0x47b4a1]
[   106.193] (EE) 5: /usr/libexec/Xorg.bin (remove_fs_handlers+0x22a) [0x43cf9a]
[   106.193] (EE) 6: /lib64/libc.so.6 (__libc_start_main+0xf0) [0x7feb68592fe0]
[   106.193] (EE) 7: /usr/libexec/Xorg.bin (_start+0x29) [0x42761e]
[   106.194] (EE) 8: ? (?+0x29) [0x29]
[   106.194] (EE) 
[   106.194] (EE) Segmentation fault at address 0x8

Comment 3 Sam 2014-12-10 20:23:34 UTC
Created attachment 966959 [details]
Crash 2 Config

Comment 4 Sam 2014-12-10 20:23:58 UTC
Created attachment 966960 [details]
Crash 2 Xorg Log

Comment 5 Sam 2014-12-11 14:27:58 UTC
I also persued on freedesktop.org folks and they've commited a fix for this particular problem:

The commit:
http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/commit/?id=f587d71f3c91f9ddcc4cdbe8a0f9ce59590d9db2

The bug:
https://bugs.freedesktop.org/show_bug.cgi?id=87207

Rolling a new RPM may close this, no?

Comment 6 Radek Novacek 2015-01-19 09:43:38 UTC
I'm also affected by this bug (or maybe similar), Xorg crashes for me quite often with following backtrace:

[ 12175.737] (EE) Backtrace:
[ 12175.739] (EE) 0: /usr/libexec/Xorg.bin (OsLookupColor+0x119) [0x59c5f9]
[ 12175.740] (EE) 1: /lib64/libc.so.6 (__restore_rt+0x0) [0x7f9ae6d9c94f]
[ 12175.740] (EE) 2: /usr/libexec/Xorg.bin (dixDestroyPixmap+0x13ef) [0x436fdf]
[ 12175.740] (EE) 3: /usr/libexec/Xorg.bin (SendErrorToClient+0x2f7) [0x4391a7]
[ 12175.740] (EE) 4: /usr/libexec/Xorg.bin (remove_fs_handlers+0x416) [0x43d306]
[ 12175.741] (EE) 5: /lib64/libc.so.6 (__libc_start_main+0xf0) [0x7f9ae6d87fe0]
[ 12175.741] (EE) 6: /usr/libexec/Xorg.bin (_start+0x29) [0x4276ee]
[ 12175.742] (EE) 7: ? (?+0x29) [0x29]
[ 12175.742] (EE) 
[ 12175.742] (EE) Floating point exception at address 0x435cdf
[ 12175.742] (EE) 
Fatal server error:
[ 12175.742] (EE) Caught signal 8 (Floating point exception). Server aborting

Can we get the patch referenced in comment 5 backported to f21?

Comment 7 Radek Novacek 2015-01-19 09:45:32 UTC
For the reference, I have following packages installed:

xorg-x11-server-Xorg-1.16.2.901-1.fc21.x86_64
xorg-x11-drv-intel-2.99.916-3.20141117.fc21.x86_64

Comment 8 Carlos O'Donell 2015-01-26 16:21:46 UTC
Similar failure in OsLookupColor.

Used arandr to trigger it.

[1019567.730] (EE) Backtrace:
[1019567.733] (EE) 0: /usr/libexec/Xorg.bin (OsLookupColor+0x119) [0x59c5f9]
[1019567.735] (EE) 1: /lib64/libc.so.6 (__restore_rt+0x0) [0x7ff5c98f694f]
[1019567.735] (EE) 2: /usr/libexec/Xorg.bin (DamageUnregister+0x1e) [0x51d6fe]
[1019567.735] (EE) 3: /usr/libexec/Xorg.bin (miFillUniqueSpanGroup+0x1145) [0x589275]
[1019567.735] (EE) 4: /usr/libexec/Xorg.bin (miFillUniqueSpanGroup+0x1c83) [0x58a893]
[1019567.735] (EE) 5: /usr/libexec/Xorg.bin (miPointerUpdateSprite+0x3b2) [0x583ca2]
[1019567.736] (EE) 6: /usr/libexec/Xorg.bin (PanoramiXRenderReset+0x483) [0x517523]
[1019567.736] (EE) 7: /usr/libexec/Xorg.bin (MaybeDeliverEventsToClient+0x13f7) [0x446c77]
[1019567.736] (EE) 8: /usr/libexec/Xorg.bin (InitProximityClassDeviceStruct+0x1f5b) [0x5287ab]
[1019567.736] (EE) 9: /usr/libexec/Xorg.bin (InitProximityClassDeviceStruct+0x25cb) [0x52923b]
[1019567.736] (EE) 10: /usr/libexec/Xorg.bin (AccessXFilterReleaseEvent+0x4d2) [0x549c72]
[1019567.736] (EE) 11: /usr/libexec/Xorg.bin (mieqSetHandler+0x3a2) [0x579b42]
[1019567.736] (EE) 12: /usr/libexec/Xorg.bin (mieqProcessInputEvents+0x127) [0x579b47]
[1019567.736] (EE) 13: /usr/libexec/Xorg.bin (ProcessInputEvents+0x19) [0x477639]
[1019567.736] (EE) 14: /usr/libexec/Xorg.bin (SendErrorToClient+0x215) [0x4390c5]
[1019567.736] (EE) 15: /usr/libexec/Xorg.bin (remove_fs_handlers+0x416) [0x43d306]
[1019567.737] (EE) 16: /lib64/libc.so.6 (__libc_start_main+0xf0) [0x7ff5c98e1fe0]
[1019567.737] (EE) 17: /usr/libexec/Xorg.bin (_start+0x29) [0x4276ee]
[1019567.741] (EE) 18: ? (?+0x29) [0x29]

Seems like new packages with patch would indeed fix this.

Comment 9 Hans de Goede 2015-01-28 11:15:06 UTC
Hi All,

For those seeing this, can you please do:

rpm -q xorg-x11-drv-keyboard xorg-x11-drv-mouse

And if you've either of them installed remove them:

sudo rpm -e xorg-x11-drv-keyboard xorg-x11-drv-mouse

Then restart X and try to reproduce the crash ?

These 2 drivers are no longer supported, and you may have old incompatible versions on your system causing this issue.

Regards,

Hans

Comment 10 Radek Novacek 2015-01-28 11:52:58 UTC
Hans, I don't have these packages installed:

> rpm -qa | grep xorg-x11-drv
xorg-x11-drv-modesetting-0.9.0-2.fc21.x86_64
xorg-x11-drv-synaptics-1.8.0-9.fc21.x86_64
xorg-x11-drv-void-1.4.0-27.fc21.x86_64
xorg-x11-drv-dummy-0.3.6-20.fc21.x86_64
xorg-x11-drv-intel-2.99.916-3.20141117.fc21.x86_64
xorg-x11-drv-fbdev-0.4.3-19.fc21.x86_64
xorg-x11-drv-evdev-2.9.0-3.fc21.x86_64
xorg-x11-drv-vesa-2.3.2-19.fc21.x86_64

Comment 11 Sam 2015-01-28 15:05:20 UTC
Hans, the issues that this bug represents is solved by patching the intel driver (see comment 5). This bug really won't be closed until the xorg-x11-drv-intel contains those patches.

I did check my system for the packages you mention, and they are not installed. Thanks for the good idea.

Relevant commits for the intel driver (there are now two):

 - http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/commit/?id=f587d71f3c91f9ddcc4cdbe8a0f9ce59590d9db2
 - http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/commit/?id=60ebac591596ccb768b684b1909064570dd1cf47

Comment 12 Carlos O'Donell 2015-01-28 16:31:58 UTC
(In reply to Hans de Goede from comment #9)
> rpm -q xorg-x11-drv-keyboard xorg-x11-drv-mouse

rpm -q xorg-x11-drv-keyboard xorg-x11-drv-mouse
package xorg-x11-drv-keyboard is not installed
package xorg-x11-drv-mouse is not installed

Don't have those packages. Still crashes.

I agree with comment 11.

Comment 13 mwp.junk 2015-02-01 02:21:38 UTC
I have this issue as well with Intel graphics 4600 and Nvidia 860M, but using the modesetting and nvidia driver

Comment 14 Marcin Zajaczkowski 2015-05-30 09:45:24 UTC
I started to had that problem after upgrade to Fedora 22 (clean installation).

xorg-x11-server-Xorg-1.17.1-12.fc22.x86_64
xorg-x11-drv-intel-2.99.917-9.20150520.fc22.x86_64

Asus N43S with "Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller" and GeForce GT 550M (Optimus)

I use nouveau driver.

It occurs on the fist login after restart. The second try login me into Gnome Shell without problems.

Comment 15 Marcin Zajaczkowski 2015-05-30 09:48:07 UTC
Btw, the very similar bug is already closed in the xorg Bugzilla in December 2014 - https://bugs.freedesktop.org/show_bug.cgi?id=87207. Is it a regression or that change had never appeared in Fedora?

Comment 16 Hans de Goede 2015-06-03 08:50:03 UTC
(In reply to Sam from comment #11)
> Hans, the issues that this bug represents is solved by patching the intel
> driver (see comment 5). This bug really won't be closed until the
> xorg-x11-drv-intel contains those patches.
> 
> I did check my system for the packages you mention, and they are not
> installed. Thanks for the good idea.
> 
> Relevant commits for the intel driver (there are now two):
> 
>  -
> http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/commit/
> ?id=f587d71f3c91f9ddcc4cdbe8a0f9ce59590d9db2
>  -
> http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/commit/
> ?id=60ebac591596ccb768b684b1909064570dd1cf47

Thanks, I've just started a build of xorg-x11-drv-intel for F-21 with these 2 patches included.

For those of you who are seeing issues on F-22, first of all make sure that you've the latest F-22 build:
http://koji.fedoraproject.org/koji/buildinfo?buildID=638957

And if you then still have problems, please file a new bug as you are then experiencing a different problem.

Comment 17 Fedora Update System 2015-06-03 09:05:23 UTC
xorg-x11-drv-intel-2.99.916-4.20141117.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/xorg-x11-drv-intel-2.99.916-4.20141117.fc21

Comment 18 Sam 2015-06-03 14:51:29 UTC
(In reply to Marcin Zajaczkowski from comment #15)
> Btw, the very similar bug is already closed in the xorg Bugzilla in December
> 2014 - https://bugs.freedesktop.org/show_bug.cgi?id=87207. Is it a
> regression or that change had never appeared in Fedora?

Marcin, very observant. :) I opened that bug as well. The commits against that bug resolve the crash I observed and are the patches I that solve this problem in Fedora 21.

So, not a regression. Same issue reported with different parties. One to fix the code, and one to get that code on my system so I can stop hand-compiling the intel driver. ;)

Comment 19 Fedora Update System 2015-06-05 23:58:51 UTC
Package xorg-x11-drv-intel-2.99.916-4.20141117.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing xorg-x11-drv-intel-2.99.916-4.20141117.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-9510/xorg-x11-drv-intel-2.99.916-4.20141117.fc21
then log in and leave karma (feedback).

Comment 20 Fedora Update System 2015-06-10 19:12:02 UTC
xorg-x11-drv-intel-2.99.916-4.20141117.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.