Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Nov 2016 22:57:50 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 212607] devel/gdb: debugging threaded process broken
Message-ID:  <bug-212607-13-LGuH8vp3k1@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-212607-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-212607-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212607

Javier Bizcocho <volkovdablo@gmail.com> changed:

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

--- Comment #3 from Javier Bizcocho <volkovdablo@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 fou=
nd
the error>, and a laptop with 10.3-RELEASE FreeBSD 10.3-RELEASE (i386) <I t=
ried
few times, but I cannot reproduce the issue>

Also, I tried to use -lthr, -lpthread and -pthread, but it seems that the r=
eal
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 man=
age
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 additi=
on
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 t=
he
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.

--=20
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-212607-13-LGuH8vp3k1>