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

Potential type mismatch in reassignment: identifier 'base' at stapxx-P7ZBdo6Z/luajit.stp:756:13 #54

Open
jianhuang0 opened this issue Mar 26, 2021 · 0 comments

Comments

@jianhuang0
Copy link

openresty Version
root@timerserver-1:/home/game/flame-graph# dpkg -l | grep openresty
ii openresty 1.11.2.5-3xenial1 amd64 core server of OpenResty for production use
ii openresty-dbgsym 1.11.2.5-3
xenial1 amd64 Debug symbols of OpenResty packages
ii openresty-openssl 1.1.0l-2xenial1 amd64 OpenSSL library for use by OpenResty ONLY
ii openresty-pcre 8.44-1
xenial1 amd64 Perl-compatible regular expression library for use by OpenResty ONLY
ii openresty-zlib 1.2.11-3~xenial1 amd64 The zlib compression library for use by Openresty ONLY

systemtap Version
systemtap-4.4

  • ./stapxx/samples/lj-lua-stacks.sxx --arg time=5 --skip-badvars -x 7271 -v
    Found exact match for libluajit: /usr/local/openresty/luajit/lib/libluajit-5.1.so.2.1.0
    Pass 1: parsed user script and 483 library scripts using 106208virt/78800res/5468shr/73636data kb, in 320usr/80sys/730real ms.
    WARNING: Potential type mismatch in reassignment: identifier 'base' at stapxx-P7ZBdo6Z/luajit.stp:756:13
    source: base = @cast(L, "lua_State", "/usr/local/openresty/luajit/lib/libluajit-5.1.so.2.1.0")->base
    ^
    WARNING: Potential type mismatch in reassignment: identifier 'base' at :731:9
    source: base = @cast(g, "global_State", "/usr/local/openresty/luajit/lib/libluajit-5.1.so.2.1.0")->jit_base->ptr32
    ^
    WARNING: Potential type mismatch in reassignment: identifier 'base' at :732:14
    source: if (!base) {
    ^
    WARNING: Potential type mismatch in reassignment: identifier 'base' at :736:48
    source: bt .= luajit_debug_dumpstack(L, T, 30, base, simple)
    ^
    Pass 2: analyzed script: 4 probes, 65 functions, 1 embed, 3 globals using 126448virt/100716res/6828shr/93876data kb, in 1420usr/60sys/1485real ms.
    Pass 3: translated to C into "/tmp/stapTZR3cy/stap_8e73193dcf65c6fb95823e31de80d924_20698_src.c" using 126448virt/101004res/7112shr/93876data kb, in 170usr/190sys/446real ms.
    Pass 4: compiled C into "stap_8e73193dcf65c6fb95823e31de80d924_20698.ko" in 4760usr/1200sys/5180real ms.
    Pass 5: starting run.
    WARNING: Start tracing 7271 (/usr/local/openresty/nginx/sbin/nginx)
    WARNING: Please wait for 5 seconds...
    WARNING: Time's up. Quitting now...
    WARNING: Found 0 JITted samples.
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