-
-
Save osak/5418499 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _GLIBCXX_DEBUG | |
#include <iostream> | |
#include <string> | |
using namespace std; | |
void init() {} | |
int main() { | |
string str; | |
cin >> str; | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
YUKI.N@Koga-no-MacBook-Pro> g++ -v | |
Using built-in specs. | |
Target: i686-apple-darwin11 | |
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~182/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~182/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1 | |
Thread model: posix | |
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) | |
YUKI.N@Koga-no-MacBook-Pro> g++ a.cc | |
YUKI.N@Koga-no-MacBook-Pro> ./a.out | |
hoge | |
a.out(47086) malloc: *** error for object 0x109f59140: pointer being freed was not allocated | |
*** set a breakpoint in malloc_error_break to debug | |
zsh: abort ./a.out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment