compiz crashed with SIGSEGV in nux::WindowThread::ComputeQueuedLayout()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Nux |
Fix Released
|
High
|
Erkin Bahceci | ||
Trusty |
Fix Committed
|
High
|
Erkin Bahceci | ||
nux (Ubuntu) |
Fix Released
|
High
|
Erkin Bahceci | ||
Trusty |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
Unity crashes when unlocking the session
[Test case 1]
1. Lock the session
2. Unlock the session
3. No crash should happen
[Test case 2]
1. Use unity in multi-monitor setup
2. Lock the session
3. Detach one of the monitors
4. Make sure the lockscreen updates (sometimes it's needed to switch to tty1 and back)
5. No crash should happen
[Regression potential]
None
Hi, this is basically the same bug as https:/
Crashes are being experienced in multiple machines, while unlocking the screen. The stacktraces vary, but they always fail in the same function and same line.
First stacktrace:
#0 0x0000000000000410 in ?? ()
#1 0x00007fd4bf4eb75d in nux::WindowThre
#2 0x00007fd4bf4ecb28 in nux::WindowThre
#3 0x00007fd4c0c20389 in unity::
#4 0x00007fd4c0c20748 in unity::
() from /usr/lib/
#5 0x00007fd4d4f2e272 in GLScreen:
from /usr/lib/
#6 0x00007fd4d4f2eed4 in PrivateGLScreen
from /usr/lib/
#7 0x00007fd4d556944f in CompositeScreen
from /usr/lib/
#8 0x00007fd4d556caf2 in CompositeScreen
#9 0x00007fd4e12c053d in CompTimer:
#10 0x00007fd4e12c05ef in CompTimeoutSour
#11 0x00007fd4e12bfb4d in CompTimeoutSour
#12 0x00007fd4df7ac35f in Glib::Source:
#13 0x00007fd4df29ece5 in g_main_
#14 0x00007fd4df29f048 in ?? () from /lib/x86_
#15 0x00007fd4df29f30a in g_main_loop_run () from /lib/x86_
#16 0x00007fd4e127b0eb in compiz:
#17 0x0000000000401971 in main ()
Second stacktrace (different machine):
#0 0x00007f0058407ed0 in nux_area_
#1 0x00007f0056cb175d in nux::WindowThre
#2 0x00007f0056cb2b28 in nux::WindowThre
#3 0x00007f00583e6389 in unity::
#4 0x00007f00583e6748 in unity::
#5 0x00007f00705e2272 in GLScreen:
from /usr/lib/
#6 0x00007f00705e2ed4 in PrivateGLScreen
from /usr/lib/
#7 0x00007f0070c1d44f in CompositeScreen
from /usr/lib/
#8 0x00007f0070c20af2 in CompositeScreen
#9 0x00007f007879b53d in CompTimer:
#10 0x00007f007879b5ef in CompTimeoutSour
#11 0x00007f007879ab4d in CompTimeoutSour
#12 0x00007f0076c8735f in Glib::Source:
#13 0x00007f0076779ce5 in g_main_
#14 0x00007f007677a048 in ?? () from /lib/x86_
#15 0x00007f007677a30a in g_main_loop_run () from /lib/x86_
#16 0x00007f00787560eb in compiz:
#17 0x0000000000401971 in main ()
I have more, but I don't know how useful it is to add them all.
All stacktraces have this as #1:
#1 0x00007fd4bf4eb75d in nux::WindowThre
This is the affected code:
void WindowThread:
{
StartLayoutC
std::list<Area *>::iterator it;
for (it = _queued_
{
Area *area = *it;
if (area->
The last line is 318.
I expect there is some item in the _queued_layout_list that is getting corrupted.
Related branches
- Brandon Schaefer (community): Approve
- PS Jenkins bot (community): Approve (continuous-integration)
-
Diff: 58 lines (+9/-17)3 files modifiedNux/Area.cpp (+9/-0)
Nux/Layout.cpp (+0/-6)
Nux/View.cpp (+0/-11)
- Eleni Maria Stea (community): Approve
-
Diff: 58 lines (+9/-17)3 files modifiedNux/Area.cpp (+9/-0)
Nux/Layout.cpp (+0/-6)
Nux/View.cpp (+0/-11)
Changed in unity: | |
status: | New → Confirmed |
Changed in nux: | |
status: | New → In Progress |
importance: | Undecided → High |
milestone: | none → 4.0.7 |
assignee: | nobody → Marco Trevisan (Treviño) (3v1n0) |
Changed in unity: | |
status: | Confirmed → Won't Fix |
Changed in unity (Ubuntu): | |
status: | Confirmed → Won't Fix |
no longer affects: | unity |
no longer affects: | unity (Ubuntu) |
Changed in nux (Ubuntu): | |
status: | Confirmed → In Progress |
importance: | Undecided → High |
Changed in nux: | |
assignee: | Marco Trevisan (Treviño) (3v1n0) → Erkin Bahceci (cornelius1) |
Changed in nux (Ubuntu): | |
assignee: | nobody → Erkin Bahceci (cornelius1) |
description: | updated |
Changed in nux (Ubuntu Trusty): | |
status: | New → Confirmed |
Changed in nux: | |
status: | In Progress → Fix Committed |
description: | updated |
tags: |
added: verification-done removed: verification-needed |
Changed in nux (Ubuntu): | |
status: | In Progress → Fix Released |
Changed in nux: | |
status: | Fix Committed → Fix Released |
This keeps happening over and over. Looking at the resolution of the other bug, I expect the code that needs to be fixed is not here, but in the handling of some element in this queue. I suspect some element is getting deleted and the memory reused without it being removed from the queue.
Here's the latest stacktrace: ad::ComputeQueu edLayout (this=this@ entry=0x2319f40 ) at ./WindowThread. cpp:318 ad::RenderInter faceFromForeign Cmd (this=0x2319f40, clip=...) at ./WindowThread. cpp:1627 UnityScreen: :paintDisplay( ) () from /usr/lib/ compiz/ libunityshell. so UnityScreen: :glPaintOutput( GLScreenPaintAt trib const&, GLMatrix const&, CompRegion const&, CompOutput*, unsigned int) () from /usr/lib/ compiz/ libunityshell. so :glPaintOutput( GLScreenPaintAt trib const&, GLMatrix const&, CompRegion const&, CompOutput*, unsigned int) () compiz/ libopengl. so ::paintOutputs( std::list< CompOutput* , std::allocator< CompOutput* > >&, unsigned int, CompRegion const&) () compiz/ libopengl. so ::paint( std::list< CompOutput* , std::allocator< CompOutput* > >&, unsigned int) () compiz/ libcomposite. so ::handlePaintTi meout() () from /usr/lib/ compiz/ libcomposite. so :triggerCallbac k() () from /usr/lib/ libcompiz_ core.so. ABI-20140123 ce::callback( ) () from /usr/lib/ libcompiz_ core.so. ABI-20140123 ce::dispatch( sigc::slot_ base*) () from /usr/lib/ libcompiz_ core.so. ABI-20140123 :dispatch_ vfunc(_ GSource* , int (*)(void*), void*) () from /usr/lib/ x86_64- linux-gnu/ libglibmm- 2.4.so. 1 context_ dispatch () from /lib/x86_ 64-linux- gnu/libglib- 2.0.so. 0 64-linux- gnu/libglib- 2.0.so. 0 64-linux- gnu/libglib- 2.0.so. 0 :private_ screen: :EventManager: :startEventLoop (_XDisplay* ) () from /usr/lib/ libcompiz_ core.so. ABI-20140123
#0 0x0000000000000000 in ?? ()
#1 0x00007fdd0a32c75d in nux::WindowThre
#2 0x00007fdd0a32db28 in nux::WindowThre
#3 0x00007fdd0ba61389 in unity::
#4 0x00007fdd0ba61748 in unity::
#5 0x00007fdd1b3da272 in GLScreen:
from /usr/lib/
#6 0x00007fdd1b3daed4 in PrivateGLScreen
from /usr/lib/
#7 0x00007fdd203e144f in CompositeScreen
from /usr/lib/
#8 0x00007fdd203e4af2 in CompositeScreen
#9 0x00007fdd2cc6b53d in CompTimer:
#10 0x00007fdd2cc6b5ef in CompTimeoutSour
#11 0x00007fdd2cc6ab4d in CompTimeoutSour
#12 0x00007fdd2b15735f in Glib::Source:
#13 0x00007fdd2ac49ce5 in g_main_
#14 0x00007fdd2ac4a048 in ?? () from /lib/x86_
#15 0x00007fdd2ac4a30a in g_main_loop_run () from /lib/x86_
#16 0x00007fdd2cc260eb in compiz:
#17 0x0000000000401971 in main ()