2024-04-20 04:14 CEST

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.
Checked infolog.txt for Errors
Attached Files

-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