openresty/openresty-systemtap-toolkit

5 digit pids fail to trace

dknecht opened this issue · 2 comments

/ngx-sample-lua-bt -p 22675 --luajit20 -t 60
sh: Syntax error: "(" unexpected

Hello!

On Thu, Apr 4, 2013 at 3:16 PM, dknecht notifications@github.com wrote:

/ngx-sample-lua-bt -p 22675 --luajit20 -t 60
sh: Syntax error: "(" unexpected

Are you sure it is the 5-digit pid that is causing this error?

I just tried a 5-digit pid on my side with ngx-sample-lua-bt but could not
reproduce your problem:

$ ./ngx-sample-lua-bt -p 28120 -t 10 --luajit20 > a.bt
WARNING: Tracing 28120

(/home/agentzh/git/lua-nginx-module/work/nginx/sbin/nginx) for LuaJIT 2.0...
WARNING: Time's up. Quitting now...

Best regards,
-agentzh

It appears this was because of binary upgrade and original binary had been deleted.