Skip to contentSkip to conversation

New: mesa deadlocks with latest HoN game

Bug 27340 [email protected] 1 participant 11 messages Mar 27, 2010 – Mar 2, 2011

lore
Share & tools
lore
#0 lore raw

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

Summary: mesa deadlocks with latest HoN game
Product: Mesa
Version: git
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/DRI/R600
AssignedTo: [email protected]
ReportedBy: [email protected]

Heroes of Newerth just autoupdated to a new version, and mesa deadlocks after logging in to the new version.

Here is a backtrace of the graphics thread (the other 3 threads are polling in libasound):

Thread 1 (Thread 0x7f4e07a466f0 (LWP 15203)):
#0 __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:136
#1 0x0000003b3b008e79 in _L_lock_949 () from /lib/libpthread.so.0 #2 0x0000003b3b008c9b in __pthread_mutex_lock (mutex=<value optimized out>) at pthread_mutex_lock.c:61
#3 0x00007f4df9bbe4a5 in _mesa_HashLookup (table=0x22775d0, key=128) at main/hash.c:140
#4 0x00007f4df9bbe5ab in _mesa_HashFindFreeKeyBlock (table=0x22775d0, numKeys=1) at main/hash.c:450
#5 0x00007f4df9bf6385 in _mesa_GenTextures (n=1, textures=0x7fff240a2a24) at main/texobj.c:803

#6  0x00007f4dfb12d568 in ?? () from /home/edwin/hon2/vid_gl2-x86_64.so
#7  0x00007f4dfb12e6a8 in ?? () from /home/edwin/hon2/vid_gl2-x86_64.so
#8  0x00007f4dfb0e017f in ?? () from /home/edwin/hon2/vid_gl2-x86_64.so
#9  0x00007f4dfb0e24f7 in ?? () from /home/edwin/hon2/vid_gl2-x86_64.so

#10 0x00007f4e091c5e4d in ?? () from /home/edwin/hon2/libk2-x86_64.so #11 0x00007f4e091acd19 in ?? () from /home/edwin/hon2/libk2-x86_64.so

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

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
#1 lore raw

[Bug 27340] mesa deadlocks with latest HoN game

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

--- Comment #1 from Török Edwin <[email protected]> 2010-03-27 03:32:55 PST --- Looks like it is trying to lock a mutex that is already locked:
_mesa_HashFindFreeKeyBlock(

line 438:   _glthread_LOCK_MUTEX(table->Mutex);
line 450:        if (_mesa_HashLookup(table, key)) {

_mesa_HashLookup(
line 140: _glthread_LOCK_MUTEX(table->Mutex);

Signature · 14 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel
#2 lore raw

[Bug 27340] mesa deadlocks with latest HoN game

In reply to [email protected]

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

Török Edwin <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #2 from Török Edwin <[email protected]> 2010-03-27 03:35:15 PST --- Looks like this is caused by this commit:
commit 107a2ec9eef53dee038c1bcc0d956c5667e0b68f

Author: Brian Paul <[email protected]>
Date:   Tue Feb 16 08:21:38 2010 -0700
Signature · 14 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel
#3 lore raw

[Bug 27340] mesa deadlocks with latest HoN game

In reply to [email protected]

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

--- Comment #3 from Török Edwin <[email protected]> 2010-03-27 03:40:45 PST --- Created an attachment (id=34502)
--> (http://bugs.freedesktop.org/attachment.cgi?id=34502)
tentative patch

Signature · 14 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel
#4 lore raw

[Bug 27340] mesa deadlocks with latest HoN game

In reply to [email protected]

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

--- Comment #4 from Török Edwin <[email protected]> 2010-03-27 03:42:00 PST --- The patch I just attached fixes the deadlock, please apply.

Signature · 14 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel
#5 lore raw

[Bug 27340] mesa deadlocks with latest HoN game

In reply to [email protected]

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

Török Edwin <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Component|Drivers/DRI/R600 |Mesa core

--- Comment #5 from Török Edwin <[email protected]> 2010-03-27 03:42:36 PST --- Patch to src/mesa/main/hash.c:
https://bugs.freedesktop.org/attachment.cgi?id=34502

Signature · 14 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel
#6 lore raw

[Bug 27340] mesa deadlocks with latest HoN game

In reply to [email protected]

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

--- Comment #6 from Brian Paul <[email protected]> 2010-03-27 08:00:29 PST --- The patch looks good (except for "inline" should be "INLINE"). I verified the patch here by forcing the code path in question with a couple Mesa demos. I'll commit shortly.

Either the game uses a _lot_ of textures or it uses its own (very large) texture IDs at some point. Evidently, the slow path in _mesa_HashFindFreeKeyBlock() hasn't been hit before!

Please retest with latest Mesa sources from git and then close the bug. Thanks.

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

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
#7 lore raw

[Bug 27340] mesa deadlocks with latest HoN game

In reply to [email protected]

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

--- Comment #7 from Török Edwin <[email protected]> 2010-03-27 09:44:53 PST --- (In reply to comment #6)

Quoted 11 lines

The patch looks good (except for "inline" should be "INLINE"). I verified the patch here by forcing the code path in question with a couple Mesa demos. I'll commit shortly.

Either the game uses a _lot_ of textures or it uses its own (very large) texture IDs at some point. Evidently, the slow path in _mesa_HashFindFreeKeyBlock() hasn't been hit before!

Please retest with latest Mesa sources from git and then close the bug. Thanks.

Thanks.
I see you merged my commit to the 7.8 branch, but not to master (I use master).

Signature · 14 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel
#8 lore raw

[Bug 27340] mesa deadlocks with latest HoN game

In reply to [email protected]

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

--- Comment #8 from ryan <[email protected]> 2010-04-01 17:17:18 PST --- i've been working on this all day; im unfamiliar with linux and it took me awhile too google up how to patch and everything; so i could've done something wrong. but i followed the directions here >
https://wiki.ubuntu.com/XorgOnTheEdge for building your own drivers. downloaded the mesa 7.9 git karmic; applied patch, installed mesa-utils and mesa-common, rebooted; game still froze on me.

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

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
#9 lore raw

[Bug 27340] mesa deadlocks with latest HoN game

In reply to [email protected]

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

--- Comment #9 from ryan <[email protected]> 2010-04-01 17:19:29 PST --- (In reply to comment #8)

Quoted 7 lines

i've been working on this all day; im unfamiliar with linux and it took me awhile too google up how to patch and everything; so i could've done something wrong. but i followed the directions here >
https://wiki.ubuntu.com/XorgOnTheEdge for building your own drivers. downloaded the mesa 7.9 git karmic; applied patch, installed mesa-utils and mesa-common, rebooted; game still froze on me.

like i said, im a big newbie. i thought those were the only 2 debs, now looking in the directory; well, lets just say ill tell you if it works or not in 20-30 minutes. :D

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

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
#10 lore raw

[Bug 27340] mesa deadlocks with latest HoN game

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=27340

Marek Olšák <[email protected]> changed:

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

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #10 from Marek Olšák <[email protected]> 2011-03-02 06:12:49 PST --- HoN works according to a lot of feedback from users lately. The patch was pushed per Brian's comment, and the fixes from 7.8 have been merged to master. Closing.

Feel free to reopen if you still encounter any issues.

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel