﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
15	Add own setjmp()/longjmp()	dmik		"The normal OS/2 LIBC version of setjmp() memorizes the current (top) exception frame at the time of the call which longjmp() then uses before the jump to unwind the exception chain up to (this is done to clean up the exception handlers possibly installed after setjmp()).

When these functions are used in the Windows code compiled with Odin32 SDK with enabled SEH (structured exceptions), this represents an expected problem: since the FS register points to the Win32 thread block at the time of the setjmp() call, it captures the Win32 exception frame (instead of the OS/2 frame) and longjmp() uses DosUnwindException() on this frame which is wrong and will usually crash the application with something lile XCPT_INVALID_UNWIND_TARGET."	enhancement	new	major	general enhancement	odin					
