pai icon indicating copy to clipboard operation
pai copied to clipboard

Add --cap-add=SYS_PTRACE for debug purpose

Open Binyang2014 opened this issue 5 years ago • 2 comments

In some situation, user job will hang and need to attach the process the debug this issue. Currently, in container, we cannot using gdb to atttach the process due to ptrace not allowed.

Consider to add --cap-add=SYS_PTRACE to allow gdb attach, Need to investigate this capability

https://stackoverflow.com/questions/19215177/how-to-solve-ptrace-operation-not-permitted-when-trying-to-attach-gdb-to-a-pro

Binyang2014 avatar Apr 14 '21 07:04 Binyang2014

it was a feature in #2334

abuccts avatar Apr 14 '21 13:04 abuccts

Thanks, seems we should add this back

Binyang2014 avatar Apr 15 '21 02:04 Binyang2014