Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 172009

Summary: emul-linux-x86-xlibs: 32bit GL programs crash on amd64 with Intel i965, patch available
Product: Gentoo Linux Reporter: Paolo Ornati <ornati>
Component: [OLD] LibraryAssignee: AMD64 Project <amd64>
Status: RESOLVED FIXED    
Severity: major CC: a, esqualante, radek, walch.martin, wil.reichert
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 165270    

Description Paolo Ornati 2007-03-24 07:37:11 UTC
Currently 32bit GL programs crash on AMD64 with Intel i965 graphic:

$ winecfg
Warning: could not find DOS drive for current working directory '/home/paolo/BUGS/Mesa-Fix', starting in the Windows directory.
bufmgr_fake.c:1245: bmReleaseBuffers: Assertion `intel->locked' failed.
wine: Assertion failed at address 0xffffe410 (thread 0009), starting debugger...
Unhandled exception: assertion failed in 32-bit code (0xffffe410).
...

The BUG is already fixed in mesa 6.5.2-r1:

http://bugs.gentoo.org/show_bug.cgi?id=163973
http://bugs.gentoo.org/attachment.cgi?id=108230&action=diff

I've built 6.5.2-r1 in a 32bit chroot and copied:
  /mnt/gentoo32/usr/lib/dri/i965_dri.so
    to
  /usr/lib32/dri/i965_dri.so

This fixes the problem.

It would be good to incorporate the fix in emul-linux-x86-xlibs-10.0-r1 :)

Reproducible: Always
Comment 1 Paolo Ornati 2007-03-24 07:52:40 UTC
Ooops... the brutal copy didn't work (I guess I have to copy something else):

LIBGL_DEBUG=1 winecfg
Warning: could not find DOS drive for current working directory '/home/paolo', starting in the Windows directory.
libGL error: dlopen /usr/lib32/dri/i965_dri.so failed (/usr/lib32/dri/i965_dri.so: undefined symbol: drmCloseOnce)


but I can confirm the fix works in the 32bit chroot.

Comment 2 Paolo Ornati 2007-03-24 08:02:07 UTC
(In reply to comment #1)
> Ooops... the brutal copy didn't work (I guess I have to copy something else):
> 

Ahh, it's just that newer mesa requires newer libdrm ;)
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-04-11 06:48:35 UTC
*** Bug 174105 has been marked as a duplicate of this bug. ***
Comment 4 Martin Walch 2007-06-24 17:00:57 UTC
I had the same problem here. I updated mesa and libdrm in emul-linux-x86-xlibs  and later also all other libs in that package. Both versions work fine.
Comment 5 Andrew Gaydenko 2007-07-19 21:21:31 UTC
Same here.
Can anybody describe the workaround mentioned in Comment #4 From Mr. Anderson?
Comment 6 Paolo Ornati 2007-07-20 08:30:34 UTC
(In reply to comment #5)
> Same here.
> Can anybody describe the workaround mentioned in Comment #4 From Mr. Anderson?
> 

If think he did the same thing as me... he compiled mesa 6.5.2-r1 in a 32bit chroot and copied the lib files to /usr/lib32.

The two files to copy, at least for me, are:

dri/i965_dri.so
libdrm.so.2.3.0


The precompiled portage emul package is still broken.

I'll change the priority, since this BUG causes crashes in 32bit GL apps (winecfg crash on start, Google Earth crash on exit, and so on...) and the fix is EASY!
Comment 7 Olivier Crete (RETIRED) gentoo-dev 2007-08-18 15:28:07 UTC
Fixed in 10.1