[Bug 212607] devel/gdb: debugging threaded process broken

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Nov 14 22:57:51 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212607

Javier Bizcocho <volkovdablo at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |volkovdablo at gmail.com

--- Comment #3 from Javier Bizcocho <volkovdablo at gmail.com> ---
Hello there,
Unfortunately I'm having exactly the same issue.

I have two computers, one with FreeBSD 11.0-RELEASE-p1 (amd64) <Where I found
the error>, and a laptop with 10.3-RELEASE FreeBSD 10.3-RELEASE (i386) <I tried
few times, but I cannot reproduce the issue>

Also, I tried to use -lthr, -lpthread and -pthread, but it seems that the real
implementation underneath is libthr.

I'm willing to give a hand if it's necessary.

After some testing I can conclude:

- GDB 6.6 works without problem, although it's using libthread_db.so to manage
threads.

- GDB 7.x it's using a different implementation, and it's no longer using
libthread_db.so, but using ptrace directly (specially after the last addition
for LWP events).

- Initially I discarded problems in the kernel, because GDB 6.6 was working,
but now that I realized that they use different paths I'm not sure, maybe the
new LWP code is broken.

- I tried vanillas GDB from elsewhere, same exact problem.

If I can help in anyway just let me know.

Cheers,

Javi.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list