Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

semantic error: unable to find member 'strmask' for struct global_State #52

Open
billnote opened this issue Feb 3, 2021 · 1 comment

Comments

@billnote
Copy link

billnote commented Feb 3, 2021

Environment:
OS: centos 7
OpenResty: version: 1.19.3.1; build: ./configure --with-debug --without-luajit-gc64

Error info:

# ./samples/lj-gc-objs.sxx -x 22086
Found exact match for libluajit: /usr/local/openresty/luajit/lib/libluajit-5.1.so.2.1.0
semantic error: while processing function luajit_objlen

semantic error: unable to find member 'strmask' for struct global_State (alternatives: hookmask, vmevmask, str, strempty, gc, jit_base, tmptv, wrapf, stremptyz, vmstate, hookf, panic, prng, tmpbuf, tmptv2, cur_L, gcroot, registrytv, uvhead, allocd, allocf, hookcstart, ctype_state, nilnode, mainthref, saved_jit_base, dispatchmode, hookcount, bc_cfunc_ext, bc_cfunc_int): operator '->' at stapxx-AieXDJJg/luajit.stp:62:106
        source: @define sizeof_ptr %( &@cast(0, "global_State", "/usr/local/openresty/luajit/lib/libluajit-5.1.so.2.1.0")->strmask %)
                                                                                                                         ^
	in expansion of macro: operator '@sizeof_ptr' at stapxx-AieXDJJg/luajit.stp:295:18
        source:             sz = @sizeof_ptr
                                 ^
@billnote
Copy link
Author

billnote commented Feb 4, 2021

The reason for this problem is that Luajit changed the structure of the global_State struct. This pr can fix this problem: #53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant