HomeDefectsLIN9-8166
Fixed

LIN9-8166 : gdb attach fails for a process in RCPL 28

Created: Mar 4, 2019    Updated: May 18, 2019
Resolved Date: Apr 19, 2019
Previous ID: LIN8-10566
Found In Version: 9.0.0.19
Fix Version: 9.0.0.21
Severity: Severe
Applicable for: Wind River Linux 9
Component/s: Toolchain, Userspace

Description

On the PPC, gdb attach <call control process id> fails from RCPL28

(gdb) attach 1042
Attaching to program: /sysro/call_control, process 1042
warning: Corrupted shared library list: 0x0 != 0xdce3bd48
warning: Corrupted shared library list: 0x0 != 0xdce3bd48
Reading symbols from /lib/ld.so.1...Reading symbols from /lib/.debug/ld-2.22.so...done.
done.
Failed to read a valid object file image from memory.
0x0f778fbc in ?? ()
(gdb)

This was working with RCPL 27.

Please resolve this asap as whole development is affected by this.

Steps to Reproduce

$ configure --enable-kernel=standard --enable-rootfs=glibc-small --enable-board=qemuppc --with-package=gdb 

$ make start-target

Terminal 1:

$ gdb test_detach
(gdb)

Terminal 2:
root@myppc:/sysro# ./test_detach
Starting. Pid: 1143
Sleep 0
Sleep 1
Sleep 2
Sleep 3
Sleep 4
Sleep 5

Terminal 1:
(gdb) att 1143
Attaching to program: /sysro/test_detach, process 1143
warning: Error reading shared library list entry at 0x6f747479
warning: Error reading shared library list entry at 0x6f747479
Reading symbols from /lib/ld.so.1...Reading symbols from /lib/.debug/ld-2.22.so...done.
done.
0x00003fff7eecb160 in __nanosleep_nocancel () at ../sysdeps/unix/syscall-template.S:84
84	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
(gdb) c
continuing

press CTRL C twice

(gdb) detach

Can't detach Thread 0x34d30140 (LWP 1737): No such process 

Terminal 2:
Sleep 6
Sleep 7
Sleep 8
Sleep 9
Ending