5 digit pids fail to trace #2

dknecht opened this Issue Apr 4, 2013 · 2 comments


None yet
2 participants

dknecht commented Apr 4, 2013

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


agentzh commented Apr 4, 2013


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,

dknecht commented Apr 4, 2013

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

@dknecht dknecht closed this Apr 4, 2013

agentzh added a commit that referenced this issue Apr 4, 2013

bugfix: when special chars appear in the nginx path, ngx-sample-bt, n…
…gx-sample-lua-bt and ngx-pcrejit will run bad shell commands. thanks Dane Knecht for reporting the issue in #2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment