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

  • From: Peter Cawley <corsix@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Sun, 24 Apr 2016 23:32:03 +0100

I'm not having any luck reproducing the problem locally (despite using
hererocks.py, having MSVC 2015 - albeit build number 23506 rather than
23918 -, and targeting x86). Could you convince Appveyor to give out
lua.exe/lua51.dll/throw.dll as artifacts?

On Sun, Apr 24, 2016 at 10:38 PM, Nagaev Boris <bnagaev@xxxxxxxxx> wrote:

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: