2018-12-12 06:24 CET

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0006081Spring engineMac OS Xpublic2018-11-23 00:30
ReporterMasterBel 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
Product Version104.0 +git 
Target VersionFixed in Version 
Summary0006081: Segmentation fault: 11 (SIGSEGV) in spring 104.0.1-1343-g957787a develop
DescriptionImmediate crash on launch, see log
Additional InformationInformation provided by debugger:

(lldb) run
Process 41488 launched: '/Users/masterbel2/Spring/Builds/spring/spring' (x86_64)
Process 41488 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
    frame #0: 0x00000001006511e2 spring`springproc::ExecCPUID(a=0x0000000000000000, b=0x00007ffeefbff544, c=0x00007ffeefbff548, d=0x00007ffeefbff54c) at CpuID.cpp:49
   46 "popq %%rbx"
   47 : "=a" (*a), "=r" (*b), "=c" (*c), "=d" (*d)
   48 : "0" (*a)
-> 49 );
   50 #else
   51 __asm__ __volatile__(
   52 "pushl %%ebx\n\t"
Target 0: (spring) stopped.
TagsNo tags attached.
Attached Files
  • txt file icon errorlog.txt (6,596 bytes) 2018-11-15 20:26 -
    Last login: Thu Nov 15 16:36:47 on ttys000
    MasterBel2s-MBP:~ MasterBel2$ /Users/MasterBel2/Spring/Builds/spring/spring ; exit;
    Using writeable configuration source: "/Users/MasterBel2/Spring/Builds/spring/springsettings.cfg"
    Using additional read-only configuration source: "/Users/MasterBel2/.config/spring/springsettings.cfg"
    LogOutput initialized. Logging to /Users/MasterBel2/Spring/Builds/spring/infolog.txt 
    ============== <Log Sections> ==============
      Available:
        ArchiveScanner
        AutohostInterface
        BumpWater
        CSMFGroundTextures
        CrashHandler
        CregSerializer
        DecalsDrawerGL4
        FarTextureHandler
        Font
        GameServer
        GroundMoveType
        KeyBindings
        LuaSocket
        Model
        Net
        Path
        Piece
        RoamMeshDrawer
        Shader
        SkyBox
        Sound
        Texture
        VFS
      Enabled:
        Sound (Notice)
      
      Enable or disable log sections using the LogSections configuration key
      or the SPRING_LOG_SECTIONS environment variable (both comma separated).
      Use "none" to disable the default log sections.
    ============== </Log Sections> ==============
    
    ============== <User Config> ==============
      AllowDeferredMapRendering = 1
      AllowDeferredModelRendering = 1
      CamMode = 5
      FontFile = /Users/MasterBel2/Spring/Sources/spring/cont/fonts/FreeSansBold.otf
      GrassDetail = 0
      GroundDecals = 0
      GroundDetail = 200
      HardwareCursor = 1
      InputTextGeo = 0.26 0.73 0.02 0.028
      LastSelectedMap = DeltaSiegeDry
      LastSelectedMod = Balanced Annihilation V10.11
      LastSelectedScript = Player vs. AI: NullAI 0.1
      MaxNanoParticles = 500
      MaxParticles = 5000
      ScreenshotCounter = 2
      ScrollWheelSpeed = -25
      ShadowMapSize = 1024
      Shadows = 0
      ShowFPS = 1
      ShowPlayerInfo = 0
      ShowSpeed = 1
      SimpleMiniMapColors = 1
      SmallFontFile = /Users/MasterBel2/Spring/Sources/spring/cont/fonts/FreeSansBold.otf
      SpringData = /Users/MasterBel2/Spring/Builds/spring:/Users/MasterBel2/Spring/Sources/spring/cont
      TreeRadius = 600
      UnitIconDist = 10000
      WindowBorderless = 1
      WindowPosX = 0
      WindowPosY = 0
      XResolution = 1920
      XResolutionWindowed = 1920
      YResolution = 1080
      YResolutionWindowed = 1009
      snd_volmaster = 32
    ============== </User Config> ==============
    
    ============== <User System> ==============
      Spring 104.0.1-1343-g957787a develop
        Build Environment: gcc libstdc++ version 20180726
         Compiler Version: gcc-8.2.0
         Operating System: Darwin 17.7.0 Darwin Kernel Version 17.7.0: Wed Oct 10 23:06:14 PDT 2018; root:xnu-4570.71.13~1/RELEASE_X86_64 (x86_64)
          Hardware Config: 
         Binary Word Size: 64-bit (native)
            Process Clock: std::chrono::high_resolution_clock
       Physical CPU Cores: 1
        Logical CPU Cores: 4
    ============== </User System> ==============
    
    [good_fpu_init] CPU SSE mask: 127, flags:
    	SSE 1.0:  1,  SSE 2.0:  1
    	SSE 3.0:  1, SSSE 3.0:  1
    	SSE 4.1:  1,  SSE 4.2:  1
    	SSE 4.0A: 0,  SSE 5.0A: 0
    	using streflop SSE FP-math mode, CPU supports SSE instructions
    [WatchDogInstall] Installed (HangTimeout: 10sec)
    [WatchDog::RegisterThread] registering controls for thread [main]
    [GL::CheckAvailableVideoModes] desktop={1680x1050x32bpp@60Hz} current={1680x1050x32bpp@60Hz}
    	display=1 modes=12 bounds={x=0, y=0, w=1680, h=1050}
    		[ 1] 2880x1800x32bpp@60Hz
    		[ 2] 2560x1600x32bpp@60Hz
    		[ 3] 2048x1280x32bpp@60Hz
    		[ 4] 1680x1050x32bpp@60Hz
    		[ 6] 1440x900x32bpp@60Hz
    		[ 7] 1280x800x32bpp@60Hz
    		[ 8] 1152x720x32bpp@60Hz
    [GR::CreateSDLWindow] using 0x anti-aliasing and 24-bit depth-buffer (PF="SDL_PIXELFORMAT_ARGB8888") for main window
    [GR::CreateSDLWindow] using 0x anti-aliasing and 24-bit depth-buffer (PF="SDL_PIXELFORMAT_ARGB8888") for hidden window
    [GR::LogVersionInfo]
    	SDL version : 2.0.8 (linked) / 2.0.8 (compiled)
    	GL version  : 4.1 INTEL-10.36.19
    	GL vendor   : Intel Inc.
    	GL renderer : Intel(R) Iris(TM) Plus Graphics 640
    	GLSL version: 4.10
    	GLEW version: 2.1.0
    	GPU memory  : unknown
    	SDL swap-int: 1
    	
    [GR::LogGLSupportInfo]
    	FBO extension support     : 1
    	NVX GPU mem-info support  : 0
    	ATI GPU mem-info support  : 0
    	NPOT-texture support      : 0 (0)
    	texture query-LOD support : 1 (1)
    	24-bit Z-buffer support   : 1 (-)
    	primitive-restart support : 0 (0)
    	clip-space control support: 0 (0)
    	frag-depth layout support : 0 (-)
    	
    	max. FBO samples             : 16
    	max. texture size            : 16384
    	max. texture anisotropy level: 16.000000
    	max. vec4 varyings/attributes: 0/16
    	max. draw-buffers            : 8
    	max. rec. indices/vertices   : 150000/1048575
    	max. uniform buffer-bindings : 75
    	max. uniform block-size      : 64KB
    	
    	enable ATI-hacks : 0
    	compress MIP-maps: 0
    	
    [GR::ToggleGLDebugOutput] OpenGL debug-context not installed (dbgErrors=0 dbgTraces=0)
    [CrashHandler] Error: Segmentation fault: 11 (SIGSEGV) in spring 104.0.1-1343-g957787a develop
    [CrashHandler] Error: Halted Stacktrace for Spring 104.0.1-1343-g957787a develop using libunwind:
    
    Warning: [Watchdog] Hang detection triggered for Spring 104.0.1-1343-g950???.
    Warning: 	(in threads: {main,load,audio,vfsi}={1,0,0,0})
    [CrashHandler] Warning: Suspended-thread Stacktrace (main) for Spring 104.0.1-1343-g950???:
    [CrashHandler] Warning: GetLinuxThreadState could not query /proc/13224/task/-1/status
    [CrashHandler] Warning: GetLinuxThreadState could not query /proc/13224/task/-1/status
    [CrashHandler] Warning: GetLinuxThreadState could not query /proc/13224/task/-1/status
    [CrashHandler] Warning: GetLinuxThreadState could not query /proc/13224/task/-1/status
    [CrashHandler] Warning: GetLinuxThreadState could not query /proc/13224/task/-1/status
    [CrashHandler] Warning: GetLinuxThreadState could not query /proc/13224/task/-1/status
    [CrashHandler] Warning: GetLinuxThreadState could not query /proc/13224/task/-1/status
    [CrashHandler] Warning: GetLinuxThreadState could not query /proc/13224/task/-1/status
    [CrashHandler] Warning: GetLinuxThreadState could not query /proc/13224/task/-1/status
    [CrashHandler] Warning: GetLinuxThreadState could not query /proc/13224/task/-1/status
    [CrashHandler] Warning: [02]   0x00058ad9 (in libstdc++.6.dylib) + 12
    
    ^C[CrashHandler] caught SIGINT, aborting
    terminate called without an active exception
    [CrashHandler] Error: Abort trap: 6 (SIGABRT) in spring 104.0.1-1343-g950???
    [CrashHandler] Error: Halted Stacktrace for Spring 104.0.1-1343-g950??? using libunwind:
    spring(13224,0x700010101000) malloc: *** error for object 0x7ffeeecf1770: pointer being freed was not allocated
    *** set a breakpoint in malloc_error_break to debug
    Abort trap: 6
    logout
    Saving session...
    ...copying shared history...
    ...saving history...truncating history files...
    ...completed.
    
    [Process completed]
    txt file icon errorlog.txt (6,596 bytes) 2018-11-15 20:26 +

-Relationships
+Relationships

-Notes

~0019555

Kloot (developer)

"ExecCPUID(a=0x0000000000000000, b=0x00007ffeefbff544, c=0x00007ffeefbff548, d=0x00007ffeefbff54c)"

none of the ExecCPUID callers ever pass in a nullptr for "a" which suggests either a miscompilation or broken asm.

I can't debug this without access to an actual MacOS box.

~0019561

MasterBel (reporter)

Would you be able to guide me through the debug, then? I've spent a couple full days on this and I'm out of ideas at how to track down the cause of the issue.

~0019566

Kloot (developer)

able yes, willing less so because debugging asm by proxy on an alien platform is more than slightly unpleasant. for now just place a return at the top of ExecCPUID and compile with ENABLE_STREFLOP=false.

~0019569

MasterBel (reporter)

Thanks, will do

~0019571

gajop (developer)

I'm less able but more willing to try something like https://lldb.llvm.org/remote.html . Maybe entirely impossible to do with different architectures (Linux/Mac OSX).
If you're interested contact me on Discord and we can arrange something (this Sunday maybe?)
+Notes

-Issue History
Date Modified Username Field Change
2018-11-15 20:26 MasterBel New Issue
2018-11-15 20:26 MasterBel File Added: errorlog.txt
2018-11-16 20:02 Kloot Note Added: 0019555
2018-11-20 08:24 MasterBel Note Added: 0019561
2018-11-21 18:14 Kloot Note Added: 0019566
2018-11-22 06:49 MasterBel Note Added: 0019569
2018-11-23 00:30 gajop Note Added: 0019571
+Issue History