Bug 928285 - r600_dri.so crashes KWin when logging in
Summary: r600_dri.so crashes KWin when logging in
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kde-workspace
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Than Ngo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-27 10:13 UTC by Maxim Egorushkin
Modified: 2013-04-30 03:31 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-04-30 03:31:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
KDE Software Compilation 315089 0 None None None Never

Description Maxim Egorushkin 2013-03-27 10:13:35 UTC
Description of problem:

I use a stock Fedora 18 driver for Radeon HD 5670 (ATI Redwood). When logging in into KDE the screen display what looks like a corrupted texture, flashes and then logs in successfully. Then KDE Crash Report Assistant reports that KWin crashed in r600_dri.so.


Version-Release number of selected component (if applicable):
$ rpm -qf /usr/lib64/dri/r600_dri.so
mesa-dri-drivers-9.1-3.fc18.x86_64

How reproducible:
Always.


Steps to Reproduce:
1. Reboot
2. Log into a KDE session
3. Observe a KDE crash report of KWin
  
Actual results:
KDE crash report of KWin

Expected results:
No crashes.

Additional info:
Stack trace:

Application: KWin (kwin), signal: Bus error
Using host libthread_db library "/lib64/libthread_db.so.1".
81	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7f20534af880 (LWP 1513))]

Thread 2 (Thread 0x7f203677b700 (LWP 1527)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:165
#1  0x00007f20448dec2b in pipe_semaphore_wait (sema=0x1398e80) at ../../../../../src/gallium/auxiliary/os/os_thread.h:433
#2  radeon_drm_cs_emit_ioctl (param=0x1398ca0) at radeon_drm_winsys.c:518
#3  0x0000003997a07d15 in start_thread (arg=0x7f203677b700) at pthread_create.c:308
#4  0x00000039972f246d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114

Thread 1 (Thread 0x7f20534af880 (LWP 1513)):
[KCrash Handler]
#6  __memset_sse2 () at ../sysdeps/x86_64/memset.S:873
#7  0x00007f20448c8ff2 in memset (__len=<optimized out>, __ch=204, __dest=<optimized out>) at /usr/include/bits/string3.h:84
#8  r600_texture_create_object (screen=screen@entry=0x13990f0, base=base@entry=0x7fffc9e1b620, pitch_in_bytes_override=pitch_in_bytes_override@entry=0, buf=buf@entry=0x0, surface=surface@entry=0x7fffc9e1a920) at r600_texture.c:509
#9  0x00007f20448c92c7 in r600_texture_create (screen=0x13990f0, templ=0x7fffc9e1b620) at r600_texture.c:601
#10 0x00007f20448dba25 in dri2_drawable_process_buffers (att_count=1, atts=0x7fffc9e1b700, buffer_count=1, buffers=0x15e8170, drawable=0x15e8210) at dri2.c:254
#11 dri2_allocate_textures (drawable=0x15e8210, statts=0x7fffc9e1b700, statts_count=1) at dri2.c:404
#12 0x00007f20448da595 in dri_st_framebuffer_validate (stfbi=<optimized out>, statts=0x7fffc9e1b700, count=1, out=0x0) at dri_drawable.c:81
#13 0x00007f20448da7ce in dri_drawable_validate_att (statt=ST_ATTACHMENT_FRONT_LEFT, drawable=0x15e8210) at dri_drawable.c:206
#14 dri_set_tex_buffer2 (pDRICtx=<optimized out>, target=3553, format=8409, dPriv=<optimized out>) at dri_drawable.c:220
#15 0x00000035658cb3c3 in loadTexture (depth=24, size=..., pix=<optimized out>, this=0x1305050) at /usr/src/debug/kde-workspace-4.10.1/kwin/glxbackend.cpp:716
#16 KWin::GlxTexture::loadTexture (this=0x1305050, pix=<optimized out>, size=..., depth=24) at /usr/src/debug/kde-workspace-4.10.1/kwin/glxbackend.cpp:658
#17 0x00000035658c30d5 in KWin::SceneOpenGL::Window::bindTexture (this=0x150a470) at /usr/src/debug/kde-workspace-4.10.1/kwin/scene_opengl.cpp:822
#18 0x00000035658c9a8e in KWin::SceneOpenGL::Window::performPaint (this=this@entry=0x150a470, mask=mask@entry=1, region=..., data=...) at /usr/src/debug/kde-workspace-4.10.1/kwin/scene_opengl.cpp:931
#19 0x00000035658c249f in KWin::SceneOpenGL2::performPaintWindow (this=this@entry=0x142bbb0, w=w@entry=0x135ed30, mask=mask@entry=1, region=..., data=...) at /usr/src/debug/kde-workspace-4.10.1/kwin/scene_opengl.cpp:566
#20 0x00000035658c263d in KWin::SceneOpenGL2::finalDrawWindow (this=0x142bbb0, w=w@entry=0x135ed30, mask=mask@entry=1, region=..., data=...) at /usr/src/debug/kde-workspace-4.10.1/kwin/scene_opengl.cpp:551
#21 0x00000035658d63a5 in KWin::EffectsHandlerImpl::drawWindow (this=0x14c8e60, w=w@entry=0x135ed30, mask=mask@entry=1, region=..., data=...) at /usr/src/debug/kde-workspace-4.10.1/kwin/effects.cpp:318
#22 0x00000035658b585a in KWin::Scene::finalPaintWindow (this=<optimized out>, w=0x135ed30, mask=1, region=..., data=...) at /usr/src/debug/kde-workspace-4.10.1/kwin/scene.cpp:449
#23 0x00000035658d6627 in KWin::EffectsHandlerImpl::paintWindow (this=0x14c8e60, w=0x135ed30, mask=mask@entry=1, region=..., data=...) at /usr/src/debug/kde-workspace-4.10.1/kwin/effects.cpp:281
#24 0x00000035658b841d in KWin::Scene::paintWindow (this=<optimized out>, w=0x150a470, mask=1, region=..., quads=...) at /usr/src/debug/kde-workspace-4.10.1/kwin/scene.cpp:356
#25 0x00000035658b774f in KWin::Scene::paintSimpleScreen (this=this@entry=0x142bbb0, orig_mask=orig_mask@entry=0, region=...) at /usr/src/debug/kde-workspace-4.10.1/kwin/scene.cpp:342
#26 0x00000035658b579e in KWin::Scene::finalPaintScreen (this=0x142bbb0, mask=0, region=..., data=...) at /usr/src/debug/kde-workspace-4.10.1/kwin/scene.cpp:186
#27 0x00000035658d67f0 in KWin::EffectsHandlerImpl::paintScreen (this=0x14c8e60, mask=0, region=..., data=...) at /usr/src/debug/kde-workspace-4.10.1/kwin/effects.cpp:254
#28 0x00000035658b6b38 in KWin::Scene::paintScreen (this=0x142bbb0, mask=0x7fffc9e1c254, region=0x7fffc9e1c300) at /usr/src/debug/kde-workspace-4.10.1/kwin/scene.cpp:140
#29 0x00000035658c5f9e in KWin::SceneOpenGL::paint (this=0x142bbb0, damage=..., toplevels=...) at /usr/src/debug/kde-workspace-4.10.1/kwin/scene_opengl.cpp:308
#30 0x00000035658b0f5c in KWin::Compositor::performCompositing (this=this@entry=0x13088f0) at /usr/src/debug/kde-workspace-4.10.1/kwin/composite.cpp:610
#31 0x00000035658b1a10 in KWin::Compositor::slotCompositingOptionsInitialized (this=0x13088f0) at /usr/src/debug/kde-workspace-4.10.1/kwin/composite.cpp:275
#32 0x000000399fb8ceef in QMetaObject::activate (sender=0x13444c0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3539
#33 0x000000399fa6c5d7 in QFutureWatcherBase::event (this=<optimized out>, event=0x7f2038001770) at concurrent/qfuturewatcher.cpp:344
#34 0x00000039a4fca5cc in QApplicationPrivate::notify_helper (this=this@entry=0x1195fc0, receiver=receiver@entry=0x13444c0, e=e@entry=0x7f2038001770) at kernel/qapplication.cpp:4562
#35 0x00000039a4fcea4a in QApplication::notify (this=0x7fffc9e1d200, receiver=0x13444c0, e=0x7f2038001770) at kernel/qapplication.cpp:4423
#36 0x000000355d0473c6 in KApplication::notify (this=0x7fffc9e1d200, receiver=0x13444c0, event=0x7f2038001770) at /usr/src/debug/kdelibs-4.10.1/kdeui/kernel/kapplication.cpp:311
#37 0x000000399fb77abe in QCoreApplication::notifyInternal (this=0x7fffc9e1d200, receiver=receiver@entry=0x13444c0, event=event@entry=0x7f2038001770) at kernel/qcoreapplication.cpp:946
#38 0x000000399fb7b571 in sendEvent (event=0x7f2038001770, receiver=0x13444c0) at kernel/qcoreapplication.h:231
#39 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x113f360) at kernel/qcoreapplication.cpp:1570
#40 0x00000039a506b3bc in sendPostedEvents () at ../../src/corelib/kernel/qcoreapplication.h:236
#41 QEventDispatcherX11::processEvents (this=0x1140cc0, flags=...) at kernel/qeventdispatcher_x11.cpp:75
#42 0x000000399fb7680f in QEventLoop::processEvents (this=this@entry=0x7fffc9e1cf10, flags=...) at kernel/qeventloop.cpp:149
#43 0x000000399fb76a98 in QEventLoop::exec (this=0x7fffc9e1cf10, flags=...) at kernel/qeventloop.cpp:204
#44 0x000000399fb7b888 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#45 0x0000003565867d6a in kdemain (argc=1, argv=0x7fffc9e1d348) at /usr/src/debug/kde-workspace-4.10.1/kwin/main.cpp:537
#46 0x0000003997221a05 in __libc_start_main (main=0x400960 <main(int, char**)>, argc=1, ubp_av=0x7fffc9e1d348, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffc9e1d338) at libc-start.c:225
#47 0x0000000000400991 in _start ()

Comment 1 Matthew Woehlke 2013-04-18 19:22:19 UTC
Same here, with (lspci) "Radeon HD 6700M Series".

Also this seems to be a regression from 9.0 (or at least some other recent update, as I was not experiencing it until a kernel panic forced me to reboot the other day).

Comment 2 Matthew Woehlke 2013-04-18 19:33:16 UTC
Confirming this is a regression. I downgraded to:

llvm-3.1-13.1.fc18.x86_64.rpm
llvm-libs-3.1-13.1.fc18.x86_64.rpm
mesa-dri-drivers-9.0.3-1.fc18.x86_64.rpm
mesa-libxatracker-9.0.3-1.fc18.x86_64.rpm

...and the crash no longer occurs.

Comment 3 Rex Dieter 2013-04-26 14:39:47 UTC
Looks like it's fixed in kwin,

https://projects.kde.org/projects/kde/kde-workspace/repository/revisions/6cf057777555a5d0c834de3a0165a62916cf3b40

fix is included in kde-workspace-4.10.2-6+ builds

I'll work on issuing this
http://koji.fedoraproject.org/koji/buildinfo?buildID=414176

as an update for f18 asap

Comment 4 Rex Dieter 2013-04-26 14:40:41 UTC
Err, that commit link doesn't work, better:

http://quickgit.kde.org/?p=kde-workspace.git&a=commit&h=a021eacfbd2f2e8cb1f1caf1b66204880c1e7992

Comment 5 Fedora Update System 2013-04-26 14:44:15 UTC
kde-workspace-4.10.2-8.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/kde-workspace-4.10.2-8.fc18

Comment 6 Fedora Update System 2013-04-27 00:01:02 UTC
Package kde-workspace-4.10.2-8.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing kde-workspace-4.10.2-8.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-6746/kde-workspace-4.10.2-8.fc18
then log in and leave karma (feedback).

Comment 7 Maxim Egorushkin 2013-04-29 08:42:57 UTC
Just updated to kde-workspace-4.10.2-8.fc18. The issue does not occur any more, no more crashes on logins. Thanks a lot!

Comment 8 Fedora Update System 2013-04-30 03:31:29 UTC
kde-workspace-4.10.2-8.fc18 has been pushed to the Fedora 18 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.