Bug 608149

Summary: intel [Ironlake/Clarkdale] X crashes (double free or corruption in libdrm_intel.so.1) when starting any application on a KDE session with desktop effects enabled
Product: [openSUSE] openSUSE 11.3 Reporter: Misha Z <0mishamzs0>
Component: X.OrgAssignee: Stefan Dirsch <sndirsch>
Status: RESOLVED FIXED QA Contact: E-mail List <xorg-maintainer-bugs>
Severity: Major    
Priority: P3 - Medium CC: os2, suse
Version: Milestone 7   
Target Milestone: ---   
Hardware: 32bit   
OS: openSUSE 11.3   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: logs
after crash
photo
last

Description Misha Z 2010-05-23 13:57:43 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.0 (KHTML, like Gecko) Chrome/6.0.408.1 Safari/534.0

laptop msi cr620: Intel® Core™ i3/Intel® HD Graphic

May 23 16:43:15 linux-omhq polkitd(authority=local): Unregistered Authentication Agent for session /org/freedesktop/ConsoleKit/Session3 (system bus name :1.68, object path /org/gnome/PolicyKit1/AuthenticationAgent, locale ru_RU.UTF-8) (disconnected from bus)
May 23 16:43:15 linux-omhq kdm[1629]: X server for display :0 terminated unexpectedly
May 23 16:43:15 linux-omhq acpid: 1 client rule loaded
May 23 16:43:29 linux-omhq checkproc: checkproc: can not get session id for process 5924!
May 23 16:43:44 linux-omhq acpid: 1 client rule loaded
May 23 16:43:53 linux-omhq checkproc: checkproc: can not get session id for process 24226!
May 23 16:43:59 linux-omhq polkitd(authority=local): Registered Authentication Agent for session /org/freedesktop/ConsoleKit/Session5 (system bus name :1.102 [/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1], object path /org/gnome/PolicyKit1/AuthenticationAgent, locale ru_RU.UTF-8)
May 23 16:44:00 linux-omhq python: hp-systray[24588]: warning: No hp: or hpfax: devices found in any installed CUPS queue. Exiting.
May 23 16:44:18 linux-omhq su: (to root) mahmud on /dev/pts/2
May 23 16:44:18 linux-omhq su: (to root) mahmud on /dev/pts/2

Reproducible: Always

Steps to Reproduce:
1. in the parameters of the system put option "Graphic effects (shadows, transparency, improved window management).
2. Click "Apply. It is seen that the visual effects work.
3. Launch any application (I run the "System Settings").
Actual Results:  
X.org falls. Appears on the login window.

Expected Results:  
Should launch the application.
Comment 1 Stefan Dirsch 2010-05-23 15:19:02 UTC
Would it be possible to provide the required information according
to our HOWTO

  http://en.opensuse.org/Bugs:X

for reporting X11 related bugs? Please set the Status back to
ASSIGNED after providing all the required information. Thanks.
Comment 2 Misha Z 2010-05-23 16:00:09 UTC
Created attachment 363994 [details]
logs
Comment 3 Misha Z 2010-05-23 16:09:57 UTC
Created attachment 363995 [details]
after crash
Comment 4 Stefan Dirsch 2010-05-23 16:32:39 UTC
I can't see an Xserver crash in the logfile (Xorg.0.log.old). You copied the file right after the crash?
Comment 5 Misha Z 2010-05-23 17:04:11 UTC
Created attachment 363997 [details]
photo

Now I went into console mode and ran a graphic. I made the picture of what is displayed after a crash.
Logs I do take after the crash. If I do something wrong, then tell me how to.
Comment 6 Stefan Dirsch 2010-05-23 17:34:17 UTC
Right, if X crashes in libdrm_intel.so.1 you don't see that in the logfile (only in the displaymanager's logfile and on the Linux console).
Comment 7 Misha Z 2010-05-23 17:35:05 UTC
Created attachment 363998 [details]
last

In inittab prescribed load level 3.
manually run startx. After the crash, everything freezes. On pressing a key does not respond. I restarted. Through the console copy the files.
By the way, I can boot with icewm, and the crash does not occur.
There can I remove the graphic effects and then run KDE.
Comment 8 Stefan Dirsch 2010-05-28 15:38:35 UTC
*** Bug 608144 has been marked as a duplicate of this bug. ***
Comment 9 Stefan Dirsch 2010-05-28 23:26:23 UTC
I can't reproduce that issue with 11.3 M7 DVD on a Lenovo T41 with Ironlake GPU. WORKSFORME.
Comment 10 Stefan Dirsch 2010-05-29 12:16:28 UTC
Date: Sat, 29 May 2010 14:10:37 +0200
From: Hayen Iggena <os2@iggena.de>
To: sndirsch@novell.com
Subject: Re: [Bug 608149] intel [Ironlake/Clarkdale] X crashes (double free
        or corruption in libdrm_intel.so.1) when starting any application on a
        KDE session with desktop effects enabled

Hello!

I dont know how to answer in the bugzilla. If I click on "reply" nothing
happen.

The bug only come if you try to use the KDE desktop effects and use
OpenGL as composit typ. If you use XRender the desktop didn´t crash.

In german: Der Fehler tritt nur auf, wenn man in den KDE
Systemeinstellungen die Desktopeffeke anschaltet und unter "Erweitere"
OpenGL als Composite Type eingeschaltet hat. Ist dort "XRender"
eingeschaltet, tritt der Fehler nicht auf.

Regards
Hayen Iggena
Comment 11 Stefan Dirsch 2010-05-29 12:23:37 UTC
OpenGL as Compositing Type is the default. No issues using this setting on my Ironlake-based laptop. Xrender works as well.
Comment 12 Jan Ritzerfeld 2010-05-30 18:04:57 UTC
I can reproduce this problem with my T410s (Arrandale i5-520M) and M7:
After enabling compositing everything seems to work fine but when I open a new window, X is terminted unexpectedly. There is nothing special in X.org.0.log, too. This mandriva bug looks similar: https://qa.mandriva.com/show_bug.cgi?id=58143

Since this is the third bug report about X crashing on Core i3/5 laptops with integrated chipset graphics and compositing, I will reopen this bug.
Comment 13 Stefan Dirsch 2010-05-30 20:56:44 UTC
Well, nothing I can do here as long as I can't reproduce it ...
Comment 14 Jan Ritzerfeld 2010-05-31 19:03:46 UTC
Too bad.

However, I found this thread that describes a very similar problem:
http://lists.freedesktop.org/archives/intel-gfx/2010-April/006551.html
M7 uses this libdrm version (2.4.20) and the patch linked in the posting was committed after the Intel 2010Q1 release (that includes libdrm 2.4.20).

Maybe we (the reporters) can get a rpm with this patch to test?
Comment 15 Stefan Dirsch 2010-05-31 20:43:09 UTC
(In reply to comment #14)
> Too bad.
> 
> However, I found this thread that describes a very similar problem:
> http://lists.freedesktop.org/archives/intel-gfx/2010-April/006551.html
> M7 uses this libdrm version (2.4.20) and the patch linked in the posting was
> committed after the Intel 2010Q1 release (that includes libdrm 2.4.20).
> 
> Maybe we (the reporters) can get a rpm with this patch to test?

Looks promising. Try the libdrm package in this repo.

  http://download.opensuse.org/repositories/X11:/XOrg/openSUSE_Factory/

Latest RPM changelog entry:

Mon May 31 22:08:35 CEST 2010 - sndirsch@suse.de

- intel: Use the correct size when allocating reloc_target_info
  array. Thomas tracked down this error with kdm and commit b509640

Should be available in a few hours.
Comment 16 Stefan Dirsch 2010-06-01 03:36:54 UTC
> http://download.opensuse.org/repositories/X11:/XOrg/openSUSE_Factory/

Finally the right libdrm packages are available for download.
Comment 17 Misha Z 2010-06-01 12:14:31 UTC
Add repository. updated packages. Now, in the mode of openGL, everything works well.
Comment 18 Stefan Dirsch 2010-06-01 12:23:31 UTC
Wonderful! Submitted to openSUSE:Factory now.

40949  State:new     By:sndirsch     When:2010-06-01T14:22:31
       submit:       X11:XOrg/libdrm  ->  openSUSE:Factory       
       Descr: - intel: Use the correct size when allocating reloc_target_info
                array. Thomas tracked down this error with kdm and commit b509640
                (bnc #608149)
Comment 19 Jan Ritzerfeld 2010-06-01 19:53:51 UTC
Indeed! I manually updated libdrm only and I can open windows again, even with compositing enabled. :)

Many thanks for your quick help!