Bug 73136

Summary: [BISECTED] commit "mesa: Dynamically allocate the storage for program local parameters." crashes Awesomenauts
Product: Mesa Reporter: Alexandre Demers <alexandre.f.demers>
Component: Mesa coreAssignee: Kenneth Graunke <kenneth>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: anton.sudak, eric
Version: git   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Alexandre Demers 2013-12-30 07:22:57 UTC
Awesomenauts has been crashing on launch since a couple of weeks. I took time to bisect and I found out tonight where it was coming from.

First bad commit is e5885c119de1e508099cc1111e1c9f8ff00fab88

mesa: Dynamically allocate the storage for program local parameters.
Author
Eric Anholt<eric@anholt.net>
Author date
9/20/13 1:13 PM
Parent
mesa: Remove PROGRAM_ENV_PARAM enum.


    mesa: Dynamically allocate the storage for program local parameters.
    
    The array was 64kb per struct gl_program, plus we statically stored a copy
    of one on disk for _mesa_DummyProgram.  Given that most struct gl_programs
    we generate are for GLSL shaders that don't have local parameters, this
    was a waste.
    
    Since you can store and fetch parameters beyond what the program actually
    uses, we do have to do a late allocation if necessary at
    GetProgramLocalParameter time.
    
    Reduces peak memory usage in the dota2 trace I made by 76MB (4.5%)
    
    Reviewed-by: Brian Paul <brianp@vmware.com>
    Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>



Tested using latest code for drm and ddx from git on ArchLinux 64bit on an HD6950
Comment 1 Kenneth Graunke 2014-01-05 20:20:40 UTC
*** Bug 73298 has been marked as a duplicate of this bug. ***
Comment 2 Eric Anholt 2014-01-05 22:35:45 UTC
Huh, wonder what happened.  Got a backtrace?

I'm at LCA currently and won't be working on Mesa bugs for a few days, at least.
Comment 3 Kenneth Graunke 2014-01-06 01:10:54 UTC
Eric,

There's one in the bug I marked as a duplicate.
Comment 4 Alexandre Demers 2014-01-06 03:15:27 UTC
(In reply to comment #2)
> Huh, wonder what happened.  Got a backtrace?
> 
> I'm at LCA currently and won't be working on Mesa bugs for a few days, at
> least.

With R600_LLVM=1, I got the following backtrace (which doesn't seem to be the same as in bug 73298):

Game update: AppID 204300 "Awesomenauts", ProcID 5451, IP 0.0.0.0:0
ERROR: ld.so: object '/home/dema1701/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded: ignored.
CGameStreamThread: Added instance ID 5451 for appid 204300
CGameStreamThread: Set render instance ID 5451 for appid 204300
ERROR: ld.so: object '/home/dema1701/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded: ignored.
CGameStreamThread: Added instance ID 5452 for appid 204300
ERROR: ld.so: object '/home/dema1701/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded: ignored.
CGameStreamThread: Added instance ID 5453 for appid 204300
*** Error in `./Awesomenauts.bin.x86': free(): invalid pointer: 0x0dcb2f9c ***
======= Backtrace: =========
/usr/lib32/libc.so.6(+0x6e233)[0xf6cb8233]
/usr/lib32/libc.so.6(+0x7439a)[0xf6cbe39a]
/usr/lib32/libc.so.6(+0x74fdc)[0xf6cbefdc]
/usr/lib32/libstdc++.so.6(_ZdlPvRKSt9nothrow_t+0x1b)[0xf6ea29db]
/usr/lib32/libLLVM-3.3.so(+0x916e27)[0xeb0b5e27]
/usr/lib32/libLLVM-3.3.so(+0x917432)[0xeb0b6432]
/usr/lib32/libLLVM-3.3.so(_ZN4llvm19MachineFunctionPass13runOnFunctionERNS_8FunctionE+0x7e)[0xeb06a96e]
/usr/lib32/libLLVM-3.3.so(_ZN4llvm13FPPassManager13runOnFunctionERNS_8FunctionE+0x204)[0xeabecd34]
/usr/lib32/libLLVM-3.3.so(_ZN4llvm13FPPassManager11runOnModuleERNS_6ModuleE+0x38)[0xeabecde8]
/usr/lib32/libLLVM-3.3.so(_ZN4llvm13MPPassManager11runOnModuleERNS_6ModuleE+0x267)[0xeabed067]
/usr/lib32/libLLVM-3.3.so(_ZN4llvm15PassManagerImpl3runERNS_6ModuleE+0xcb)[0xeabef2ab]
/usr/lib32/libLLVM-3.3.so(_ZN4llvm11PassManager3runERNS_6ModuleE+0x26)[0xeabef336]
/usr/lib32/libLLVM-3.3.so(+0xa1a7b7)[0xeb1b97b7]
/usr/lib32/libLLVM-3.3.so(LLVMTargetMachineEmitToMemoryBuffer+0x148)[0xeb1b9b08]
/usr/lib/i386-linux-gnu/dri/r600_dri.so(+0x511962)[0xec3e0962]
/usr/lib/i386-linux-gnu/dri/r600_dri.so(+0x5089a1)[0xec3d79a1]
/usr/lib/i386-linux-gnu/dri/r600_dri.so(+0x47bf62)[0xec34af62]
/usr/lib/i386-linux-gnu/dri/r600_dri.so(+0x4798b7)[0xec3488b7]
/usr/lib/i386-linux-gnu/dri/r600_dri.so(+0x4a009c)[0xec36f09c]
/usr/lib/i386-linux-gnu/dri/r600_dri.so(+0x4a028a)[0xec36f28a]
/usr/lib/i386-linux-gnu/dri/r600_dri.so(+0x4a02c5)[0xec36f2c5]
/usr/lib/i386-linux-gnu/dri/r600_dri.so(+0x341f62)[0xec210f62]
/usr/lib/i386-linux-gnu/dri/r600_dri.so(+0x341161)[0xec210161]
/usr/lib/i386-linux-gnu/dri/r600_dri.so(+0x34124a)[0xec21024a]
/usr/lib/i386-linux-gnu/dri/r600_dri.so(+0x33f808)[0xec20e808]
/usr/lib/i386-linux-gnu/dri/r600_dri.so(+0x515eeb)[0xec3e4eeb]
/usr/lib/i386-linux-gnu/dri/r600_dri.so(+0x463d8)[0xebf153d8]
/usr/lib/i386-linux-gnu/dri/r600_dri.so(+0x46497)[0xebf15497]
/usr/lib/i386-linux-gnu/dri/r600_dri.so(+0x464c7)[0xebf154c7]
/usr/lib32/libGL.so.1(+0x4fbd4)[0xf7f6fbd4]
/usr/lib32/libGL.so.1(+0x14de4)[0xf7f34de4]
/usr/lib32/libGL.so.1(glXCreateContext+0x168)[0xf7f3520b]
/home/dema1701/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so(glXCreateContext+0x3f)[0xf7fc9d6d]
/usr/lib32/libSDL-1.2.so.0(+0x3d29b)[0xf722129b]
/usr/lib32/libSDL-1.2.so.0(+0x433d7)[0xf72273d7]
/usr/lib32/libSDL-1.2.so.0(+0x43a10)[0xf7227a10]
/usr/lib32/libSDL-1.2.so.0(SDL_SetVideoMode+0x272)[0xf7213a42]
./Awesomenauts.bin.x86(_ZN24SDLWindowAndEventManager12createWindowEv+0x615)[0x8662ec5]
./Awesomenauts.bin.x86(_ZN24SDLWindowAndEventManager3runEv+0x28)[0x8663e98]
./Awesomenauts.bin.x86(main+0x69)[0x8871619]
/usr/lib32/libc.so.6(__libc_start_main+0xf3)[0xf6c639a3]
./Awesomenauts.bin.x86[0x836aec1]
======= Memory map: ========
08048000-08e31000 r-xp 00000000 08:14 3675928                            /opt/Steam/SteamApps/common/Awesomenauts/Awesomenauts.bin.x86
08e31000-08e36000 rw-p 00de8000 08:14 3675928                            /opt/Steam/SteamApps/common/Awesomenauts/Awesomenauts.bin.x86
08e36000-0ddbf000 rw-p 00000000 00:00 0                                  [heap]
e9f61000-e9f62000 rw-p 00000000 00:00 0 
e9f62000-e9f63000 rw-s 11e59a000 00:05 1270                              /dev/dri/card0
e9f63000-e9f78000 rw-s 11e585000 00:05 1270                              /dev/dri/card0
e9f78000-e9f79000 rw-s 11e563000 00:05 1270                              /dev/dri/card0
e9f79000-e9f7a000 rw-s 11e562000 00:05 1270                              /dev/dri/card0
e9f7a000-e9f7b000 rw-s 11e54d000 00:05 1270                              /dev/dri/card0
e9f7b000-e9f7c000 rw-s 11e54c000 00:05 1270                              /dev/dri/card0
e9f7c000-e9f7d000 rw-s 11e54b000 00:05 1270                              /dev/dri/card0
e9f7d000-e9f7e000 rw-s 11e54a000 00:05 1270                              /dev/dri/card0
e9f7e000-e9f8e000 rw-s 11e538000 00:05 1270                              /dev/dri/card0
e9f8e000-e9f9e000 rw-s 11e522000 00:05 1270                              /dev/dri/card0
e9f9e000-e9f9f000 ---p 00000000 00:00 0 
e9f9f000-ea79f000 rw-p 00000000 00:00 0                                  [stack:5455]
ea79f000-ebdc6000 r-xp 00000000 08:12 11418431                           /usr/lib32/libLLVM-3.3.so
ebdc6000-ebe81000 r--p 01627000 08:12 11418431                           /usr/lib32/libLLVM-3.3.so
ebe81000-ebe8b000 rw-p 016e2000 08:12 11418431                           /usr/lib32/libLLVM-3.3.so
ebe8b000-ebe96000 rw-p 00000000 00:00 0 
ebe96000-ebea5000 r-xp 00000000 08:12 11404824                           /usr/lib32/libdrm_radeon.so.1.0.1
ebea5000-ebea6000 rw-p 0000e000 08:12 11404824                           /usr/lib32/libdrm_radeon.so.1.0.1
ebea6000-ebecc000 r-xp 00000000 08:12 11415990                           /usr/lib32/libexpat.so.1.6.0
ebecc000-ebece000 r--p 00025000 08:12 11415990                           /usr/lib32/libexpat.so.1.6.0
ebece000-ebecf000 rw-p 00027000 08:12 11415990                           /usr/lib32/libexpat.so.1.6.0
ebecf000-ec624000 r-xp 00000000 08:12 1315073                            /usr/lib32/dri/r600_dri.so
ec624000-ec6c0000 rw-p 00754000 08:12 1315073                            /usr/lib32/dri/r600_dri.so
ec6c0000-ec89e000 rw-p 00000000 00:00 0 
ec89e000-ec8f5000 rw-p 00000000 00:00 0 
ec8f5000-ec8f6000 rw-s 11e549000 00:05 1270                              /dev/dri/card0
ec8f6000-ec8f7000 rw-s 11e548000 00:05 1270                              /dev/dri/card0
ec8f7000-ec8f8000 rw-s 11e537000 00:05 1270                              /dev/dri/card0
ec8f8000-ec8f9000 rw-s 11e536000 00:05 1270                              /dev/dri/card0
ec8f9000-ec8fa000 rw-s 11e535000 00:05 1270                              /dev/dri/card0
ec8fa000-ec8fb000 rw-s 11e534000 00:05 1270                              /dev/dri/card0
ec8fb000-ec8fc000 rw-s 11e533000 00:05 1270                              /dev/dri/card0
ec8fc000-ec8fd000 rw-s 11e532000 00:05 1270                              /dev/dri/card0
ec8fd000-ec901000 r-xp 00000000 08:12 11418655                           /usr/lib32/libtxc_dxtn.so
ec901000-ec902000 r--p 00003000 08:12 11418655                           /usr/lib32/libtxc_dxtn.so
ec902000-ec903000 rw-p 00004000 08:12 11418655                           /usr/lib32/libtxc_dxtn.so
ec903000-ec919000 r-xp 00000000 08:12 11417990                           /usr/lib32/libelf-0.157.so
ec919000-ec91a000 r--p 00015000 08:12 11417990                           /usr/lib32/libelf-0.157.so
ec91a000-ec91b000 rw-p 00016000 08:12 11417990                           /usr/lib32/libelf-0.157.so
ec91b000-ec921000 r-xp 00000000 08:12 11412557                           /usr/lib32/libffi.so.6.0.1
ec921000-ec922000 r--p 00005000 08:12 11412557                           /usr/lib32/libffi.so.6.0.1
ec922000-ec923000 rw-p 00006000 08:12 11412557                           /usr/lib32/libffi.so.6.0.1
ec923000-ec9a4000 rw-p 00000000 00:00 0 
ec9a4000-ec9ad000 r-xp 00000000 08:12 11416208                           /usr/lib32/libXrender.so.1.3.0
ec9ad000-ec9ae000 r--p 00008000 08:12 11416208                           /usr/lib32/libXrender.so.1.3.0
ec9ae000-ec9af000 rw-p 00009000 08:12 11416208                           /usr/lib32/libXrender.so.1.3.0
ec9af000-ec9b8000 r-xp 00000000 08:12 11418395                           /usr/lib32/libXcursor.so.1.0.2
ec9b8000-ec9b9000 r--p 00009000 08:12 11418395                           /usr/lib32/libXcursor.so.1.0.2
ec9b9000-ec9ba000 rw-p 0000a000 08:12 11418395                           /usr/lib32/libXcursor.so.1.0.2
ec9ba000-ecaec000 r--p 001c4000 08:12 10783029                           /usr/lib/locale/locale-archive
ecaec000-eccec000 r--p 00000000 08:12 10783029                           /usr/lib/locale/locale-archive
eccec000-ee131000 rw-p 00000000 00:00 0 
ee131000-ee1b2000 rw-s 00000000 00:12 146176                             /dev/shm/dema1701-Shm_bc805a5
ee1b2000-ee2b3000 rw-s 00000000 00:12 146175                             /dev/shm/dema1701-Shm_618d37c7
ee2b3000-ef2b4000 rw-s 00000000 00:12 146174                             /dev/shm/dema1701-Shm_6b33b238
ef2b4000-ef358000 rw-p 00000000 00:00 0 
ef358000-ef459000 rw-s 00000000 00:12 146173                             /dev/shm/dema1701-Shm_bba39986
ef459000-ef4da000 rw-s 00000000 00:12 146172                             /dev/shm/dema1701-Shm_97a1867f
ef4da000-ef4ea000 rw-s 00000000 00:12 102463                             /dev/shm/dema1701-ValveIPCSharedObjects5
ef4ea000-f6ad0000 rw-p 00000000 00:00 0 
f6ad0000-f6ad5000 r-xp 00000000 08:12 11415472                           /usr/lib32/libXdmcp.so.6.0.0
f6ad5000-f6ad6000 r--p 00004000 08:12 11415472                           /usr/lib32/libXdmcp.so.6.0.0
f6ad6000-f6ad7000 rw-p 00005000 08:12 11415472                           /usr/lib32/libXdmcp.so.6.0.0
f6ad7000-f6ad8000 rw-p 00000000 00:00 0 
f6ad8000-f6ada000 r-xp 00000000 08:12 11415821                           /usr/lib32/libXau.so.6.0.0
f6ada000-f6adb000 r--p 00001000 08:12 11415821                           /usr/lib32/libXau.so.6.0.0
f6adb000-f6adc000 rw-p 00002000 08:12 11415821                           /usr/lib32/libXau.so.6.0.0
f6adc000-f6aeb000 r-xp 00000000 08:12 11417892                           /usr/lib32/libXi.so.6.1.0
f6aeb000-f6aec000 r--p 0000e000 08:12 11417892                           /usr/lib32/libXi.so.6.1.0
f6aec000-f6aed000 rw-p 0000f000 08:12 11417892                           /usr/lib32/libXi.so.6.1.0
f6aed000-f6b24000 r-xp 00000000 08:12 11412503                           /usr/lib32/libpng16.so.16.7.0
f6b24000-f6b25000 r--p 00036000 08:12 11412503                           /usr/lib32/libpng16.so.16.7.0
f6b25000-f6b26000 rw-p 00037000 08:12 11412503                           /usr/lib32/libpng16.so.16.7.0
f6b26000-f6b35000 r-xp 00000000 08:12 11415499                           /usr/lib32/libbz2.so.1.0.6
f6b35000-f6b36000 rw-p 0000f000 08:12 11415499                           /usr/lib32/libbz2.so.1.0.6
f6b36000-f6b37000 rw-p 00000000 00:00 0 
f6b37000-f6b4c000 r-xp 00000000 08:12 11418308                           /usr/lib32/libz.so.1.2.8
f6b4c000-f6b4d000 r--p 00014000 08:12 11418308                           /usr/lib32/libz.so.1.2.8
f6b4d000-f6b4e000 rw-p 00015000 08:12 11418308                           /usr/lib32/libz.so.1.2.8
f6b4e000-f6b5a000 r-xp 00000000 08:12 11404823                           /usr/lib32/libdrm.so.2.4.0
f6b5a000-f6b5b000 rw-p 0000c000 08:12 11404823                           /usr/lib32/libdrm.so.2.4.0
f6b5b000-f6b6c000 r-xp 00000000 08:12 11412418                           /usr/lib32/libudev.so.1.4.0
f6b6c000-f6b6d000 r--p 00010000 08:12 11412418                           /usr/lib32/libudev.so.1.4.0
f6b6d000-f6b6e000 rw-p 00011000 08:12 11412418                           /usr/lib32/libudev.so.1.4.0
f6b6e000-f6b72000 r-xp 00000000 08:12 11416247                           /usr/lib32/libXxf86vm.so.1.0.0
f6b72000-f6b73000 r--p 00004000 08:12 11416247                           /usr/lib32/libXxf86vm.so.1.0.0
f6b73000-f6b74000 rw-p 00005000 08:12 11416247                           /usr/lib32/libXxf86vm.so.1.0.0
f6b74000-f6b75000 r-xp 00000000 08:12 11419167                           /usr/lib32/libxshmfence.so.1.0.0
f6b75000-f6b76000 r--p 00000000 08:12 11419167                           /usr/lib32/libxshmfence.so.1.0.0
f6b76000-f6b77000 rw-p 00001000 08:12 11419167                           /usr/lib32/libxshmfence.so.1.0.0
f6b77000-f6b78000 rw-p 00000000 00:00 0 
f6b78000-f6b99000 r-xp 00000000 08:12 11413614                           /usr/lib32/libxcb.so.1.1.0
f6b99000-f6b9a000 r--p 00020000 08:12 11413614                           /usr/lib32/libxcb.so.1.1.0
f6b9a000-f6b9b000 rw-p 00021000 08:12 11413614                           /usr/lib32/libxcb.so.1.1.0
f6b9b000-f6ba0000 r-xp 00000000 08:12 11417988                           /usr/lib32/libxcb-sync.so.1.0.0
f6ba0000-f6ba1000 r--p 00004000 08:12 11417988                           /usr/lib32/libxcb-sync.so.1.0.0
f6ba1000-f6ba2000 rw-p 00005000 08:12 11417988                           /usr/lib32/libxcb-sync.so.1.0.0
f6ba2000-f6ba4000 r-xp 00000000 08:12 11413633                           /usr/lib32/libxcb-present.so.0.0.0
f6ba4000-f6ba5000 r--p 00001000 08:12 11413633                           /usr/lib32/libxcb-present.so.0.0.0
f6ba5000-f6ba6000 rw-p 00002000 08:12 11413633                           /usr/lib32/libxcb-present.so.0.0.0
f6ba6000-f6ba8000 r-xp 00000000 08:12 11413632                           /usr/lib32/libxcb-dri3.so.0.0.0
f6ba8000-f6ba9000 r--p 00001000 08:12 11413632                           /usr/lib32/libxcb-dri3.so.0.0.0
f6ba9000-f6baa000 rw-p 00002000 08:12 11413632                           /usr/lib32/libxcb-dri3.so.0.0.0
f6baa000-f6bae000 r-xp 00000000 08:12 11413628                           /usr/lib32/libxcb-dri2.so.0.0.0
f6bae000-f6baf000 r--p 00003000 08:12 11413628                           /usr/lib32/libxcb-dri2.so.0.0.0
f6baf000-f6bb0000 rw-p 00004000 08:12 11413628                           /usr/lib32/libxcb-dri2.so.0.0.0
f6bb0000-f6bb1000 rw-p 00000000 00:00 0 
f6bb1000-f6bc8000 r-xp 00000000 08:12 11417897                           /usr/lib32/libxcb-glx.so.0.0.0
f6bc8000-f6bc9000 r--p 00017000 08:12 11417897                           /usr/lib32/libxcb-glx.so.0.0.0
f6bc9000-f6bca000 rw-p 00018000 08:12 11417897                           /usr/lib32/libxcb-glx.so.0.0.0
f6bca000-f6bcb000 r-xp 00000000 08:12 11416035                           /usr/lib32/libX11-xcb.so.1.0.0
f6bcb000-f6bcc000 r--p 00000000 08:12 11416035                           /usr/lib32/libX11-xcb.so.1.0.0
f6bcc000-f6bcd000 rw-p 00001000 08:12 11416035                           /usr/lib32/libX11-xcb.so.1.0.0
f6bcd000-f6bcf000 r-xp 00000000 08:12 11413751                           /usr/lib32/libXdamage.so.1.1.0
f6bcf000-f6bd0000 r--p 00001000 08:12 11413751                           /usr/lib32/libXdamage.so.1.1.0
f6bd0000-f6bd1000 rw-p 00002000 08:12 11413751                           /usr/lib32/libXdamage.so.1.1.0
f6bd1000-f6be2000 r-xp 00000000 08:12 11416210                           /usr/lib32/libXext.so.6.4.0
f6be2000-f6be3000 r--p 00010000 08:12 11416210                           /usr/lib32/libXext.so.6.4.0
f6be3000-f6be4000 rw-p 00011000 08:12 11416210                           /usr/lib32/libXext.so.6.4.0
f6be4000-f6c38000 r-xp 00000000 08:12 11419338                           /usr/lib32/libglapi.so.0.0.0
f6c38000-f6c3b000 rw-p 00053000 08:12 11419338                           /usr/lib32/libglapi.so.0.0.0
f6c3b000-f6c3d000 rw-p 00000000 00:00 0 
f6c3d000-f6c42000 r-xp 00000000 08:12 11415715                           /usr/lib32/libXtst.so.6.1.0
f6c42000-f6c43000 r--p 00004000 08:12 11415715                           /usr/lib32/libXtst.so.6.1.0
f6c43000-f6c44000 rw-p 00005000 08:12 11415715                           /usr/lib32/libXtst.so.6.1.0
f6c44000-f6c48000 r-xp 00000000 08:12 11418394                           /usr/lib32/libXfixes.so.3.1.0
f6c48000-f6c49000 r--p 00003000 08:12 11418394                           /usr/lib32/libXfixes.so.3.1.0
f6c49000-f6c4a000 rw-p 00004000 08:12 11418394                           /usr/lib32/libXfixes.so.3.1.0
f6c4a000-f6df3000 r-xp 00000000 08:12 11410719                           /usr/lib32/libc-2.18.so
f6df3000-f6df5000 r--p 001a9000 08:12 11410719                           /usr/lib32/libc-2.18.so
f6df5000-f6df6000 rw-p 001ab000 08:12 11410719                           /usr/lib32/libc-2.18.so
f6df6000-f6df9000 rw-p 00000000 00:00 0 
f6df9000-f6e12000 r-xp 00000000 08:12 11411194                           /usr/lib32/libgcc_s.so.1
f6e12000-f6e13000 rw-p 00018000 08:12 11411194                           /usr/lib32/libgcc_s.so.1
f6e13000-f6e57000 r-xp 00000000 08:12 11414826                           /usr/lib32/libm-2.18.so
f6e57000-f6e58000 r--p 00043000 08:12 11414826                           /usr/lib32/libm-2.18.so
f6e58000-f6e59000 rw-p 00044000 08:12 11414826                           /usr/lib32/libm-2.18.so
f6e59000-f6e5a000 rw-p 00000000 00:00 0 
f6e5a000-f6f37000 r-xp 00000000 08:12 11417660                           /usr/lib32/libstdc++.so.6.0.19
f6f37000-f6f3b000 r--p 000dd000 08:12 11417660                           /usr/lib32/libstdc++.so.6.0.19
f6f3b000-f6f3c000 rw-p 000e1000 08:12 11417660                           /usr/lib32/libstdc++.so.6.0.19
f6f3c000-f6f43000 rw-p 00000000 00:00 0 
f6f43000-f6f95000 r-xp 00000000 08:12 11415858                           /usr/lib32/libopenal.so.1.15.1
f6f95000-f6f96000 r--p 00052000 08:12 11415858                           /usr/lib32/libopenal.so.1.15.1
f6f96000-f6f97000 rw-p 00053000 08:12 11415858                           /usr/lib32/libopenal.so.1.15.1
f6f97000-f6f9f000 r-xp 00000000 08:12 11416140                           /usr/lib32/libvorbisfile.so.3.3.5
f6f9f000-f6fa0000 r--p 00007000 08:12 11416140                           /usr/lib32/libvorbisfile.so.3.3.5
f6fa0000-f6fa1000 rw-p 00008000 08:12 11416140                           /usr/lib32/libvorbisfile.so.3.3.5
f6fa1000-f6fcc000 r-xp 00000000 08:12 11415566                           /usr/lib32/libvorbis.so.0.4.6
f6fcc000-f6fcd000 r--p 0002a000 08:12 11415566                           /usr/lib32/libvorbis.so.0.4.6
f6fcd000-f6fce000 rw-p 0002b000 08:12 11415566                           /usr/lib32/libvorbis.so.0.4.6
f6fce000-f6fd4000 r-xp 00000000 08:12 11415669                           /usr/lib32/libogg.so.0.8.1
f6fd4000-f6fd5000 r--p 00005000 08:12 11415669                           /usr/lib32/libogg.so.0.8.1
f6fd5000-f6fd6000 rw-p 00006000 08:12 11415669                           /usr/lib32/libogg.so.0.8.1
f6fd6000-f6fd7000 rw-p 00000000 00:00 0 
f6fd7000-f6fe7000 r-xp 00000000 08:14 3677064                            /opt/Steam/SteamApps/common/Awesomenauts/lib/libsteam_api.so
f6fe7000-f6fe8000 rw-p 00010000 08:14 3677064                            /opt/Steam/SteamApps/common/Awesomenauts/lib/libsteam_api.so
f6fe8000-f6fe9000 rw-p 00000000 00:00 0 
f6fe9000-f6fec000 r-xp 00000000 08:12 11414825                           /usr/lib32/libdl-2.18.so
f6fec000-f6fed000 r--p 00002000 08:12 11414825                           /usr/lib32/libdl-2.18.so
f6fed000-f6fee000 rw-p 00003000 08:12 11414825                           /usr/lib32/libdl-2.18.so
f6fee000-f7121000 r-xp 00000000 08:12 11415970                           /usr/lib32/libX11.so.6.3.0
f7121000-f7122000 r--p 00132000 08:12 11415970                           /usr/lib32/libX11.so.6.3.0
f7122000-f7125000 rw-p 00133000 08:12 11415970                           /usr/lib32/libX11.so.6.3.0
f7125000-f7140000 r-xp 00000000 08:12 11419096                           /usr/lib32/libtheoradec.so.1.1.4
f7140000-f7141000 r--p 0001a000 08:12 11419096                           /usr/lib32/libtheoradec.so.1.1.4
f7141000-f7142000 rw-p 0001b000 08:12 11419096                           /usr/lib32/libtheoradec.so.1.1.4
f7142000-f71de000 r-xp 00000000 08:12 11419321                           /usr/lib32/libfreetype.so.6.11.1
f71de000-f71e2000 r--p 0009b000 08:12 11419321                           /usr/lib32/libfreetype.so.6.11.1
f71e2000-f71e3000 rw-p 0009f000 08:12 11419321                           /usr/lib32/libfreetype.so.6.11.1
f71e3000-f71e4000 rw-p 00000000 00:00 0 
f71e4000-f7253000 r-xp 00000000 08:12 11415569                           /usr/lib32/libSDL-1.2.so.0.11.4
f7253000-f7254000 r--p 0006e000 08:12 11415569                           /usr/lib32/libSDL-1.2.so.0.11.4
f7254000-f7255000 rw-p 0006f000 08:12 11415569                           /usr/lib32/libSDL-1.2.so.0.11.4
f7255000-f727f000 rw-p 00000000 00:00 0 
f727f000-f7286000 r-xp 00000000 08:12 11414829                           /usr/lib32/librt-2.18.so
f7286000-f7287000 r--p 00006000 08:12 11414829                           /usr/lib32/librt-2.18.so
f7287000-f7288000 rw-p 00007000 08:12 11414829                           /usr/lib32/librt-2.18.so
f7288000-f72a0000 r-xp 00000000 08:12 11410287                           /usr/lib32/libpthread-2.18.so
f72a0000-f72a1000 r--p 00017000 08:12 11410287                           /usr/lib32/libpthread-2.18.so
f72a1000-f72a2000 rw-p 00018000 08:12 11410287                           /usr/lib32/libpthread-2.18.so
f72a2000-f72a4000 rw-p 00000000 00:00 0 
f72a4000-f7313000 r-xp 00000000 08:14 3676852                            /opt/Steam/SteamApps/common/Awesomenauts/lib/libCgGL.so
f7313000-f7316000 rw-p 0006e000 08:14 3676852                            /opt/Steam/SteamApps/common/Awesomenauts/lib/libCgGL.so
f7316000-f7317000 rw-p 00000000 00:00 0 
f7317000-f7a9e000 r-xp 00000000 08:14 3676851                            /opt/Steam/SteamApps/common/Awesomenauts/lib/libCg.so
f7a9e000-f7e60000 rw-p 00786000 08:14 3676851                            /opt/Steam/SteamApps/common/Awesomenauts/lib/libCg.so
f7e60000-f7e9a000 rw-p 00000000 00:00 0 
f7e9a000-f7f1e000 r-xp 00000000 08:12 11414305                           /usr/lib32/libGLU.so.1.3.1
f7f1e000-f7f1f000 r--p 00083000 08:12 11414305                           /usr/lib32/libGLU.so.1.3.1
f7f1f000-f7f20000 rw-p 00084000 08:12 11414305                           /usr/lib32/libGLU.so.1.3.1
f7f20000-f7fa7000 r-xp 00000000 08:12 11419361                           /usr/lib32/libGL.so.1.2.0
f7fa7000-f7fa9000 rw-p 00087000 08:12 11419361                           /usr/lib32/libGL.so.1.2.0
f7fa9000-f7fd8000 r-xp 00000000 08:13 276096                             /home/dema1701/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
f7fd8000-f7fd9000 rw-p 0002e000 08:13 276096                             /home/dema1701/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
f7fd9000-f7fdb000 rw-p 00000000 00:00 0 
f7fdb000-f7fdc000 r-xp 00000000 00:00 0                                  [vdso]
f7fdc000-f7ffc000 r-xp 00000000 08:12 11410718                           /usr/lib32/ld-2.18.so
f7ffc000-f7ffd000 r--p 0001f000 08:12 11410718                           /usr/lib32/ld-2.18.so
f7ffd000-f7ffe000 rw-p 00020000 08:12 11410718                           /usr/lib32/ld-2.18.so
fffdd000-ffffe000 rw-p 00000000 00:00 0                                  [stack]
SystemManager constructor starts
SystemManager constructor ends
SDLWindowAndEventManager constructor starts
Game version:  Version 2.0.4
SDLWindowAndEventManager constructor ends
SDLWindowAndEventManager::run() starts
SDLWindowAndEventManager::createWindow() starts
Loading binary file: "Data/Config.txt"
xRes:  1280  yRes:  1024  graphicsQuality:  HIGH  fullScreen:  1  renderApi:  OPENGL  vSyncEnabled:  1
multiThreadingEnabled:   1
SDL_SetVideoMode starts
Stack dump:
0.	Running pass 'Function Pass Manager' on module 'tgsi'.
1.	Running pass 'Machine code sinking' on function '@main'
/opt/Steam/SteamApps/common/Awesomenauts/run_game.sh: line 3:  5453 Aborted                 (core dumped) ./Awesomenauts.bin.x86
Game removed: AppID 204300 "Awesomenauts", ProcID 5451 




With R600_LLVM=0, I can't have any backtrace:
/opt/Steam/SteamApps/common/Awesomenauts/run_game.sh: line 3: 10018 Segmentation fault      (core dumped) ./Awesomenauts.bin.x86
Game removed: AppID 204300 "Awesomenauts", ProcID 10018
Comment 5 Kenneth Graunke 2014-01-06 04:36:54 UTC
Fix on the mailing list:
http://lists.freedesktop.org/archives/mesa-dev/2014-January/050839.html
Comment 6 Alexandre Demers 2014-01-07 00:41:59 UTC
(In reply to comment #5)
> Fix on the mailing list:
> http://lists.freedesktop.org/archives/mesa-dev/2014-January/050839.html

It works with the said patch and by disabling R600_LLVM (which is another bug introduced by another commit from Marek)

So this patch was
Tested-by: Alexandre Demers
Comment 7 Alexandre Demers 2014-01-08 06:37:15 UTC
Tested with latest git and it works fine.
Thank you!

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.