Wind River Support Network

HomeDefectsLIN6-3745
Fixed

LIN6-3745 : [Feature Testing][networking]on cgl intel-atom, gdb debug mthread binary fail with "internal-error: linux_ptrace_test_ret_to_nx: Assertion `WIFSTOPPED (status)' failed."

Created: Jan 23, 2013    Updated: Mar 10, 2016
Resolved Date: Dec 4, 2013
Previous ID: LIN5-651, LIN6-2990
Found In Version: 6.0
Fix Version: 6.0
Severity: Severe
Applicable for: Wind River Linux 6
Component/s: Toolchain

Description

Problem Description
======================
on cgl intel-atom, gdb debug mthread binary fail with "internal-error: linux_ptrace_test_ret_to_nx: Assertion `WIFSTOPPED (status)' failed."
mthread binary is build and installed by package gen-coredump, this package
included in layers/wr-cgp/cgp/recipes-cut/gen-coredump/

Expected Behavior
======================
debug mthread binary with gdb success.

Observed Behavior
======================
$ gdb /opt/cut/bin/mthread
GNU gdb (Wind River Linux Sourcery CodeBench 4.6a-98) 7.4.50.20120716-cvs
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-wrs-linux-gnu".
For bug reporting instructions, please see:
<support@windriver.com>...
Reading symbols from /opt/cut/bin/mthread...done.
(gdb) break alone
Breakpoint 1 at 0x80485d0: file mthread.c, line 35.
(gdb) run
Starting program: /opt/cut/bin/mthread
/wrs/4.6a/ia32/obj/gdb-target-src-4.6a-98-i686-wrs-linux-gnu/default/gdb/common/linux-ptrace.c:117: internal-error: linux_ptrace_test_ret_to_nx: Assertion `WIFSTOPPED (status)' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) -----

Steps to Reproduce

1. Build with bellow options
--enable-kernel=cgl --enable-rootfs=glibc_cgl --with-layer=../wr-testing/networking/,../wr-testing/cgl --with-template=feature/analysis,feature/debug --enable-build=profiling
2. Execute bellow command on target
root@localhost:~# gdb /opt/cut/bin/mthread
(gdb) break alone
(gdb) run 
Live chat
Online