mpeterv / cluacov Goto Github PK
View Code? Open in Web Editor NEWC extensions for LuaCov
License: Other
C extensions for LuaCov
License: Other
Hi @mpeterv , thanks for sharing this extension, I ran into a segment fault problem with luajit2.1 compiled with gc64 mode.
luajit version
$ luajit -v
LuaJIT 2.1.0-beta3 -- Copyright (C) 2005-2020 Mike Pall. https://luajit.org/
deepactivelines.so
complied command
gcc -O2 -fPIC -I/usr/local/openresty/luajit/include/luajit-2.1 -c src/cluacov/deepactivelines.c -o src/cluacov/deepactivelines.o
gcc -shared -o cluacov/deepactivelines.so src/cluacov/deepactivelines.o
recompiled deepactivelines.so
with -g
option, got the following backtrace:
#0 0x00007f41af8901d4 in add_activelines (L=L@entry=0x7f41af85b380, proto=0xf66ffbf) at src/cluacov/deepactivelines.c:58
58 const void *lineinfo = proto_lineinfo(proto);
Missing separate debuginfos, use: debuginfo-install libgcc-4.8.5-28.el7_5.1.x86_64
(gdb) bt
#0 0x00007f41af8901d4 in add_activelines (L=L@entry=0x7f41af85b380, proto=0xf66ffbf) at src/cluacov/deepactivelines.c:58
#1 0x00007f41af890342 in l_deepactivelines (L=0x7f41af85b380) at src/cluacov/deepactivelines.c:97
#2 0x0000000000407ec2 in lj_BC_FUNCC ()
#3 0x000000000040a5ff in gc_call_finalizer (g=g@entry=0x7f41af85b3f0, L=L@entry=0x7f41af85b380, mo=<optimized out>,
o=o@entry=0x7f41af865b60) at lj_gc.c:511
#4 0x000000000040a765 in gc_finalize (L=L@entry=0x7f41af85b380) at lj_gc.c:558
#5 0x000000000040be48 in lj_gc_finalize_udata (L=L@entry=0x7f41af85b380) at lj_gc.c:565
#6 0x0000000000414591 in cpfinalize (L=0x7f41af85b380, dummy=<optimized out>, ud=<optimized out>) at lj_state.c:272
#7 0x00000000004082b8 in lj_vm_cpcall ()
#8 0x0000000000414a24 in lua_close (L=0x7f41af85b380) at lj_state.c:298
#9 0x0000000000404df8 in main (argc=3, argv=<optimized out>) at luajit.c:584
I seems that luajit crashed at proto_lineinfo
, does this releated to my luajit gc64 mode?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.