Re: LuaJIT crashes on C++ exceptions in Visual Studio 32 bit mode

  • From: Nagaev Boris <bnagaev@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Mon, 25 Apr 2016 00:38:11 +0300

On Mon, Apr 25, 2016 at 12:02 AM, Peter Cawley <corsix@xxxxxxxxxx> wrote:

I'm somewhat concerned by the following in your output log:
```
throw.cpp(5): warning C4530: C++ exception handler used, but unwind
semantics are not enabled. Specify /EHsc
```

Thank you, Peter!

I specified CFLAGS=/EHsc fixing the warning, but the crash still exists:

https://ci.appveyor.com/project/starius/luajit-vs32-throw/build/1.0.5/job/4weju0t18ae2asn7


On Sun, Apr 24, 2016 at 9:55 PM, Nagaev Boris <bnagaev@xxxxxxxxx> wrote:
Hi,

my C++ code throws C++ exceptions, so I wrap throwing code with
try-catch and throw Lua error in the catch block. It works in Rio Lua,
but it crashes in LuaJIT under the following conditions:

  * Visual Studio
  * 32 bit mode
  * multiple exceptions thrown, not one. It crashes after second exception.

I created a github project to demonstrate this problem:

https://github.com/starius/luajit-vs32-throw/

The log: 
https://ci.appveyor.com/project/starius/luajit-vs32-throw/build/job/ci3m1bf9cge8b4o4

--
Best regards,
Boris Nagaev





-- 


Best regards,
Boris Nagaev

Other related posts: