Wind River Support Network

HomeDefectsLIN6-9873
Fixed

LIN6-9873 : CLONE - thread can not ptrace other thread in the same process

Created: May 11, 2015    Updated: Dec 3, 2018
Resolved Date: May 17, 2015
Found In Version: 6.0.0.18
Fix Version: 6.0.0.21
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Kernel

Description

thread can not ptrace other thread in the same process

Steps to Reproduce

1.create and build a project: 
/WindRiver-4.3/wrlinux-4/wrlinux/../ldat/configure --enable-board=common_pc_64 --enable-rootfs=glibc_std --enable-kernel=standard --with-product-dir=/WindRiver-4.3/wrlinux-4/wrlinux

2. boot wrlinux

3.add a user in wrlinux and get its UID

4.modify parameter of 'setuid' to UID of user added before in 'test.c' attached.

5.compiile 'test.c'

6.run test in wrlinux, it will print 'thread 667's pc = 0x00000000', it means a thread can not get pc of other thread.

Other Downloads


Live chat
Online