drmemory icon indicating copy to clipboard operation
drmemory copied to clipboard

using longjmp causes 0xc0000374

Open dk opened this issue 1 year ago • 0 comments

#include <setjmp.h>
int main()
{
	jmp_buf j;
	if ( setjmp(j) == 0 )
		longjmp(j,1);
	return 0;
}

This simple program, if compiled with msvc cl v19.34.31933 for x64, causes error 0xc0000374 under dr.memory v2.6.0 build 0, under Windows 10. When compiled with mingw/gcc v13.2.0, the effect is the same, error 0xc0000374 as well.

( Also, ERROR: Failed to find "main" for limiting memory dump but that's not much of a problem)

dk avatar Oct 02 '24 22:10 dk