Bug 92953 - Segfault loading UT4 map/server
Summary: Segfault loading UT4 map/server
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/radeonsi (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: Default DRI bug account
QA Contact: Default DRI bug account
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-14 20:15 UTC by bellamorte42
Modified: 2015-11-24 15:24 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
glxinfo (97.73 KB, text/plain)
2015-11-19 03:42 UTC, bellamorte42
Details
dmesg (2.06 KB, text/plain)
2015-11-19 03:48 UTC, bellamorte42
Details
backtrace (3.36 KB, text/plain)
2015-11-20 20:56 UTC, bellamorte42
Details
backtrace (4.06 KB, text/plain)
2015-11-20 23:22 UTC, bellamorte42
Details

Description bellamorte42 2015-11-14 20:15:37 UTC
After choosing a game to join a segmentation fault occurs on the loading screen locking up my entire computer.  Apitrace shows nothing except "Segmentation fault (core dumped)"
Comment 1 bellamorte42 2015-11-14 20:24:51 UTC
I'm also getting the error message
radeon: Ring 0 stalled xxxxxms
radeon: Ring 3 stalled xxxxxms
Comment 2 bellamorte42 2015-11-14 20:26:31 UTC
Last bits of LD_DEBUG=all

[2015.11.14-20.21.43:927][  7]LogLoad: LoadMap: 54.176.182.226//Game/RestrictedAssets/Maps/UT-Entry?Hat=?Character=?Eyewear=?HatVar=0?EyewearVar=0?Team=1?Name=Player?VersionCheck=1?Taunt=/Game/RestrictedAssets/Blueprints/Taunts/Taunt_PelvicThrust.Taunt_PelvicThrust_C?Taunt2=/Game/RestrictedAssets/Blueprints/Taunts/Taunt_NoNo.Taunt_NoNo_C?SpectatorOnly=0?LeaderHat=?Rank=1478?game=/Script/UnrealTournament.UTLobbyGameMode
[2015.11.14-20.21.43:927][  7]UT: Background: UT.LoadingScreen
[2015.11.14-20.21.43:950][  7]UT: Call to HideMenu() when without a menu being opened.
[2015.11.14-20.21.44:071][  7]LogAIModule: Creating AISystem for world UT-Entry
[2015.11.14-20.21.44:076][  7]LogWorld: Bringing World /Game/RestrictedAssets/Maps/UT-Entry.UT-Entry up for play (max tick rate 120) at 2015.11.14-13.21.44
[2015.11.14-20.21.44:077][  7]LogWorld: Bringing up level for play took: 0.001542
1001[33m[2015.11.14-20.21.44:725][ 45]LogLinker:Warning: Can't find file '/Game/RestrictedAssets/Audio/UI/A_UI_Pause01_Cue'
[0m[33m[2015.11.14-20.21.44:725][ 45]LogUObjectGlobals:Warning: Failed to load '/Game/RestrictedAssets/Audio/UI/A_UI_Pause01_Cue': Can't find file '/Game/RestrictedAssets/Audio/UI/A_UI_Pause01_Cue'
[0m1001[33m[2015.11.14-20.21.44:726][ 45]LogLinker:Warning: Can't find file '/Game/RestrictedAssets/Audio/UI/A_UI_Pause01_Cue'
[0m[33m[2015.11.14-20.21.44:726][ 45]LogUObjectGlobals:Warning: Failed to load '/Game/RestrictedAssets/Audio/UI/A_UI_Pause01_Cue': Can't find file '/Game/RestrictedAssets/Audio/UI/A_UI_Pause01_Cue'
[0m1001[33m[2015.11.14-20.21.44:726][ 45]LogLinker:Warning: Can't find file '/Game/RestrictedAssets/Audio/UI/A_UI_Pause01_Cue'
[0m[33m[2015.11.14-20.21.44:726][ 45]LogUObjectGlobals:Warning: Failed to load '/Game/RestrictedAssets/Audio/UI/A_UI_Pause01_Cue': Can't find file '/Game/RestrictedAssets/Audio/UI/A_UI_Pause01_Cue'
[0m[33m[2015.11.14-20.21.44:726][ 45]LogUObjectGlobals:Warning: Failed to find object 'Object /Game/RestrictedAssets/Audio/UI/A_UI_Pause01_Cue.A_UI_Pause01_Cue'
[0m[33m[2015.11.14-20.21.44:877][ 45]LogSlateStyle:Warning: Unable to find Slate Widget Style 'MOTD.Normal'. Using FTextBlockStyle defaults instead.
[0m[33m[2015.11.14-20.21.44:916][ 45]LogSlateStyle:Warning: Unable to find Slate Widget Style 'UT.Icon.Lock.Small'. Using FInlineTextImageStyle defaults instead.
[0m[33m[2015.11.14-20.21.46:008][ 82]LogSlateStyle:Warning: Unable to find Slate Widget Style 'UT.Icon.Lock.Small'. Using FInlineTextImageStyle defaults instead.
[0m[33m[2015.11.14-20.21.47:470][257]LogOnline:Warning: MCP: Can't cancel a search that isn't in progress
[0m[2015.11.14-20.21.47:470][257]UT: OnCancelGUIDFindSessionComplete 1
[2015.11.14-20.21.47:471][257]UT: Attempting a join #0
[33m[2015.11.14-20.21.47:471][257]LogOnline:Warning: MCP: Can't cancel a search that isn't in progress
[0m[2015.11.14-20.21.47:576][271]UT: OnFindSesssionComplete 1
[2015.11.14-20.21.47:576][271]UT: ##########################
[2015.11.14-20.21.47:576][271]UT: Joining a New Session
[2015.11.14-20.21.47:576][271]UT: ##########################
[2015.11.14-20.21.47:576][271]UT: --- Already in a Session -- Deferring while I clean it up
[33m[2015.11.14-20.21.47:576][271]LogOnline:Warning: MCP: Can't end session (Game) in state Pending
[0m[2015.11.14-20.21.47:587][271]UT: ----------- [OnDestroySessionComplete 1
[2015.11.14-20.21.48:155][340]UT: ----------- [OnJoinSessionComplete 1
[2015.11.14-20.21.48:162][340]LogInit: BSD: Socket queue 65536 / 65536
[2015.11.14-20.21.48:271][353]LogLoad: LoadMap: 54.176.182.226:8000//Game/RestrictedAssets/Maps/WIP/DM-ASDF?Hat=?Character=?Eyewear=?HatVar=0?EyewearVar=0?Team=0?Name=Player?VersionCheck=1?Taunt=/Game/RestrictedAssets/Blueprints/Taunts/Taunt_PelvicThrust.Taunt_PelvicThrust_C?Taunt2=/Game/RestrictedAssets/Blueprints/Taunts/Taunt_NoNo.Taunt_NoNo_C?SpectatorOnly=0?LeaderHat=?Rank=1478?game=/Script/UnrealTournament.UTDMGameMode
[2015.11.14-20.21.48:271][353]UT: Background: UT.LoadingScreen
[2015.11.14-20.21.48:272][353]LogExit: GameNetDriver IpNetDriver_138 shut down
[33m[2015.11.14-20.21.48:345][353]LogLinker:Warning: CreateImport: Failed to load Outer for resource 'WidgetTree': WidgetBlueprint /Script/UMGEditor.Default__WidgetBlueprint
[0m[2015.11.14-20.21.49:640][353]LogMaterial: Can't compile M_LinkGun_hologram_02 with cooked content, will use default material instead
[33m[2015.11.14-20.21.49:640][353]LogMaterial:Warning: Failed to compile Material /Game/RestrictedAssets/Weapons/Weapon_Base_Effects/Materials/M_LinkGun_hologram_02.M_LinkGun_hologram_02 for platform GLSL_150, Default Material will be used in game.
[0m[2015.11.14-20.21.49:672][353]LogAIModule: Creating AISystem for world DM-ASDF
[2015.11.14-20.21.49:755][353]LogWorld: Bringing World /Game/RestrictedAssets/Maps/WIP/DM-ASDF.DM-ASDF up for play (max tick rate 120) at 2015.11.14-13.21.49
[2015.11.14-20.21.49:868][353]LogWorld: Bringing up level for play took: 0.184578
EngineCrashHandler: Signal=7
[2015.11.14-20.22.06:761][353]LogLinux: === Critical error: ===
Unhandled Exception: SIGBUS: invalid attempt to access memory at address 0x36c72000

[2015.11.14-20.22.06:761][353]LogLinux: Fatal error!

[Callstack]  02  0x00007fc96f9975bb  ReportCrash(FLinuxCrashContext const&)
[Callstack]  03  0x0000000000419beb  EngineCrashHandler(FGenericCrashContext const&) [D:\BuildFarm\buildmachine_++depot+UE4-UT-Releases\Engine\Source\Runtime\Launch\Private\Linux/LaunchLinux.cpp, line 31]
[Callstack]  04  0x00007fc96f99a898  PlatformCrashHandler(int, siginfo*, void*)
[Callstack]  05  0x00007fc97014fd60  /usr/lib/libpthread.so.0(+0x10d60) [0x7fc97014fd60]
[Callstack]  06  0x00007fc968e2fe99  /usr/lib/libc.so.6(+0x90e99) [0x7fc968e2fe99]
[Callstack]  07  0x00007fc95b22b5c8  /usr/lib/xorg/modules/dri/radeonsi_dri.so(+0x55c5c8) [0x7fc95b22b5c8]
[Callstack]  08  0x00007fc95afdf12a  /usr/lib/xorg/modules/dri/radeonsi_dri.so(+0x31012a) [0x7fc95afdf12a]
[Callstack]  09  0x00007fc94b8aadcf  FOpenGLDynamicRHI::RHICreateUniformBuffer(void const*, FRHIUniformBufferLayout const&, EUniformBufferUsage)
[Callstack]  10  0x00007fc96b8e31a0  RHICreateUniformBuffer(void const*, FRHCtrlCHandler: Signal=15
CtrlCHandler: Signal=1
[2015.11.14-20.22.37:430][353]LogGenericPlatformMisc: FPlatformMisc::RequestExit(1)
Comment 3 bellamorte42 2015-11-15 18:31:27 UTC
Probably relevant, the War Thunder launcher no longer loads.
Comment 4 Michel Dänzer 2015-11-19 02:28:57 UTC
Looks like a GPU hang. Please attach the corresponding Xorg.0.log file and output of dmesg and glxinfo.
Comment 5 bellamorte42 2015-11-19 03:42:22 UTC
Created attachment 119924 [details]
glxinfo
Comment 6 bellamorte42 2015-11-19 03:48:07 UTC
Created attachment 119925 [details]
dmesg

Can't open the server list to try to join a game anymore.
Comment 7 Michel Dänzer 2015-11-19 09:08:35 UTC
Can you try running the game with the environment variable R600_DEBUG=check_vm and reproducing the problem? It should generate some debugging output on stderr, if so please attach that here.
Comment 8 bellamorte42 2015-11-19 14:48:24 UTC
It segfaults when I try to run it with R600_DEBUG=check_vm. 

[2015.11.19-14.45.03:949][  0]LogInit:Display: Running engine for game: UnrealTournament
[2015.11.19-14.45.03:949][  0]LogInit:Display: Project file not found: /home/gabriel/games/LinuxNoEditor/UnrealTournament/UnrealTournament.uproject
[2015.11.19-14.45.03:949][  0]LogInit:Display: 	Attempting to find via project info helper.
[2015.11.19-14.45.03:949][  0]LogUProjectInfo: Found projects:
[2015.11.19-14.45.03:949][  0]LogInit:Display: RandInit(1798183980) SRandInit(1798183987).
[2015.11.19-14.45.03:950][  0]LogTaskGraph: Started task graph with 3 named threads and 7 total threads.
[2015.11.19-14.45.03:950][  0]LogInit: Version: 4.8.0-2739211+++depot+UE4-UT-Releases
[2015.11.19-14.45.03:950][  0]LogInit: API Version: 2739211
[2015.11.19-14.45.03:950][  0]LogInit: Compiled (64-bit): Oct 22 2015 20:46:55
[2015.11.19-14.45.03:950][  0]LogInit: Compiled with Clang: 3.5.0 (tags/RELEASE_350/final)
[2015.11.19-14.45.03:950][  0]LogInit: Build Configuration: Test
[2015.11.19-14.45.03:950][  0]LogInit: Branch Name: ++depot+UE4-UT-Releases
[2015.11.19-14.45.03:950][  0]LogInit: Command line: 
[2015.11.19-14.45.03:950][  0]LogInit: Base directory: /home/gabriel/games/LinuxNoEditor/Engine/Binaries/Linux/
[2015.11.19-14.45.03:950][  0]LogInit: Rocket: 0
[2015.11.19-14.45.04:165][  0]LogInit: Using libcurl 7.38.0
[2015.11.19-14.45.04:165][  0]LogInit:  - built for x86_64-unknown-linux-gnu
[2015.11.19-14.45.04:165][  0]LogInit:  - supports SSL with OpenSSL/1.0.1i
[2015.11.19-14.45.04:165][  0]LogInit:  - supports HTTP deflate (compression) using libz 1.2.5
[2015.11.19-14.45.04:165][  0]LogInit:  - other features:
[2015.11.19-14.45.04:165][  0]LogInit:      CURL_VERSION_SSL
[2015.11.19-14.45.04:165][  0]LogInit:      CURL_VERSION_LIBZ
[2015.11.19-14.45.04:165][  0]LogInit:      CURL_VERSION_IPV6
[2015.11.19-14.45.04:165][  0]LogInit:      CURL_VERSION_ASYNCHDNS
[2015.11.19-14.45.04:165][  0]LogInit:      CURL_VERSION_LARGEFILE
[2015.11.19-14.45.04:165][  0]LogInit:      CURL_VERSION_TLSAUTH_SRP
[2015.11.19-14.45.04:165][  0]LogInit:  Libcurl: checking if '/etc/pki/tls/certs/ca-bundle.crt' exists
[2015.11.19-14.45.04:165][  0]LogInit:  Libcurl: checking if '/etc/ssl/certs/ca-certificates.crt' exists
[2015.11.19-14.45.04:165][  0]LogInit:  CurlRequestOptions (configurable via config and command line):
[2015.11.19-14.45.04:165][  0]LogInit:  - bVerifyPeer = true  - Libcurl will verify peer certificate
[2015.11.19-14.45.04:165][  0]LogInit:  - bUseHttpProxy = false  - Libcurl will NOT use HTTP proxy
[2015.11.19-14.45.04:165][  0]LogInit:  - bDontReuseConnections = false  - Libcurl will reuse connections
[2015.11.19-14.45.04:165][  0]LogInit:  - CertBundlePath = /etc/ssl/certs/ca-certificates.crt  - Libcurl will set CURLOPT_CAINFO to it
[2015.11.19-14.45.04:850][  0]LogVoice:Warning: Failed to initialize voice interface
[2015.11.19-14.45.05:267][  0]LogInit: Presizing for 0 objects not considered by GC, pre-allocating 0 bytes.
[2015.11.19-14.45.05:272][  0]LogInit: Object subsystem initialized
[2015.11.19-14.45.05:281][  0]LogInit: Selected Device Profile: [LinuxNoEditor]
[2015.11.19-14.45.05:281][  0]LogInit: Applying CVar settings loaded from the selected device profile: [LinuxNoEditor]
[2015.11.19-14.45.05:289][  0]LogInit: Linux hardware info:
[2015.11.19-14.45.05:289][  0]LogInit:  - this process' id (pid) is 23220, parent process' id (ppid) is 23219
[2015.11.19-14.45.05:289][  0]LogInit:  - we are not running under debugger
[2015.11.19-14.45.05:289][  0]LogInit:  - machine network name is 'localhost'
[2015.11.19-14.45.05:289][  0]LogInit:  - we're logged in locally
[2015.11.19-14.45.05:289][  0]LogInit:  - Number of physical cores available for the process: 8
[2015.11.19-14.45.05:289][  0]LogInit:  - Number of logical cores available for the process: 8
[2015.11.19-14.45.05:289][  0]LogInit:  - Memory allocator used: binned
[2015.11.19-14.45.05:289][  0]LogInit: Linux-specific commandline switches:
[2015.11.19-14.45.05:289][  0]LogInit:  -nodwarf (currently OFF): suppress parsing of DWARF debug info (callstacks will be generated faster, but won't have line numbers)
[2015.11.19-14.45.05:289][  0]LogInit:  -ansimalloc - use malloc()/free() from libc (useful for tools like valgrind and electric fence)
[2015.11.19-14.45.05:289][  0]LogInit:  -jemalloc - use jemalloc for all memory allocation
[2015.11.19-14.45.05:289][  0]LogInit:  -binnedmalloc - use binned malloc  for all memory allocation
[2015.11.19-14.45.05:289][  0]LogInit:  -httpproxy=ADDRESS:PORT - redirects HTTP requests to a proxy (only supported if compiled with libcurl)
[2015.11.19-14.45.05:289][  0]LogInit:  -reuseconn - allow libcurl to reuse HTTP connections (only matters if compiled with libcurl)
[2015.11.19-14.45.05:289][  0]LogInit:  -virtmemkb=NUMBER - sets process virtual memory (address space) limit (overrides VirtualMemoryLimitInKB value from .ini)
[2015.11.19-14.45.05:289][  0]LogInit: Setting LC_NUMERIC to en_US
[2015.11.19-14.45.05:289][  0]LogInit: Initializing SDL.
Signal 11 caught.
EngineCrashHandler: Signal=11
Unreal.sh: line 3: 23220 Segmentation fault      (core dumped)
Comment 9 Michel Dänzer 2015-11-20 00:28:44 UTC
Can you get a backtrace of that segfault?
Comment 10 bellamorte42 2015-11-20 00:58:17 UTC
Backtrace of segfault, as requested.  Using R600_DEBUG=check_vm gdb --args ./UE4-Linux-Test UnrealTournament

Program received signal SIGSEGV, Segmentation fault.
0x0000441f0fe0ff18 in ?? ()
(gdb) bt
#0  0x0000441f0fe0ff18 in ?? ()
#1  0x00007fffe30ffba8 in ?? () from /usr/lib/xorg/modules/dri/radeonsi_dri.so
#2  0x00007fffe3126640 in ?? () from /usr/lib/xorg/modules/dri/radeonsi_dri.so
#3  0x00007fffe3046e03 in ?? () from /usr/lib/xorg/modules/dri/radeonsi_dri.so
#4  0x00007fffe304a3c8 in ?? () from /usr/lib/xorg/modules/dri/radeonsi_dri.so
#5  0x00007fffe3126539 in ?? () from /usr/lib/xorg/modules/dri/radeonsi_dri.so
#6  0x00007fffe3127ced in ?? () from /usr/lib/xorg/modules/dri/radeonsi_dri.so
#7  0x00007fffe312ca40 in ?? () from /usr/lib/xorg/modules/dri/radeonsi_dri.so
#8  0x00007fffe312d155 in ?? () from /usr/lib/xorg/modules/dri/radeonsi_dri.so
#9  0x00007fffe2d8de20 in ?? () from /usr/lib/xorg/modules/dri/radeonsi_dri.so
#10 0x00007fffe2d89a91 in ?? () from /usr/lib/xorg/modules/dri/radeonsi_dri.so
#11 0x00007fffe2c6e69e in ?? () from /usr/lib/xorg/modules/dri/radeonsi_dri.so
#12 0x00007fffe2c6fa12 in ?? () from /usr/lib/xorg/modules/dri/radeonsi_dri.so
#13 0x00007fffe2d8956f in ?? () from /usr/lib/xorg/modules/dri/radeonsi_dri.so
#14 0x00007fffe2d88124 in ?? () from /usr/lib/xorg/modules/dri/radeonsi_dri.so
#15 0x00007fffe5c4ff2a in ?? () from /usr/lib/libGL.so.1
#16 0x00007fffe5c1f74a in glXMakeCurrent () from /usr/lib/libGL.so.1
#17 0x00007ffff763b1e5 in X11_GL_MakeCurrent (_this=<optimized out>, 
    window=<optimized out>, context=<optimized out>)
    at /home/rcl/build/2015-05-01/SDL-gui-backend/src/video/x11/SDL_x11opengl.c:684
#18 0x00007ffff763b9fe in X11_GL_CreateContext (_this=0xcc8010, 
    window=0xf91de0)
---Type <return> to continue, or q <return> to quit---
   /SDL_x11opengl.c:664
#19 0x00007ffff75e5b40 in SDL_GL_CreateContext_REAL (window=0xf91de0) at /home/rcl/build/2015-05-01/SDL-gui-backend/src/video/SDL_video.c:3105
#20 0x00007ffff75e8be3 in ShouldUseTextureFramebuffer () at /home/rcl/build/2015-05-01/SDL-gui-backend/src/video/SDL_video.c:208
#21 SDL_VideoInit_REAL (driver_name=<optimized out>) at /home/rcl/build/2015-05-01/SDL-gui-backend/src/video/SDL_video.c:525
#22 0x00007ffff75fd697 in SDL_InitSubSystem_REAL (flags=1077809) at /home/rcl/build/2015-05-01/SDL-gui-backend/src/SDL.c:173
#23 0x00007ffff741411f in FLinuxPlatformMisc::PlatformInitMultimedia () at D:\BuildFarm\buildmachine_++depot+UE4-UT-Releases\Engine\Source\Runtime\Core\Private\Linux/LinuxPlatformMisc.cpp:174
#24 0x00007ffff7425e31 in FLinuxPlatformMisc::PlatformInit () at D:\BuildFarm\buildmachine_++depot+UE4-UT-Releases\Engine\Source\Runtime\Core\Private\Linux/LinuxPlatformMisc.cpp:157
#25 0x000000000040f6ac in FEngineLoop::PreInit (this=<optimized out>, CmdLine=<optimized out>)
    at D:\BuildFarm\buildmachine_++depot+UE4-UT-Releases\Engine\Source\Runtime\Launch\Private/LaunchEngineLoop.cpp:1139
#26 0x000000000041363d in EnginePreInit (CmdLine=0x7fffe2de3640 L"\x187f8b48\x74ff8548\x478b4807\x1060ff10\x801f0fc3")
    at D:\BuildFarm\buildmachine_++depot+UE4-UT-Releases\Engine\Source\Runtime\Launch\Private/Launch.cpp:31
#27 GuardedMain (CmdLine=0x7fffffffbdb0 L"\x1335010") at D:\BuildFarm\buildmachine_++depot+UE4-UT-Releases\Engine\Source\Runtime\Launch\Private/Launch.cpp:110
#28 0x000000000041a4ef in main (argc=<optimized out>, argv=<optimized out>) at D:\BuildFarm\buildmachine_++depot+UE4-UT-Releases\Engine\Source\Runtime\Launch\Private\Linux/LaunchLinux.cpp:260
Comment 11 Michel Dänzer 2015-11-20 01:31:48 UTC
Please make sure there are debugging symbols for /usr/lib/xorg/modules/dri/radeonsi_dri.so and get a backtrace again (and please attach it instead of pasting it as a comment).
Comment 12 bellamorte42 2015-11-20 20:56:34 UTC
Created attachment 119999 [details]
backtrace
Comment 13 bellamorte42 2015-11-20 23:22:25 UTC
Created attachment 120002 [details]
backtrace

Figured out how to keep my debugging symbols. New backtrace.
Comment 14 Nicolai Hähnle 2015-11-23 08:28:47 UTC
Your dmesg log has a non-standard timestamp format (the [....] prefix in each line), which causes the debug handling in radeonsi to get tripped up. The fastest way to make forward progress is for you to revert your dmesg timestamp format to the default and repeat.
Comment 15 bellamorte42 2015-11-23 16:58:27 UTC
Well, I guess the definition of non-standard is relative.  I didn't change anything, how ever it is, is the way it came.  So I'm not sure what to 'revert'.
Comment 16 Michel Dänzer 2015-11-24 03:33:56 UTC
The non-standard behaviour must be due to a (distro?) patch to the kernel or due to a non-standard kernel build .config setting.
Comment 17 bellamorte42 2015-11-24 14:18:51 UTC
I was using a non-standard kernel (ck patch set, BFS, BFQ) but I get the same thing when I switch to the stock (Arch) kernel.  The leading spaces to align the timestamps certainly makes the output more legible, so I would call it an improvement.
Comment 18 bellamorte42 2015-11-24 15:24:05 UTC
Appears fixed in latest 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.