TrapLog of a crash: help needed

  • From: Shmuel Zeigerman <shmuz@xxxxxxxxxx>
  • To: LuaJIT list <luajit@xxxxxxxxxxxxx>
  • Date: Sun, 01 Dec 2013 00:30:05 +0200

Hello,

I have a Windows application [1] extendible by DLL-plugins. The application calls their exported functions (e.g. Open(), ProcessEditorEvent(), etc.) when some predefined events take place.

Some of those plugins have their functionality in Lua. That means (for example):
- the application calls the exported function Open() of the plugin
- the plugin calls Lua function export.Open

Six months ago, when we replaced the "standard" Lua 5.1 with LuaJIT 2.0, one of my plugins started to crash when executing some medium-sized non-trivial Lua code. In real use the crashes are rare and random, but I managed to prepare a test case to make them happen regularly. However I fail to make this test case simple or isolated, as even little changes make the crashes to disappear.

As far as I can see, those crashes occur during executing plain Lua code, not during C API calls. FFI is not used either. Calling jit.off() on the entire code or only on the function where crashes occur stops the crashes.

Attached is a trap-log of one of those crashes, for what it's worth.

I'm posting this message in the hope that someone more knowledgeable than I may help. Thank you.

[1] http://farmanager.com/index.php?l=en

--
Shmuel

Attachment: FarTrap_20131130232546.log
Description: Binary data

Other related posts: