Coder Social home page Coder Social logo

cluacov's People

Contributors

mpeterv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cluacov's Issues

bug: luajit2.1 compiled with gc64 mode cause segment fault

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.