Bug 858675 - NV30: Crash after logout from kde in nouveau_dri.so
Summary: NV30: Crash after logout from kde in nouveau_dri.so
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mesa
Version: 18
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Ben Skeggs
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-19 12:00 UTC by Martin Kho
Modified: 2013-11-19 09:03 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-11-19 09:03:47 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
smolt profile (2.63 KB, text/plain)
2012-09-19 12:00 UTC, Martin Kho
no flags Details
Krash Handler output of kwin crash (5.95 KB, text/plain)
2012-09-19 12:01 UTC, Martin Kho
no flags Details
Extra iInfo firefox crash (678 bytes, text/plain)
2012-09-19 12:04 UTC, Martin Kho
no flags Details
Firefix crash dump data (binairy!) (250.77 KB, application/vnd.tcpdump.pcap)
2012-09-19 12:05 UTC, Martin Kho
no flags Details
glxinfo (24.27 KB, text/plain)
2012-09-19 12:13 UTC, Martin Kho
no flags Details
glxinfo -i (264 bytes, text/plain)
2012-09-19 12:13 UTC, Martin Kho
no flags Details
firefox crash: gdb stack trace output (101.50 KB, application/octet-stream)
2012-09-21 15:57 UTC, Martin Kho
no flags Details

Description Martin Kho 2012-09-19 12:00:42 UTC
Created attachment 614329 [details]
smolt profile

Description of problem:
1. After leaving kde (logout, reboot, shutdown) KDE's Crash handler pops up telling that kwin exited with a segmentation fault (See attached crash dump). The X server exits succesful.

2, Firefox crashes in nouveau-dri.so when opening [1]. This happens in both the Gnome and KDE spin's. Absolutely not sure if this is the same problem, because I can't get info about this crash. Just a binairy .dmp file that firefox wants to send to mozilla.

[1] http://webglsamples.googlecode.com/hg/aquarium/aquarium.html

Version-Release number of selected component (if applicable):
mesa-dri-drivers-8.1-0.19.fc18.x86_64
kde 4.9.0

How reproducible:
A took a while to find a good test case but now always.

Steps to Reproduce:
1. 
a. In firefox start downloading a big file (it looks like the network activity is relevant, because streaming an audio signal in Amarok has the same effect)
b. log out (or reboot)
c. KDE's Krash Handler pops up
2.
a. set the following env variables:
export LIBGL_DEBUG=verbose
export MESA_DEBUG=1
export EGL_LOG_LEVEL=debug
b. start firfox from the command prompt.
c. open the above url and firefox pops up its crash reporting tool.

Actual results:
1. Kwin crashes, but the kde login manager kdm reloads as nothing has happend.
nothing in dmesg, /var/log/Xorg.0.log, /var/log/kdm.log
2. nouveau_dri.so is loaded, libGL can't open /home/martin/.drirc, mesa warning telling libtxc_dxtn.so is not found. No visable errors.


Expected results:
no crash pop up


Additional info:
I've reported this same problem a few months ago [1] but thought that it was solved after a rebuild for an ABI change. As said above it took me a while to find a reproducible test case. The crashes have never vanished after this first report.

https://bugzilla.redhat.com/show_bug.cgi?id=842783

Comment 1 Martin Kho 2012-09-19 12:01:29 UTC
Created attachment 614330 [details]
Krash Handler output of kwin crash

Comment 2 Martin Kho 2012-09-19 12:04:53 UTC
Created attachment 614331 [details]
Extra iInfo firefox crash

Comment 3 Martin Kho 2012-09-19 12:05:46 UTC
Created attachment 614332 [details]
Firefix crash dump data (binairy!)

Comment 4 Martin Kho 2012-09-19 12:13:22 UTC
Created attachment 614333 [details]
glxinfo

Comment 5 Martin Kho 2012-09-19 12:13:59 UTC
Created attachment 614334 [details]
glxinfo -i

Comment 6 Martin Kho 2012-09-19 12:16:02 UTC
Hi,

Also tried to get more info with drm.debug=14 log_buf_len=16M. Nothing ;-(

Comment 7 Martin Kho 2012-09-21 09:58:36 UTC
Hi,

FYI: I've tried to run reflect from the mesa-demos package to get more info on this issue and got a core dump which is reported in #859353 [1].


Hope this can help on this problem.

Btw. The testcase that I descriped under #1 seems not always to result in a crash. In a newly installed fc18 alpa tc5 - can't install rc3 aka alpha 'GOLD' - I didn't get the crash.  After installing some rpmfusion packages [2] the crashes start happening.

Martin Kho

[1] https://bugzilla.redhat.com/show_bug.cgi?id=859353
[2] gstreamer-plugins-ugly-0.10.19-4.fc18.x86_64
libmpeg2-0.5.1-9.fc17.x86_64
x264-libs-0.125-4.20120909.fc18.x86_64
twolame-libs-0.3.13-2.fc17.x86_64
a52dec-0.7.4-16.fc17.x86_64
opencore-amr-0.1.3-2.fc18.x86_64
libmad-0.15.1b-15.fc18.x86_64
lame-libs-3.99.5-1.fc18.x86_64
libcdio-0.83-5.fc18.x86_64

Comment 8 Martin Kho 2012-09-21 15:57:26 UTC
Created attachment 615492 [details]
firefox crash: gdb stack trace output

Hi,

I've followed the procedure as descriped in the fedora wiki [1]

Martin Kho

[1] https://fedoraproject.org/wiki/Debugging_guidelines_for_Mozilla_products

Comment 9 Martin Kho 2012-09-21 16:03:13 UTC
Hi,

Forgot to mention, that IMHO the Firefox and kde log out crashes are te same (see Thread 1 in the attachment of comment #8)


Martin Kho

Comment 10 Martin Kho 2012-10-23 09:00:40 UTC
Hi,

An update yesterday solved this issue. It looks like that commit "drm: Destroy the planes prior to destroying the associated CRTC" [1] for kernel 3.6.2 made the crashes go away. So, please close this report and thanks for the great work!


Martin Kho


[1] http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=commit;h=1d43ed629768ed28d3ae3131b5c64b2c5b6fc565

Comment 11 Martin Kho 2012-10-23 11:12:00 UTC
Hi,

Hum ... I've forgot to test the firefox crash. It's still crashing :-( Only the kde logout crash is gone. Sorry.

Martin Kho

Comment 12 Martin Kho 2012-10-23 19:19:06 UTC
Hi,

Arrgh, after the update from yesterday the composite type was changed from openGL to XRender :-( Changing it back to openGL, makes kde crash again at log out. So please don't close this report.

Thanks,

Martin Kho

Comment 13 Martin Kho 2012-11-09 19:54:32 UTC
Hi,

I've good and bad news. The good news is that after the kde update from version 4.9.2 to 4.9.3 I've not seen any crashes when leaving kde. The bad news is that firefox still crashes when running the aquarium webgl sample [1]. Based on these facts I'm no longer sure if it is the new NV30 who is the culprit.

Martin Kho

Btw. there was also a libdrm update, that could have made the crashes going away. 

[1] http://webglsamples.googlecode.com/hg/aquarium/aquarium.html

Comment 14 Martin Kho 2012-12-09 14:25:31 UTC
Hi,

Sometimes crashes after log out are back again. Today kde 'froze' when throwing the mouse in the upper left corner (function: "Present windows - all desktops"). In /var/log/message the following message appeared:

Dec  9 15:07:41 localhost kernel: [drm] nouveau 0000:01:00.0: cal_space: -16
Dec  9 15:07:41 localhost kernel: [drm] nouveau 0000:01:00.0: cal_space: -16
Dec  9 15:07:41 localhost kernel: [drm] nouveau 0000:01:00.0: Unexpected pageflip in channel 3.

/var/log/Xorg.0.org says:

[ 13721.618] (WW) NOUVEAU(0): flip queue failed: Device or resource busy
[ 13721.850] (WW) NOUVEAU(0): flip queue failed: Device or resource busy

Hope this helps,

Martin Kho

Comment 15 Martin Kho 2013-03-27 08:52:21 UTC
Hi,

I got rather sick of nvidia's bad behaviour, so I replaced my video card. Now I'm using AMD/ATI. Sorry that I no longer will test the nouveau driver. Please close this report.

Thanks for the great work in the past,

Martin Kho


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