想补充一下:在使用ngx-lua-shdict-info.sxx脚本时,发现负载高的话也同样会报错误
$ sudo ./stap++ samples/ngx-lua-shdict-info.sxx -x 9742 --arg dict=kv_api_root_upstream --skip-badvars
ERROR: user string copy fault -14 at (null) [man error::fault] near identifier 'user_string_n' at /usr/share/systemtap/tapset/uconversions.stp:120:10
Start tracing 9742 (/data1/zhendong/openresty-1.9.7.4/build/nginx-1.9.7/objs/nginx)
WARNING: Number of errors: 1, skipped probes: 0
WARNING: /usr/bin/staprun exited with status: 1
Pass 5: run failed. [man error::pass5]
我采用的是最新的openresty-1.9.7.4,编译参数是 CFLAGS="-gdwarf-2 -O0" ./configure