From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Popineau Newsgroups: gmane.emacs.devel Subject: Re: Emacs-26 threads problem [win64] Date: Tue, 10 Oct 2017 22:14:58 +0200 Message-ID: References: <83h8v7r02e.fsf@gnu.org> <83vajnotik.fsf@gnu.org> <83r2ubosnd.fsf@gnu.org> <83fuaqpzaq.fsf@gnu.org> <837ew2pxx9.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f403043788744aec37055b36f7ec" X-Trace: blaine.gmane.org 1507666535 31448 195.159.176.226 (10 Oct 2017 20:15:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 10 Oct 2017 20:15:35 +0000 (UTC) Cc: Emacs developers To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 10 22:15:29 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e20w3-0007HS-Pb for ged-emacs-devel@m.gmane.org; Tue, 10 Oct 2017 22:15:27 +0200 Original-Received: from localhost ([::1]:37005 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e20wB-00051x-3o for ged-emacs-devel@m.gmane.org; Tue, 10 Oct 2017 16:15:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e20vy-00051s-G2 for emacs-devel@gnu.org; Tue, 10 Oct 2017 16:15:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e20vx-0003Qq-7N for emacs-devel@gnu.org; Tue, 10 Oct 2017 16:15:22 -0400 Original-Received: from mail-qt0-x22e.google.com ([2607:f8b0:400d:c0d::22e]:45913) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e20vv-0003PE-KZ; Tue, 10 Oct 2017 16:15:19 -0400 Original-Received: by mail-qt0-x22e.google.com with SMTP id p1so17687853qtg.2; Tue, 10 Oct 2017 13:15:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=M8x+INbkZpVwl/rybpZF76/PYZNL2xlB9QeE9P2JKOk=; b=pfLadxIqqztJKhblkuk7SGdmD6qJ2zyH948BMBdbZxHG0eV8dPVUPS2suYIuboSo3U RaDrsM268JLnrqt6r23ViJBd7miWrRaikwh1DUUvyTbm2moo5J6qThXcgBunpmcuepJw pV94j2VcPsAVSmX9PCJ/XUuwpUP65wUNi7rARYCR0OvWFZELT37ayt9tV6vh/2fp0EGQ JDfpsseH8/tCDpnKtJuhCi4093Fbh4rIEd8nGughfwnwLq7J1LKNhIucT99h6JAzGblJ d2HaeotjtcJ8HQ8LkcJu3nxoFenwzJQlyM/+CwudmSzriCUDzMvEJ0bMPDKT+s22qRQ0 DChw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=M8x+INbkZpVwl/rybpZF76/PYZNL2xlB9QeE9P2JKOk=; b=L02bEbWYxZwWxmdPEjBKStwyz04jmvZ5FgRljyoy9uU1Y5l/kvuFl7/XnUMCFxi/Ko cMsuAY87y0ysHhHj+QLR4hdfsbbh75Y3vzgUthlx386ujeMKiH+72EKrsVTjVAUts5B3 +vnD8cJXwVOgsQ+c8lP2rdimxKohy33OG5hQIzMZ5pNtMBZNfGBD/iafWBmxGUvu3lBi Fa8Y/15N5YaHAsGiGYdT2FieAj4Z5ZEtQ38T9M6ZpwSHijb5PTklQlPOAaf7aMnFLo3v zrTRDKNTttwYXpbtPZ7TuvzhEz97jfyp7P6dXI2Q2LAnNLZcK2zNHMxAm/7/U7XBSioI dyCA== X-Gm-Message-State: AMCzsaVbTBvuzaDxkJeQGlUQauQ0GtJnVdAE4cSXeh5nDiTYZbdG5wC8 t8+aslkZNqZIFJwNMkfpaQ896XndopG87/FoUKE= X-Google-Smtp-Source: AOwi7QBMGn8zyTz943vNRpSWJccLWo8FZqE5kXYaDeF6n57BEeikf9rHCd/XBRRdceJMSny0HwGTpkznwVc96UKNp20= X-Received: by 10.200.4.37 with SMTP id v37mr11414335qtg.313.1507666518792; Tue, 10 Oct 2017 13:15:18 -0700 (PDT) Original-Received: by 10.140.94.2 with HTTP; Tue, 10 Oct 2017 13:14:58 -0700 (PDT) In-Reply-To: <837ew2pxx9.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::22e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:219361 Archived-At: --f403043788744aec37055b36f7ec Content-Type: text/plain; charset="UTF-8" 2017-10-10 22:09 GMT+02:00 Eli Zaretskii : > > From: Fabrice Popineau > > Date: Tue, 10 Oct 2017 21:58:35 +0200 > > Cc: Emacs developers > > > > Does the problem go away if you insert at the beginning of each test a > > loop like this: > > > > (while (> (length (all-threads)) 1) > > (sleep-for 0.1)) > > > > This makes all the 28 tests pass. > > And the address of stack_pos doesn't grow anymore? > Yes, it still does. Apparently not out of bounds, because I have run the tests several times. > > > A bit scary though. > > Why scary? > I don't like to be at the whim of such a waiting loop before being able to run another thread. --f403043788744aec37055b36f7ec Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


2017-10-10 22:09 GMT+02:00 Eli Zaretskii <eliz@gnu.org>:
=
> From: Fabrice Popineau <fabrice.popineau@gmail.com>
> Date: Tue, 10 Oct 2017 21:58:35 +0200
> Cc: Emacs developers <emacs-= devel@gnu.org>
>
>=C2=A0 Does the problem go away if you insert at the b= eginning of each test a
>=C2=A0 loop like this:
>
>=C2=A0 (while (> (length (all-threads)) 1)
>=C2=A0 (sleep-for 0.1))
>
> This makes all the 28 tests pass.

And the address of stack_pos doesn't grow anymore?

Yes, it still does. Apparently not out of bounds, be= cause I have run the tests several times.=C2=A0

> A bit scary though.

Why scary?

I don't like to be at th= e whim of such a waiting loop before being able to run another thread.

--f403043788744aec37055b36f7ec--