none
std::thread and Application Verifier RRS feed

  • Question

  • Hello.
     
    I have the following example code:
    #include <iostream>
    #include <thread>
    #include <vector>
    
    void foo()
    {
    	std::cout << "Hello\n";
    	return;
    }
     
    int main()
    {
    	std::thread t(foo);
    	t.join();
    	return 0;
    }

    Everything is working, but Application Verifier v.6.3.9600 triggers a breakpoint:

    First-chance exception at 0x00000000 in thread.exe: 0xC0000005: Access violation executing location 0x00000000.
     
    =======================================
    VERIFIER STOP 00000650: pid 0x2254: Attempt to execute code in non-executable memory (first chance). 
     
    	00000000 : Address being accessed.
    	00000000 : Code performing invalid access.
    	001EEA9C : Exception record. Use .exr to display it.
    	001EEAEC : Context record. Use .cxr to display it.
     
    What may be wrong? What can be done here with AppVerifier?
    Friday, November 1, 2013 11:14 AM