[Bug 876762] Re: KDE crashes at login with desktop effects enabled
oneiric has seen the end of its life and is no longer receiving any updates. Marking the oneiric task for this ticket as "Won't Fix". ** Changed in: xorg-server (Ubuntu Oneiric) Status: Triaged => Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/876762 Title: KDE crashes at login with desktop effects enabled To manage notifications about this bug go to: https://bugs.launchpad.net/xserver-xorg-video-intel/+bug/876762/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 876762] Re: KDE crashes at login with desktop effects enabled
A SRU would be most welcome. Precise is still a few months away. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/876762 Title: KDE crashes at login with desktop effects enabled To manage notifications about this bug go to: https://bugs.launchpad.net/xserver-xorg-video-intel/+bug/876762/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 876762] Re: KDE crashes at login with desktop effects enabled
The fix is in precise already. ** Changed in: xorg-server (Ubuntu) Status: Confirmed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/876762 Title: KDE crashes at login with desktop effects enabled To manage notifications about this bug go to: https://bugs.launchpad.net/xserver-xorg-video-intel/+bug/876762/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 876762] Re: KDE crashes at login with desktop effects enabled
Here's the patch if anyone wants to do an SRU for it. The patch might need some massaging to make it work with xserver 1.10. ** Package changed: xserver-xorg-video-intel (Ubuntu) => xorg-server (Ubuntu) ** Changed in: xorg-server (Ubuntu Oneiric) Importance: Undecided => Medium ** Changed in: xorg-server (Ubuntu Oneiric) Status: Confirmed => Triaged ** Patch added: "register_dri2drawabletype_after_server_regen.patch" https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/876762/+attachment/2712246/+files/register_dri2drawabletype_after_server_regen.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/876762 Title: KDE crashes at login with desktop effects enabled To manage notifications about this bug go to: https://bugs.launchpad.net/xserver-xorg-video-intel/+bug/876762/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 876762] Re: KDE crashes at login with desktop effects enabled
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: xorg-server (Ubuntu Oneiric) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/876762 Title: KDE crashes at login with desktop effects enabled To manage notifications about this bug go to: https://bugs.launchpad.net/xserver-xorg-video-intel/+bug/876762/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 876762] Re: KDE crashes at login with desktop effects enabled
** Also affects: xserver-xorg-video-intel (Ubuntu Oneiric) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/876762 Title: KDE crashes at login with desktop effects enabled To manage notifications about this bug go to: https://bugs.launchpad.net/xserver-xorg-video-intel/+bug/876762/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 876762] Re: KDE crashes at login with desktop effects enabled
Any chance we will see this in an updated xserver-xorg-video-intel package for Oneiric? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/876762 Title: KDE crashes at login with desktop effects enabled To manage notifications about this bug go to: https://bugs.launchpad.net/xserver-xorg-video-intel/+bug/876762/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 876762] Re: KDE crashes at login with desktop effects enabled
Sorry for #20, this is actually wrong, kdm doesn't crash after switching desktop effects. But if you want to safely re-login after a logout, you can choose restart X-Server on the login prompt. The next login will not crash kdm and desktop effects remain enabled. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/876762 Title: KDE crashes at login with desktop effects enabled To manage notifications about this bug go to: https://bugs.launchpad.net/xserver-xorg-video-intel/+bug/876762/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 876762] Re: KDE crashes at login with desktop effects enabled
The work-around described in #7 & #4 of course only works if - you do not switch between DRI modes (eg. ALT-SHIFT-F12) - you do not have power save enabled to alter desktop effects otherwise you will lose any unsaved work when you detach you power cord. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/876762 Title: KDE crashes at login with desktop effects enabled To manage notifications about this bug go to: https://bugs.launchpad.net/xserver-xorg-video-intel/+bug/876762/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 876762] Re: KDE crashes at login with desktop effects enabled
Launchpad has imported 8 comments from the remote bug at https://bugs.freedesktop.org/show_bug.cgi?id=42008. If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. On 2011-10-19T19:13:41+00:00 Thilo-Alexander Ginkel wrote: The following issue occurs on my Kubuntu 11.10 system (Lenovo T420s w/ Intel HD Graphics 3000). With KWin desktop effects enabled, Xorg crashes on each second login. $ uname -a Linux orion 3.1.0-0301rc10-generic #201110181253 SMP Tue Oct 18 12:57:33 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux $ lspci -vv 00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller]) Subsystem: Lenovo Device 21d2 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- SERR- [disabled] Capabilities: Kernel driver in use: i915 Kernel modules: i915 Full backtrace (based on commit 2608a367acba7247e50754c3daeed09ba2e97d05): -- 8< -- #0 0x7fcbf4fa63a5 in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 resultvar = 0 pid = selftid = #1 0x7fcbf4fa9b0b in __GI_abort () at abort.c:92 save_stage = 2 act = {__sigaction_handler = {sa_handler = 0x4, sa_sigaction = 0x4}, sa_mask = {__val = {5, 140735046524302, 10, 140513966347903, 3, 140735046516714, 6, 140513966347907, 2, 140735046516734, 2, 140513966338901, 1, 140513966347903, 3, 140735046516708}}, sa_flags = 12, sa_restorer = 0x7fcbf50cd683} sigs = {__val = {32, 0 }} #2 0x7fcbf4fde113 in __libc_message (do_abort=2, fmt=0x7fcbf50cf0d8 "*** glibc detected *** %s: %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:189 ap = {{gp_offset = 40, fp_offset = 48, overflow_arg_area = 0x7fff6e748960, reg_save_area = 0x7fff6e748870}} ap_copy = {{gp_offset = 16, fp_offset = 48, overflow_arg_area = 0x7fff6e748960, reg_save_area = 0x7fff6e748870}} fd = 2 on_2 = list = nlist = cp = written = #3 0x7fcbf4fe8a96 in malloc_printerr (action=3, str=0x7fcbf50cf278 "double free or corruption (!prev)", ptr=) at malloc.c:6283 buf = "02bf2230" cp = #4 0x7fcbf4fecd7c in __GI___libc_free (mem=) at malloc.c:3738 ar_ptr = 0x7fcbf530a1c0 p = hook = #5 0x7fcbf31ae5de in i830_dri2_frame_event_drawable_gone (data=0x2bf2230, id=29360131) at ../../src/intel_dri.c:678 resource = 0x2bf2230 #6 0x0044ea5c in FreeClientResources (client=0x2d01c10) at ../../dix/resource.c:854 rtype = resources = this = 0x2f4b0c0 j = #7 0x0042f05a in CloseDownClient (client=0x2d01c10) at ../../dix/dispatch.c:3461 really_close_down = #8 0x0042fb9e in Dispatch () at ../../dix/dispatch.c:441 clientReady = 0x29f4830 result = client = 0x2d01c10 nready = 0 icheck = 0x7f1470 start_tick = 680 #9 0x004232fe in main (argc=8, argv=, envp=) at ../../dix/main.c:287 i = alwaysCheckForInput = {0, 1} -- 8< -- I bi-sected xserver-xorg-video-intel (as available at git://git.debian.org/git/pkg-xorg/driver/xserver-xorg-video-intel, which is what the Ubuntu packages are based on). The first bad commit is: commit 2608a367acba7247e50754c3daeed09ba2e97d05 Author: Chris Wilson Date: Mon Jul 11 16:28:15 2011 +0100 dri: Prevent abuse of the Resource database The Resource database is only designed to store a single value for a particular type associated with an XID. Due to the asynchronous nature of the vblank/flip requests, we would often associate multiple frame events with a particular drawable/client. Upon freeing the resource, we would not necessarily decouple the right value, leaving a stale pointer behind. Later when the client disappeared, we would write through that stale pointer upsetting valgrind and causing memory corruption. MDK. Instead, we need to implement an extra layer for tracking multiple frames within a single Resource. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=37700 Signed-off-by: Chris Wilson Reply at: https://bugs.launchpad.net/xserver-xorg-video- intel/+bug/876762/comments/5 On 2011-10-19T19:21:14+00:00 Thilo-Alexander Ginkel wrote: The corresponding Ubuntu bug is abvailable at: https://bugs.launchpad.net/xserver-xo
[Bug 876762] Re: KDE crashes at login with desktop effects enabled
A fix is now available upstream: https://bugs.freedesktop.org/show_bug.cgi?id=42008#c7 Any chance we will see this in an updated xserver-xorg-video-intel package for Oneiric? ** Tags added: patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/876762 Title: KDE crashes at login with desktop effects enabled To manage notifications about this bug go to: https://bugs.launchpad.net/xserver-xorg-video-intel/+bug/876762/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 876762] Re: KDE crashes at login with desktop effects enabled
Same problem. The workaround works for me as well. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/876762 Title: KDE crashes at login with desktop effects enabled To manage notifications about this bug go to: https://bugs.launchpad.net/xserver-xorg-video-intel/+bug/876762/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 876762] Re: KDE crashes at login with desktop effects enabled
To #6 (though I guess that Boban's answer was probably enough) edit /etc/kde4/kdm/kdmrc look for # Restart instead of resetting the local X-server after session exit. # Use it if the server leaks memory etc. # Default is false #TerminateServer=true should be in the Core config for local displays [X-:*-Core] section. Uncomment the TerminateServer=true option. If you do not have the prefilled option commented, just add it in the section above. Hope this helps -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/876762 Title: KDE crashes at login with desktop effects enabled To manage notifications about this bug go to: https://bugs.launchpad.net/xserver-xorg-video-intel/+bug/876762/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 876762] Re: KDE crashes at login with desktop effects enabled
Thanks Thilo-Alexander Ginkel for finding out the problem and forwarding it upstream :) I can confirm that the workaround mentioned in #4 and #7 works. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/876762 Title: KDE crashes at login with desktop effects enabled To manage notifications about this bug go to: https://bugs.launchpad.net/xserver-xorg-video-intel/+bug/876762/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 876762] Re: KDE crashes at login with desktop effects enabled
This: TerminateServer=true in file /etc/kde4/kdm/kdmrc under section [X-:*-Core] I cant tell you more, because i changed my login theme and now this file isn't as default anymore. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/876762 Title: KDE crashes at login with desktop effects enabled To manage notifications about this bug go to: https://bugs.launchpad.net/xserver-xorg-video-intel/+bug/876762/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 876762] Re: KDE crashes at login with desktop effects enabled
In response to comment #4: @Sergio: Which KDM option needs to be set to effect this behavior? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/876762 Title: KDE crashes at login with desktop effects enabled To manage notifications about this bug go to: https://bugs.launchpad.net/xserver-xorg-video-intel/+bug/876762/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 876762] Re: KDE crashes at login with desktop effects enabled
I bi-sected xserver-xorg-video-intel (as available at git://git.debian.org/git/pkg-xorg/driver/xserver-xorg-video-intel, which is what the Ubuntu packages are based on). The first bad commit is: commit 2608a367acba7247e50754c3daeed09ba2e97d05 Author: Chris Wilson Date: Mon Jul 11 16:28:15 2011 +0100 dri: Prevent abuse of the Resource database The Resource database is only designed to store a single value for a particular type associated with an XID. Due to the asynchronous nature of the vblank/flip requests, we would often associate multiple frame events with a particular drawable/client. Upon freeing the resource, we would not necessarily decouple the right value, leaving a stale pointer behind. Later when the client disappeared, we would write through that stale pointer upsetting valgrind and causing memory corruption. MDK. Instead, we need to implement an extra layer for tracking multiple frames within a single Resource. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=37700 Signed-off-by: Chris Wilson ** Bug watch added: freedesktop.org Bugzilla #42008 http://bugs.freedesktop.org/show_bug.cgi?id=42008 ** Also affects: xserver-xorg-video-intel via http://bugs.freedesktop.org/show_bug.cgi?id=42008 Importance: Unknown Status: Unknown ** Bug watch added: freedesktop.org Bugzilla #37700 http://bugs.freedesktop.org/show_bug.cgi?id=37700 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/876762 Title: KDE crashes at login with desktop effects enabled To manage notifications about this bug go to: https://bugs.launchpad.net/xserver-xorg-video-intel/+bug/876762/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 876762] Re: KDE crashes at login with desktop effects enabled
As a workaround, try to edit the kdm configuration file and make it restart the server at logout. In my system this seems to fix the issue. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/876762 Title: KDE crashes at login with desktop effects enabled To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/876762/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 876762] Re: KDE crashes at login with desktop effects enabled
Reverting to commit f1697546699ded4af63dca35b51d3ca408b002d3 (= xserver- xorg-video-intel-2_2.14.0-1) at git://git.debian.org/git/pkg-xorg/driver /xserver-xorg-video-intel fixes the issue whereas it is still present in HEAD (currently e97d7c18b3ccddcc32929f1e857ecaa281f49710). I'm currently a little short on spare time, but using a git bisect it should be possible to identify the culprit. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/876762 Title: KDE crashes at login with desktop effects enabled To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/876762/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 876762] Re: KDE crashes at login with desktop effects enabled
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: xserver-xorg-video-intel (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/876762 Title: KDE crashes at login with desktop effects enabled To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/876762/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 876762] Re: KDE crashes at login with desktop effects enabled
** Tags added: kubuntu -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/876762 Title: KDE crashes at login with desktop effects enabled To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/876762/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 876762] Re: KDE crashes at login with desktop effects enabled
** Attachment added: "GDB crash report of X" https://bugs.launchpad.net/bugs/876762/+attachment/2554839/+files/X_Log.txt ** Description changed: I have a HP DV6 6121tx laptop, with Intel Core i7 sandybridge and a discrete GPU (Ati 6770m) and an Intel GPU. Whenever I login to Kubutu with desktop effects enabled, X crashes at the KDE splash screen and drops back to the login screen (kdm). Any subsequent logins work since KDE automatically disabled desktop effects after a crash. However, if I login with effects disabled and enable then _after_ logging in then everything works fine until I logout. I've also tested compiz, and it works without any problems. + All packages are of latest version. Here's some more info: $ lspci -vnn | grep VGA 00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0116] (rev 09)(prog-if 00 [VGA controller]) 01:00.0 VGA compatible controller [0300]: ATI Technologies Inc Whistler XT [AMD Radeon HD 6700M Series] [1002:6740] (prog-if 00 [VGA controller]) $ uname -r 3.0.0-12-generic - $ lsb_release -rd + $ lsb_release -rd Description:Ubuntu 11.10 Release:11.10 $ apt-cache policy xserver-xorg-video-intel xserver-xorg-video-intel: - Installed: 2:2.15.901-1ubuntu2 - Candidate: 2:2.15.901-1ubuntu2 - Version table: - *** 2:2.15.901-1ubuntu2 0 - 500 http://in.archive.ubuntu.com/ubuntu/ oneiric/main amd64 Packages - 100 /var/lib/dpkg/status + Installed: 2:2.15.901-1ubuntu2 + Candidate: 2:2.15.901-1ubuntu2 + Version table: + *** 2:2.15.901-1ubuntu2 0 + 500 http://in.archive.ubuntu.com/ubuntu/ oneiric/main amd64 Packages + 100 /var/lib/dpkg/status ProblemType: Bug DistroRelease: Ubuntu 11.10 Package: xserver-xorg-video-intel 2:2.15.901-1ubuntu2 ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4 Uname: Linux 3.0.0-12-generic x86_64 ApportVersion: 1.23-0ubuntu3 Architecture: amd64 Date: Tue Oct 18 00:25:22 2011 InstallationMedia: Kubuntu 11.10 "Oneiric Ocelot" - Beta amd64 (20111007) ProcEnviron: - LANGUAGE=en_IN:en - PATH=(custom, user) - LANG=en_IN - SHELL=/bin/zsh + LANGUAGE=en_IN:en + PATH=(custom, user) + LANG=en_IN + SHELL=/bin/zsh SourcePackage: xserver-xorg-video-intel UpgradeStatus: No upgrade log present (probably fresh install) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/876762 Title: KDE crashes at login with desktop effects enabled To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/876762/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs