[Bug gdb/25410] New: Re-running second inferior fails with "td_ta_new failed: generic error"

simark at simark dot ca sourceware-bugzilla@sourceware.org
Fri Jan 17 15:12:00 GMT 2020


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

            Bug ID: 25410
           Summary: Re-running second inferior fails with "td_ta_new
                    failed: generic error"
           Product: gdb
           Version: 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: simark at simark dot ca
  Target Milestone: ---

This fails since the multi-target patch (5b6d1e4fa "Multi-target support).

Starting a first inferior, then trying to run a second inferior twice, gives
this:

(gdb) file /tmp/foo
Reading symbols from /tmp/foo...
(gdb) start
Temporary breakpoint 1 at 0x4004da: file /tmp/foo.c, line 1.
Starting program: /tmp/foo 
a
Temporary breakpoint 1, main () at /tmp/foo.c:1
1       int main() { return 0; }
(gdb) add-inferior -exec /bin/ls
[New inferior 2]
Added inferior 2 on connection 1 (native)
Reading symbols from /bin/ls...
(No debugging symbols found in /bin/ls)
(gdb) inferior 2
[Switching to inferior 2 [<null>] (/bin/ls)]
(gdb) run /
Starting program: /bin/ls /
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
bin   etc         initrd.img.old  lib64       media  proc  sbin  tmp  vmlinuz
boot  home        lib             libx32      mnt    root  srv   usr 
vmlinuz.old
dev   initrd.img  lib32           lost+found  opt    run   sys   var
[Inferior 2 (process 23086) exited normally]
(gdb) run /
Starting program: /tmp/foo /
warning: td_ta_new failed: generic error
[Inferior 2 (process 23087) exited normally]


We would expect the second "run /" to run ls again, listing the files in /.

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


More information about the Gdb-prs mailing list