Hi, i don’t find suse bug report URL, post here wish some one help me.
$ gdb -v
GNU gdb (GDB; SUSE Linux Enterprise 12) 7.11.1
$ cat t.c
#include <stdio.h>
#include <string.h>
#include <unistd.h>
main()
{
char* exec_args[]={"/bin/ls", “ppp”, NULL};
execve(exec_args[0], exec_args, NULL);
}
$ gcc -g t -o t.c
$ gdb t
(gdb) catch exec
Catchpoint 1 (exec)
(gdb) set follow-exec-mode new
(gdb) start
Temporary breakpoint 2 at 0x400545: file t.c, line 6.
Starting program: /tmp/t
Temporary breakpoint 2, main () at t.c:6
6 char* exec_args[]={"/bin/ls", “ppp”, NULL};
(gdb) c
Continuing.
process 27690 is executing new program: /usr/bin/ls
[New process 27690]
Thread 2.1 “ls” hit Catchpoint 1 (exec’d /usr/bin/ls), 0x00007ffff7ddd150 in _start () from /lib64/ld-linux-x86-64.so.2
Missing separate debuginfos, use: zypper install coreutils-debuginfo-8.25-12.8.x86_64
(gdb) info prog
…/…/gdb/thread.c:982: internal-error: is_thread_state: Assertion `tp’ failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.