delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=qx4P6vdT0XQMesqP2RpJvlg2Vt0qxyXTP7Xgsdk5v2V+dNV2fn141 | |
zoq8BAhR3Wda0UXJ+r8vk6ddcxqKUVBVEV4RXK/Q37Vzmbn/sSLgQUedSbhYqcoZ | |
rR0CSvfl6laduSYOnjGc2RTgieImjsDUH21apmtZ3nEH7vPU2xJnEA= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=+/+jH9AjuE5WU2HIxn/HAxqlf80=; b=iFQaIu3xbW+qmKw/agnb2rDyi0J4 | |
55k7I9jkoOOqPtQX6v9ZzSsx5CF80FMCWvFV7pHNYxbhsZZ3cGSwuqlkZb/HwpRw | |
HX63WG4cuXC6AiDYsXj2JHUzTZGyxPx5VeoNnxXXR7qFhJSr+ghplvTqJ3E4ZSZA | |
xgN4yYcXdpnFhGE= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 |
X-HELO: | calimero.vinschen.de |
Date: | Mon, 20 Oct 2014 21:03:50 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Threads |
Message-ID: | <20141020190350.GB32374@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <54450835 DOT 3050602 AT cornell DOT edu> <20141020164324 DOT GA32374 AT calimero DOT vinschen DOT de> |
MIME-Version: | 1.0 |
In-Reply-To: | <20141020164324.GA32374@calimero.vinschen.de> |
User-Agent: | Mutt/1.5.23 (2014-03-12) |
--hHWLQfXTYDoKhP50 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Oct 20 18:43, Corinna Vinschen wrote: > On Oct 20 09:03, Ken Brown wrote: > > When trying to debug emacs in gdb, I see several threads, but it's not > > always clear who created those threads and what they're doing. As an > > example, I attached gdb to an emacs-X11 process (running under X) short= ly > > after starting it, and I obtained the backtrace appended at the end of = this > > message. > >=20 > > I assume Thread 12 was created by gdb. > [...] > > I don't > > have any idea where the other threads came from. Presumably at least o= ne of > > them was created by Glib. > >=20 > > The situation is similar with emacs-w32 and emacs-nox, but with fewer t= hreads. > >=20 > > In general, is there a way I can understand where all the threads come = from? >=20 > There's no simple generic way to do that, afaik. >=20 > One big problem is to have all the symbols. You should definitely > install the debuginfo packages of all potentially affected packages, not > only cygwin-debuginfo. If you want to find out where threads are called > from the application, you might get a clue by running emacs under GDB and > set a breakpoint to pthread_create. Btw., I don't know if that helps, but the function names of native Windows functions given in the GDB backtrace may be off because GDB doesn't have access to the Windows DLL symbol tables. If you want to analyze the stacks from that side, you should install WinDbg(*) and the symbol files for your OS(**). If you start the process from WinDbg, you can better see the Windows functions called from these threads, while not getting any info about the functions from inside the application or the Cygwin DLLs. HTH, Corinna (*) http://msdn.microsoft.com/en-us/windows/hardware/hh852365.aspx (**) http://msdn.microsoft.com/en-us/windows/hardware/gg463028.aspx --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --hHWLQfXTYDoKhP50 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJURVyWAAoJEPU2Bp2uRE+gXEYP/itvaGJyUs2LTYzoSAHSQE0q f8AokSPROu94XAjMonqBSsdn9PlGGpzNCoZk/FLl9gu1YVy2QjKqhWjRRJUHIJ0p Y/5UC4KbnlIQ3yJwazXyLd5WGbYF7LT0U+050XfS4AFQXQqLVY+GMflMLp6ZDlV/ POevPzw4zOCfRpuUa8NGLIbqsEV2XdL0NxdwntUxNC2YluTQvp0aHiSh1WawaaH0 dmaB4yOGfCxYhAKLRVfV8PkN3sqBz+vwdE46PiKPqHaP2BOBrMfej9Zi9mLbeLCG 4dnF3gouENe0zqElETgtnS6oQQ6A5FfXqi9gpCABGjxViIOWFOXx0bpax5dIFlZ7 NYpLD4/hGKj176vd8HyXN8sGHlnrinCeaKasSQrvWCQFKCpxklX1pEyLUyuFi8nw w3Xjz3C4Lw3bmJxfgu8Dr1pSEtswMFQcL2I5aLEGwAYvRRBR+f4x8F1qMOu4PZ3Z PYlawqZ0i+TkK3FmbfkGjhApcJyvT0V0oI/Rt32DDm+dJqdxWRaiTkkfPbcsuhwT kDJY0nzQBcgkmH4YIRO6yZulSwo6P/0nO+T7XNtKADY1LVqd0+B+hUdnF4pa9/Pf uiLc4ZYn5xm3kVnaojRCtMGNNRKDyqy4hPK8Oa2M587uNEQCzkYGuDpIHt3IX4XW apWHCSvI9QMDbC9hrzWs =9ljn -----END PGP SIGNATURE----- --hHWLQfXTYDoKhP50--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |