[Bug threads/26286] FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 1: break at break_fn: 1 (SIGTRAP)

ianchi at andestech dot com sourceware-bugzilla@sourceware.org
Mon Aug 31 07:54:19 GMT 2020


https://sourceware.org/bugzilla/show_bug.cgi?id=26286

Chungyi Chi <ianchi at andestech dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ianchi at andestech dot com

--- Comment #3 from Chungyi Chi <ianchi at andestech dot com> ---
It is not a bug but security issue. Due to ptrace protection, if you wanna
attach another process without "parent-child relationship", it is illegal
behavior.

There are two different way to solve this issue.
1. Execute under root level
2. Set "/proc/sys/kernel/yama/ptrace_scope" into 0.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list