From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5051 invoked by alias); 19 Nov 2014 16:19:08 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 5021 invoked by uid 48); 19 Nov 2014 16:19:07 -0000 From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug gdb/17626] New: attach, detach, attach did not work Date: Wed, 19 Nov 2014 16:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q4/txt/msg00287.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=17626 Bug ID: 17626 Summary: attach, detach, attach did not work Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: tromey at sourceware dot org I'm debugging firefox in "electrolysis" mode, where it has two processes. I used git gdb from a couple weeks ago. First I attached to the parent process. This went fine: (gdb) attach 8126 Attaching to process 8126 Reading symbols from /home/tromey/firefox-git/gecko-dev/obj-x86_64-unknown-linux-gnu/dist/bin/firefox...done. [...lots more...] 0x00007facdb22c71d in poll () at ../sysdeps/unix/syscall-template.S:81 Now I detach immediately and try to attach to the child: (gdb) detach Detaching from program: /home/tromey/firefox-git/gecko-dev/obj-x86_64-unknown-linux-gnu/dist/bin/firefox, process 8126 [Inferior 8126 detached] (gdb) attach 8189 Attaching to program: /home/tromey/firefox-git/gecko-dev/obj-x86_64-unknown-linux-gnu/dist/bin/firefox, process 8189 Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/usr/lib64/ld-2.18.so.debug...done. done. Loaded symbols for /lib64/ld-linux-x86-64.so.2 0x00007f573f1f171d in ?? () gdb can't find the threads or do a stack trace: (gdb) info thr Id Target Id Frame * 1 process 8189 "Web Content" 0x00007f573f1f171d in ?? () (gdb) bt #0 0x00007f573f1f171d in ?? () #1 0x0000000000000000 in ?? () However, if I quit gdb and attach to the child, it works. (gdb) attach 8189 Attaching to process 8189 Reading symbols from /home/tromey/firefox-git/gecko-dev/obj-x86_64-unknown-linux-gnu/dist/bin/plugin-container...done. [...lots more...] -- You are receiving this mail because: You are on the CC list for the bug.