Bug 25630

Summary: Segfault in nexuiz when trying to run the tutorial.
Product: Mesa Reporter: Laurent carlier <lordheavym>
Component: Drivers/DRI/R100Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: medium    
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: desktop corruption

Description Laurent carlier 2009-12-13 22:58:56 UTC
* Mesa master from git d4d880199ead954e79cad141f7a29f7dd17fe7fc
* libdrm master from git edc77dd291594e017ca0ee96a785412107ebff74
* xf86-video-ati master from git 299d395bd3f294239dee58ab7d607d7d2c657f61
* kernel drm-radeon-testing from git 8bcb07463bdf7a4848f4b04f84faf707273cbfd5
* nexuiz 2.5.2

Running under kms with a RS880 radeon chipset (HD4200).

dmesg output when the segfault occur:
Dec 14 07:40:53 myhost kernel: radeon 0000:01:05.0: object_init failed for (1409024, 0x00060004)
Dec 14 07:40:53 myhost kernel: [drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (1409024, 4, 4096)
Dec 14 07:40:53 myhost kernel: nexuiz-sdl[2643]: segfault at 20 ip 00007f55273f7bf3 sp 00007fff60ece6e0 error 4 in r600_dri.so[7f55273a0000+29f000]

gdb backtrace:
Failed to allocate :                                                                           
   size      : 1409024 bytes                                                                   
   alignment : 1024 bytes                                                                      
   domains   : 4                                                                               

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff232b18e in radeon_teximage_map () from /usr/lib/xorg/modules/dri/r600_dri.so
(gdb) bt                                                                               
#0  0x00007ffff232b18e in radeon_teximage_map () from /usr/lib/xorg/modules/dri/r600_dri.so
#1  0x00007ffff232bd46 in radeon_store_teximage () from /usr/lib/xorg/modules/dri/r600_dri.so
#2  0x00007ffff232c704 in radeon_teximage () from /usr/lib/xorg/modules/dri/r600_dri.so
#3  0x00007ffff232cb45 in radeonTexImage2D () from /usr/lib/xorg/modules/dri/r600_dri.so
#4  0x00007ffff239caca in _mesa_TexImage2D () from /usr/lib/xorg/modules/dri/r600_dri.so
#5  0x0000000000493f50 in ?? ()
#6  0x0000000000495309 in ?? ()
#7  0x00000000004957e6 in ?? ()
#8  0x0000000000495e68 in ?? ()
Comment 1 Laurent carlier 2009-12-14 00:34:17 UTC
http://thread.gmane.org/gmane.comp.video.dri.devel/41114

This patch fix the segfault, bug some textures are *borked*
Comment 2 Laurent carlier 2009-12-14 00:50:25 UTC
Created attachment 32057 [details]
desktop corruption

Running nexuiz give some texture corruption in the game and some corruption when back to the desktop (kde running without effect & composition)
Comment 3 Laurent carlier 2009-12-19 12:57:45 UTC
Fixed with current mesa git / kms git

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.