c++ - Segmentation Fault On New -


i'm not sure if problem g++ or somehow compiler messed getting error on new @ start of program. have tested , instance of new gives me fault, simple this:

int main(int argc, char *argv[]) {     new char[12];     return 0; } 

stack trace:

#0  0x7703636d in ntdll!rtlallocateheap () c:\windows\system32\ntdll.dll #1  0x77035125 in ntdll!rtlallocateheap () c:\windows\system32\ntdll.dll #2  0x77034fc2 in ntdll!rtlallocateheap () c:\windows\system32\ntdll.dll #3  0x770cece6 in ntdll!rtlpntsetvaluekey () c:\windows\system32\ntdll.dll #4  0x77037656 in ntdll!rtlallocateheap () c:\windows\system32\ntdll.dll #5  0x77035125 in ntdll!rtlallocateheap () c:\windows\system32\ntdll.dll #6  0x77034fc2 in ntdll!rtlallocateheap () c:\windows\system32\ntdll.dll #7  0x765e79b0 in msvcrt!malloc () c:\windows\system32\msvcrt.dll #8  0x6fef4a79 in ?? () c:\mingw\bin\libstdc++-6.dll #9  0x6fef4a1f in ?? () c:\mingw\bin\libstdc++-6.dll #10 0x00401a5c in main (argc=2, argv=0x7679b0) @ c:\users\mackenzie\desktop\school\ece150\project\parser\parser.cpp:2 


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -