Date: Mon, 29 Jun 2015 18:43:43 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 201207] devel/gdb: Duplicate thread listing when attaching to running multithreaded program Message-ID: <bug-201207-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201207 Bug ID: 201207 Summary: devel/gdb: Duplicate thread listing when attaching to running multithreaded program Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: eric@badgerio.us CC: luca.pizzamiglio@gmail.com Flags: maintainer-feedback?(luca.pizzamiglio@gmail.com) CC: luca.pizzamiglio@gmail.com Created attachment 158169 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=158169&action=edit Simple 2 threaded program This was discussed somewhat in Bug 201149, but not fully resolved there, so I'm writing up this PR to keep track of the issue. Attaching to a program with multiple threads results in a duplicate listing like below: (gdb) info threads Id Target Id Frame 3 Thread 801406400 (LWP 101466 main) 0x0000000800b648ba in nanosleep () from /lib/libc.so.7 * 2 Thread 801406800 (LWP 100123 otherthread) 0x0000000800b648ba in nanosleep () from /lib/libc.so.7 * 1 Thread 801406800 (LWP 100123 otherthread) 0x0000000800b648ba in nanosleep () from /lib/libc.so.7 Attached the test program used for the above demonstration. I proposed a patch in Bug 201149, but it sounds like jhb@ has a more complete patch. -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-201207-13>