https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70207
Bug ID: 70207 Summary: use of <iostream> causes segmentation fault Product: gcc Version: 5.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: katayama.hirofumi.mz at gmail dot com Target Milestone: --- katahiromz:~ $ g++ --version g++.exe (Rev2, Built by MSYS2 project) 5.3.0 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. katahiromz:~ $ cat hello.cpp #include <iostream> int main(void) { std::cout << "hello, world" << std::endl; return 0; } katahiromz:~ $ g++ -g -ggdb hello.cpp -o hello katahiromz:~ $ ./hello.exe Segmentation fault katahiromz:~ $ gdb ./hello.exe GNU gdb (GDB) 7.10.1 Copyright (C) 2015 Free Software Foundation, Inc. ... (gdb) run Starting program: C:\msys64\home\katahiromz\hello.exe [New Thread 8488.0x248c] [New Thread 8488.0x24d8] [New Thread 8488.0x28f4] [New Thread 8488.0x13d4] Program received signal SIGSEGV, Segmentation fault. 0x6fea5aa2 in ?? () from C:\msys64\mingw32\bin\libstdc++-6.dll (gdb) backtrace #0 0x6fea5aa2 in ?? () from C:\msys64\mingw32\bin\libstdc++-6.dll #1 0x6feefea7 in ?? () from C:\msys64\mingw32\bin\libstdc++-6.dll #2 0x6fef4a39 in ?? () from C:\msys64\mingw32\bin\libstdc++-6.dll #3 0x0040165a in main () at hello.cpp:4 (gdb)