calio / lua-capnproto

Lua-capnp is a pure lua implementation of capnproto based on luajit.
BSD 2-Clause "Simplified" License
70 stars 24 forks source link

segmentation fault in benchmark.lua #15

Open stuta opened 4 years ago

stuta commented 4 years ago

OSX latest LuaJIT 2.1.0-beta3

luajit benchmark.lua
Benchmarking    1000000 times.
cjson encode     Elapsed:   1.818497s
capnp encode     Elapsed:   0.104733s
cjson decode     Elapsed:   2.268937s
[1]    52312 segmentation fault  luajit benchmark.lua
satrobit commented 3 years ago

I'm experiencing the same issue on Linux 5.3.5. (tested with LuaJIT 2.1.0-beta3 and LuaJIT master branch)

luajit benchmark.lua

Benchmarking    1000000 times.
cjson encode     Elapsed:   4.262157s
capnp encode     Elapsed:   0.053436s
cjson decode     Elapsed:   4.290664s
Segmentation fault (core dumped)

@calio Can you please help?