Что означает код выхода 4 в Xcode? ⇐ C++
-
Anonymous
Что означает код выхода 4 в Xcode?
I made a simple program which I was trying to crash. Code is as follow:
void Race4(){ int * p = nullptr; *p = 50; } int main(int argc, const char * argv[]) { Race4(); return 0; } When I run it on Xcode, I get output as: Program ended with exit code: 4
When I run the same program via terminal, I get
➜ Release ./Debuging_Profiling [1] 65903 illegal hardware instruction ./Debuging_Profiling My original aim was to get a crash and use atos tool to get symbols from addresses.
Источник: https://stackoverflow.com/questions/781 ... e-on-xcode
I made a simple program which I was trying to crash. Code is as follow:
void Race4(){ int * p = nullptr; *p = 50; } int main(int argc, const char * argv[]) { Race4(); return 0; } When I run it on Xcode, I get output as: Program ended with exit code: 4
When I run the same program via terminal, I get
➜ Release ./Debuging_Profiling [1] 65903 illegal hardware instruction ./Debuging_Profiling My original aim was to get a crash and use atos tool to get symbols from addresses.
Источник: https://stackoverflow.com/questions/781 ... e-on-xcode
Мобильная версия