Skip to contentSkip to conversation

New: KMS Nouveau - wfb crash

Bug 22253 [email protected] 1 participant 18 messages Jun 12, 2009 – Jun 24, 2009 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

http://bugs.freedesktop.org/show_bug.cgi?id=22253

Summary: KMS Nouveau - wfb crash
Product: xorg
Version: unspecified
Platform: x86-64 (AMD64)
OS/Version: Linux (All)
Status: NEW
Severity: major
Priority: medium
Component: Driver/nouveau
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]

If is runned Xorg server with EXAPixmaps, then is activated too wfb, which cause X hang, when I try (for example) run Konsole. DMESG is clear, appearing Xorg.

HW: 9600M GT

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

A message that is not in the archive (sent off-list or not yet received): bug-22253-8800-V0hAGp6uBxMKqLRl/[email protected]/

#3 lore raw

[Bug 22253] KMS Nouveau - wfb crash

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=22253

--- Comment #2 from okias <[email protected]> 2009-06-23 14:05:45 PST --- Created an attachment (id=27058)
--> (http://bugs.freedesktop.org/attachment.cgi?id=27058)
Xorg.log from lastest Xorg with debug

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#4 lore raw

[Bug 22253] KMS Nouveau - wfb crash

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=22253

--- Comment #3 from Maarten Maathuis <[email protected]> 2009-06-23 18:44:47 PST --- gdb is your friend, because this log isn't saying much.

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#5 lore raw

[Bug 22253] KMS Nouveau - wfb crash

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=22253

--- Comment #4 from okias <[email protected]> 2009-06-24 04:01:37 PST --- Question is how, x.org wiki didn't help, cause everytime when I try assign gdb
to X process, Xorg stop, until gdb ends... nothing worked for me. #nouveau,
okias

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#6 lore raw

[Bug 22253] KMS Nouveau - wfb crash

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=22253

--- Comment #5 from Maarten Maathuis <[email protected]> 2009-06-24 04:25:51 PST --- After attaching you need to "continue", this can only be done if you are
running gdb over ssh.

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#7 lore raw

[Bug 22253] KMS Nouveau - wfb crash

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=22253

--- Comment #6 from okias <[email protected]> 2009-06-24 05:00:14 PST --- That's already this case... even with ssh it stop work, until I quit gdb :-(

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#8 lore raw

[Bug 22253] KMS Nouveau - wfb crash

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=22253

--- Comment #7 from Maarten Maathuis <[email protected]> 2009-06-24 05:12:29 PST --- So if you break it again (ctrl-c), and backtrace, where is it stuck?

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#9 lore raw

[Bug 22253] KMS Nouveau - wfb crash

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=22253

--- Comment #8 from okias <[email protected]> 2009-06-24 05:23:47 PST ---
1) I start X server, log in.
2) do gdb /usr/bin/X [pid]
3) server freeze
4) do in gdb: quit and 'y'
5) server is back unfroozen

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#11 lore raw

[Bug 22253] KMS Nouveau - wfb crash

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=22253

--- Comment #10 from Ben Skeggs <[email protected]> 2009-06-24 06:13:14 PST ---

Quoted 11 lines · On Wed, 2009-06-24 at 05:23 -0700, bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@publi…

http://bugs.freedesktop.org/show_bug.cgi?id=22253

--- Comment #8 from okias <[email protected]> 2009-06-24 05:23:47 PST ---
1) I start X server, log in.
2) do gdb /usr/bin/X [pid]
3) server freeze
4) do in gdb: quit and 'y'

4.5) 'c' or 'continue' in gdb..

Quoted 3 lines

5) server is back unfroozen

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#12 lore raw

[Bug 22253] KMS Nouveau - wfb crash

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=22253

--- Comment #11 from okias <[email protected]> 2009-06-24 07:37:13 PST --- Thanks a lot! :-)

Here is output:

(gdb) continue
Continuing.

Program received signal SIGSEGV, Segmentation fault. nouveau_wfb_setup_wrap (pRead=0x7f1a7ca535d8, pWrite=0x7f1a7ca535d0, pDraw=<value optimized out>) at nouveau_wfb.c:153
153 nouveau_wfb.c: No such file or directory.
in nouveau_wfb.c
(gdb) quit

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#14 lore raw

[Bug 22253] KMS Nouveau - wfb crash

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=22253

--- Comment #13 from Maarten Maathuis <[email protected]> 2009-06-24 07:41:59 PST --- nouveau_wfb_finish_wrap is broken

It ignores index:

struct wfb_pixmap *wfb = &wfb_pixmap[0];

Later it loops over all 6, but still uses 0.

Eventually you pollute all 6 of your wfb entries and boom.

I'll let Ben fix it :-)

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#15 lore raw

[Bug 22253] KMS Nouveau - wfb crash

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=22253

--- Comment #14 from okias <[email protected]> 2009-06-24 07:46:20 PST --- Here is complete bt :-)

(gdb) continue
Continuing.

Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7f96211626f0 (LWP 7427)] nouveau_wfb_setup_wrap (pRead=0x7f961bc715d8, pWrite=0x7f961bc715d0,
pDraw=<value optimized out>) at nouveau_wfb.c:153
153 nouveau_wfb.c: No such file or directory.
in nouveau_wfb.c
(gdb) continue
Continuing.

Program received signal SIGABRT, Aborted. 0x00007f961e5f1285 in raise () from /lib/libc.so.6 (gdb) bt

#0  0x00007f961e5f1285 in raise () from /lib/libc.so.6
#1  0x00007f961e5f2642 in abort () from /lib/libc.so.6
#2  0x000000000046540f in ddxGiveUp () at xf86Init.c:1396
#3  0x00000000004654c9 in AbortDDX () at xf86Init.c:1441
#4  0x0000000000455fb3 in AbortServer () at log.c:404
#5  0x000000000045658c in FatalError (
    f=0x55a608 "Caught signal %d (%s). Server aborting\n") at log.c:529

#6 0x000000000045998b in OsSigHandler (signo=11, sip=0x7f961d4fa1b0,
unused=<value optimized out>) at osinit.c:152
#7 <signal handler called>
#8 nouveau_wfb_setup_wrap (pRead=0x7f961bc715d8, pWrite=0x7f961bc715d0,
pDraw=<value optimized out>) at nouveau_wfb.c:153
#9 0x00007f961ba63131 in wfbFill (pDrawable=0x1ce20d0, pGC=0x1ce1f70, x=26,

    y=26, width=192, height=17) at fbfill.c:116
#10 0x00007f961ba63497 in wfbPolyFillRect (pDrawable=0x1ce20d0, pGC=0x1ce1f70,
    nrect=<value optimized out>, prect=0x1d0c954) at fbfillrect.c:77
#11 0x00007f961b625040 in ExaCheckPolyFillRect (pDrawable=0x1ce20d0,
    pGC=0x1ce1f70, nrect=1, prect=0x1d0c954) at exa_unaccel.c:249
#12 0x00007f961b61d74d in exaPolyFillRect (pDrawable=0x1ce20d0, pGC=0x1ce1f70,
    nrect=1, prect=0x1d0c954) at exa_accel.c:816
#13 0x00000000004b8604 in damagePolyFillRect (pDrawable=0x1ce20d0,
---Type <return> to continue, or q <return> to quit---
    pGC=0x1ce1f70, nRects=1, pRects=0x1d0c954) at damage.c:1404
#14 0x0000000000444330 in ProcPolyFillRectangle (client=0x1c4f830)
    at dispatch.c:1925

#15 0x00000000004462c4 in Dispatch () at dispatch.c:426 #16 0x0000000000425ed2 in main (argc=10, argv=0x7fff970d9f98,
envp=<value optimized out>) at main.c:283
(gdb) quit
The program is running. Quit anyway (and detach it)? (y or n) y Detaching from program: /usr/bin/X, process 7427

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#16 lore raw

[Bug 22253] KMS Nouveau - wfb crash

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=22253

--- Comment #15 from okias <[email protected]> 2009-06-24 13:10:00 PST --- Thanks for help! I posted my first nouveau patch/bugfix to mailing list ;-)

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#17 lore raw

[Bug 22253] KMS Nouveau - wfb crash

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=22253

--- Comment #16 from Ben Skeggs <[email protected]> 2009-06-24 14:08:42 PST --- Created an attachment (id=27095)
--> (http://bugs.freedesktop.org/attachment.cgi?id=27095)
fix stupid thinko + extra safety

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#18 lore raw

[Bug 22253] KMS Nouveau - wfb crash

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=22253

okias <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #17 from okias <[email protected]> 2009-06-24 14:17:37 PST --- fixed. thanks :-)

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.