Bug 49815 - nouveau segfaults in p_atomic_dec_zero
Summary: nouveau segfaults in p_atomic_dec_zero
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/nouveau (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: Nouveau Project
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-11 12:53 UTC by Alen Skondro
Modified: 2012-05-23 02:45 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Alen Skondro 2012-05-11 12:53:24 UTC
With latest mesa git (20120511) gnome starts in fallback mode only.

Last known working mesa was from yesterday.
I'm using kernel 3.4rc6 on arch linux.

=============================================================================

Core was generated by `/usr/lib/gnome-session/gnome-session-check-accelerated-helper'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f4a758b1ffa in p_atomic_dec_zero (v=0x100010001) at ../../../../src/gallium/auxiliary/util/u_atomic.h:53
53	   __asm__ __volatile__("lock; decl %0; sete %1":"+m"(*v), "=qm"(c)
(gdb) bt
#0  0x00007f4a758b1ffa in p_atomic_dec_zero (v=0x100010001) at ../../../../src/gallium/auxiliary/util/u_atomic.h:53
#1  0x00007f4a758b1f9a in pipe_reference_described (ptr=0x100010001, reference=0x0, get_desc=0x7f4a75c66e90 <debug_describe_resource>)
    at ../../../../src/gallium/auxiliary/util/u_inlines.h:88
#2  0x00007f4a758b2065 in pipe_resource_reference (ptr=0xfeeae8, tex=0x0) at ../../../../src/gallium/auxiliary/util/u_inlines.h:121
#3  0x00007f4a758b142b in nv50_set_constant_buffer (pipe=0xfee5d0, shader=3, index=0, cb=0x0) at nv50_state.c:761
#4  0x00007f4a75a97846 in st_destroy_context (st=0x1081550) at state_tracker/st_context.c:291
#5  0x00007f4a75960add in st_context_destroy (stctxi=0x1081550) at state_tracker/st_manager.c:596
#6  0x00007f4a75868a74 in dri_destroy_context (cPriv=0xfee590) at dri_context.c:174
#7  0x00007f4a75861b4b in driDestroyContext (pcp=0xfee590) at ../../../../src/mesa/drivers/dri/common/dri_util.c:301
#8  0x00007f4a791147dd in dri2_destroy_context (context=0xfee3f0) at dri2_glx.c:132
#9  0x00007f4a790cd4b2 in glXDestroyContext (dpy=0xf9a2d0, ctx=0xfee3f0) at glxcmds.c:424
Comment 1 Alen Skondro 2012-05-11 13:10:40 UTC
Forgot to add the latest commit I'm using...

23c0d469e55b3cb79ad4b2fd0d961562a26234fd
Comment 2 andrew.green.df 2012-05-15 20:54:15 UTC
Looks like I've been bitten by the same bug, or something similar. 
Everything was working fine until I pulled in the latest mesa from git 
and recompiled. Then gnome started going only into fallback mode. In 
dmesg I was getting:
gnome-session-c[3618]: segfault at 100010001 ip 00007f0419ae0570 sp 
00007fffd3204870 error 6 in nouveau_dri.so[7f0419a64000+495000]

When in fallback mode, if I ran glxinfo it would also segfault:
glxinfo[3729]: segfault at 100010001 ip 00007ffe31f49570 sp 
00007fff22a85df0 error 6 in nouveau_dri.so[7ffe31ecd000+495000]

Going back to commit b328949a37fee7b0f68ed3e068ffc4426c083042 fixed it.

I'm afraid I have no backtrace but if someone can point me to some quick 
instructions I should be able to try to get one in a few days.

Here is what lspci says my card is:
01:00.0 VGA compatible controller: NVIDIA Corporation G86M [Quadro NVS 
135M] (rev a1)

I'm using a very mixed Debian testing/unstable/experimental, kernel 
3.2.0-2, amd64, on a Dell Latitude D630 laptop.

(BTW, nouveau works moderately well on my box. I can run Gnome 3 but the 
zoom animations look like crap, maybe because the card stays in 
low-power mode. (I used to run the nvidia blob with Compiz, and I had to 
deactivate power saving to get good animations then.) After about 20-30 
hours of use I usually get some kind of memory corruption, or X locks 
up, and I have to reboot. However, the 2d acceleration rocks, much 
faster than the blob! Makes it worth it.)

Anyway, thanks to everyone for your great work! Greetings,
Andrew

El 11/05/12 08:10, bugzilla-daemon@freedesktop.org escribió:
> https://bugs.freedesktop.org/show_bug.cgi?id=49815
>
> --- Comment #1 from Alen Skondro<askondro@gmail.com>  2012-05-11 13:10:40 UTC ---
> Forgot to add the latest commit I'm using...
>
> 23c0d469e55b3cb79ad4b2fd0d961562a26234fd
>
Comment 3 Alen Skondro 2012-05-23 02:45:13 UTC
With latest git, this works for me again.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.