Showing All Issues Command failed due to signal: Abort trap: 6

HI Guyz,


Hope you are fine.

I facing issue in xcode 9.3 and its really weired issue.

Xcode compiler gives crash error. Please check the stack trace and suggest proper solution for it.

I have searched many things but different people have different solution and i tried max but still not able to identify.


STACK TRACE :


Stored value type does not match pointer operand type!

store %objc_object** %281, %objc_object** %284, align 8, !dbg !712

%objc_object*<unknown>:0: error: fatal error encountered during compilation; please file a bug report with your project and the crash log

<unknown>:0: note: Broken function found, compilation aborted!

0 swift 0x000000010829effa PrintStackTraceSignalHandler(void*) + 42

1 swift 0x000000010829e3b6 SignalHandler(int) + 966

2 libsystem_platform.dylib 0x00007fff6964af5a _sigtramp + 26

3 libsystem_platform.dylib 0x000000010ce992c4 _sigtramp + 2743395204

4 libsystem_c.dylib 0x00007fff693e81ae abort + 127

5 swift 0x00000001048f58e7 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*)::$_0::__invoke(void*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) + 519

6 swift 0x0000000108256658 llvm::report_fatal_error(llvm::Twine const&, bool) + 280

7 swift 0x0000000108256539 llvm::report_fatal_error(char const*, bool) + 41

8 swift 0x000000010821eca6 (anonymous namespace)::VerifierLegacyPass::runOnFunction(llvm::Function&) + 54

9 swift 0x00000001081c67d1 llvm::FPPassManager::runOnFunction(llvm::Function&) + 449

10 swift 0x00000001081ce703 llvm::legacy::FunctionPassManagerImpl::run(llvm::Function&) + 115

11 swift 0x00000001081ce5fc llvm::legacy::FunctionPassManager::run(llvm::Function&) + 396

12 swift 0x0000000104a9ea18 swift::performLLVM(swift::IRGenOptions&, swift::DiagnosticEngine*, llvm::sys::SmartMutex<false>*, llvm::GlobalVariable*, llvm::Module*, llvm::TargetMachine*, swift::version::Version const&, llvm::StringRef, swift::UnifiedStatsReporter*) + 5096

13 swift 0x000000010490077d performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 44685

14 swift 0x00000001048f3e64 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 7908

15 swift 0x00000001048a88b5 main + 18917

16 libdyld.dylib 0x00007fff6933c015 start + 1

17 libdyld.dylib 0x00000000000000a5 start + 2529968273




thanks,

This indicates that the Swift compiler has crashed. This is most definitely a bug in the compiler; it shouldn’t crash regardless of what input you feed it. You should file a bug about this, including as much information as you can. Ideally that would include a minimal test project that reproduces the issue.

Please post your bug number, just for the record.

In terms of workarounds, this failure is deep enough in the compiler that it’s not obvious how to map that to your source code. If this problem didn’t occur in Xcode 9.2, then a simple workaround would be to roll back to that. The alternative is to start pulling apart your code looking for the code that triggers this, and that can be a long and hard process.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Hi,


I've got the same issue. However, I noticed this only happens when I'm using the production build. When I use a scheme that uses the debug build, the crash doesn't happen.


But one thing, if we roll back to 9.2m we won't be able to submit to Appstore because of the iOS 12. Is there something we can about this?


Just in case, this is the error I receive:


```


PHI node operands are not the same type as the result!

%95 = phi %T7MDKData10VideoErrorOSbIegny_Sg* [ %67, %74 ], [ %38, %45 ], !dbg !4023

<unknown>:0: error: fatal error encountered during compilation; please file a bug report with your project and the crash log

<unknown>:0: note: Broken function found, compilation aborted!

0 swift 0x000000011105159a PrintStackTraceSignalHandler(void*) + 42

1 swift 0x0000000111050d4e SignalHandler(int) + 302

2 libsystem_platform.dylib 0x00007fff5a06bb3d _sigtramp + 29

3 libsystem_platform.dylib 0x000000011b2a07c7 _sigtramp + 3240316071

4 libsystem_c.dylib 0x00007fff59f291c9 abort + 127

5 swift 0x000000010d2d6a67 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*)::$_1::__invoke(void*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) + 519

6 swift 0x00000001110051c8 llvm::report_fatal_error(llvm::Twine const&, bool) + 280

7 swift 0x00000001110050ab llvm::report_fatal_error(char const*, bool) + 43

8 swift 0x0000000110fcc736 (anonymous namespace)::VerifierLegacyPass::runOnFunction(llvm::Function&) + 54

9 swift 0x0000000110f72f9e llvm::FPPassManager::runOnFunction(llvm::Function&) + 446

10 swift 0x0000000110f7b2b3 llvm::legacy::FunctionPassManagerImpl::run(llvm::Function&) + 115

11 swift 0x0000000110f7b1a8 llvm::legacy::FunctionPassManager::run(llvm::Function&) + 392

12 swift 0x000000010d49d198 swift::performLLVM(swift::IRGenOptions&, swift::DiagnosticEngine*, llvm::sys::SmartMutex<false>*, llvm::GlobalVariable*, llvm::Module*, llvm::TargetMachine*, swift::version::Version const&, llvm::StringRef, swift::UnifiedStatsReporter*) + 4504

13 swift 0x000000010d4a1d7e ThreadEntryPoint(swift::irgen::IRGenerator*, llvm::sys::SmartMutex<false>*, int) + 206

14 swift 0x000000010d4a1ddf void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(swift::irgen::IRGenerator*, llvm::sys::SmartMutex<false>*, int), swift::irgen::IRGenerator*, llvm::sys::SmartMutex<false>*, int> >(void*) + 47

15 libsystem_pthread.dylib 0x00007fff5a074305 _pthread_body + 126

16 libsystem_pthread.dylib 0x00007fff5a07726f _pthread_start + 70

17 libsystem_pthread.dylib 0x00007fff5a073415 thread_start + 13

Stack dump:

0. Running pass 'Module Verifier' on function '@"$S14AdkVideoPlayer17ADKVideoComponentC6player_30didFailDuringPlaybackWithErrorySo12TPPlayerViewCSg_So010TPPlaybackL0CSgtFTf4dnn_n"'

error: Abort trap: 6

```


I'm going to create another thread if needed. Thanks 🙂

Showing All Issues Command failed due to signal: Abort trap: 6
 
 
Q