search for: _throwinfo

Displaying 6 results from an estimated 6 matches for "_throwinfo".

2017 Sep 29
2
Clang/LLVM JIT - When to use "registerEHFrames()"
...tely I'm not one. I decided to have a look at "_CxxThrowException". I inserted my own > function for the JIT and had a look at the parameters. I got two of them. > The first was the address of the Exception-Object, which was correct. The > second is the address for the "_ThrowInfo". This address was valid too, but > all its members - except from attributes - are null. So I can't throw this > Exception. I tried to pass the address of typeid(1) to it, or modificate > the call. Nothing helped. I don't know windows exception handling well, but if it's...
2017 Oct 03
2
Clang/LLVM JIT - When to use "registerEHFrames()"
...RtlAddFunctionTable can work? Anyone successfully done this in the wild? On Sun, Oct 1, 2017 at 7:16 AM, Stefan Gränitz via llvm-dev <llvm-dev at lists.llvm.org> wrote: > Hi, I checked last year's mails. Back then Timur and me faced the same issue > Björn reports (nulled memory in _ThrowInfo). > >> Back then I tried to solve a related issue: SEH exceptions thrown from >> code loaded with RuntimeDyld had to be caught in statically compiled code. >> It turned out Windows explicitly prohibits this. I got in touch with >> Microsoft people and IIRC it's due to...
2017 Oct 04
3
Clang/LLVM JIT - When to use "registerEHFrames()"
...;> the wild? >> >> On Sun, Oct 1, 2017 at 7:16 AM, Stefan Gränitz via llvm-dev >> <llvm-dev at lists.llvm.org> wrote: >> > Hi, I checked last year's mails. Back then Timur and me faced the same >> > issue >> > Björn reports (nulled memory in _ThrowInfo). >> > >> >> Back then I tried to solve a related issue: SEH exceptions thrown from >> >> code loaded with RuntimeDyld had to be caught in statically compiled >> >> code. >> >> It turned out Windows explicitly prohibits this. I got in touch w...
2017 Sep 28
0
Clang/LLVM JIT - When to use "registerEHFrames()"
> I tried loading the "msvcrt.lib" as a archive. That was... a bad idea! > I get a Exception while loading: > Assertion failed: ((int64_t)Result <= INT32_MAX) && "Relocation > overflow", file > \lib\executionengine\runtimedyld\Targets/RuntimeDyldCOFFX86_64.h, line 81 It's a limitation of the COFF/PE format and unrelated to exceptions. This patch
2016 Jun 10
2
Windows: How to catch C++ exceptions in runtime-compiled code?
...ing the same code at runtime and loading it with the ORC libraries, every throw results in an unhandled exception. The point of interest seems to be the throw handler for C++ exceptions (throw.cpp): __declspec(noreturn) extern "C" void __stdcall _CxxThrowException(void* pExceptionObject, _ThrowInfo* pThrowInfo) { ... RaiseException( ThisException.ExceptionCode, ThisException.ExceptionFlags, ThisException.NumberParameters, (PULONG_PTR)&ThisException.params ); } For some reason the call to RaiseException does not find or c...
2017 Sep 28
2
Clang/LLVM JIT - When to use "registerEHFrames()"
Hello Stefan, I'm happy someone replied to my problem! Many thanks! To be honest... I didn't understood much of your mail. I'm a beginner with the JIT - so I will explain what I've done. To manage the memory and resolve symbols, I'm using my own Resolver-Class, which overloads the allocation and the findSymbol functions. I've noticed today, that the