From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.bugs Subject: bug#30106: Loading file /sources/emacs/lisp/emacs-lisp/ert.elc failed to provide feature `mod-test' Date: Wed, 17 Jan 2018 18:32:24 +0000 Message-ID: References: <20180114063602.GA9234@protected.rcdrun.com> <83zi5gzalr.fsf@gnu.org> <20180114174748.GA12223@protected.rcdrun.com> <83shb8z0lz.fsf@gnu.org> <20180114221228.GA17422@protected.rcdrun.com> <833737z2jy.fsf@gnu.org> <20180115185533.GA6309@protected.rcdrun.com> <836081y8ra.fsf@gnu.org> <20180116191855.GB18155@protected.rcdrun.com> <83mv1cwl82.fsf@gnu.org> <20180117170310.GA31570@protected.rcdrun.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1516213953 3820 195.159.176.226 (17 Jan 2018 18:32:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 17 Jan 2018 18:32:33 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.91 (windows-nt) To: 30106@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 17 19:32:29 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1ebsVP-0008EL-6M for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Jan 2018 19:32:11 +0100 Original-Received: from localhost ([::1]:53791 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebsXP-0001xi-6s for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Jan 2018 13:34:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36102) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebsXI-0001x8-Cu for bug-gnu-emacs@gnu.org; Wed, 17 Jan 2018 13:34:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebsXC-0004cq-OL for bug-gnu-emacs@gnu.org; Wed, 17 Jan 2018 13:34:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52582) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ebsXC-0004cf-LL for bug-gnu-emacs@gnu.org; Wed, 17 Jan 2018 13:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ebsXC-0001OE-EX for bug-gnu-emacs@gnu.org; Wed, 17 Jan 2018 13:34:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <20180114063602.GA9234@protected.rcdrun.com> Resent-From: Andy Moreton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Jan 2018 18:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30106 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15162140115301 (code B ref -1); Wed, 17 Jan 2018 18:34:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Jan 2018 18:33:31 +0000 Original-Received: from localhost ([127.0.0.1]:60479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ebsWh-0001NR-8g for submit@debbugs.gnu.org; Wed, 17 Jan 2018 13:33:31 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44979) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ebsWg-0001ND-6R for submit@debbugs.gnu.org; Wed, 17 Jan 2018 13:33:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebsWa-000498-Ay for submit@debbugs.gnu.org; Wed, 17 Jan 2018 13:33:25 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:36999) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ebsWa-00048w-73 for submit@debbugs.gnu.org; Wed, 17 Jan 2018 13:33:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35950) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebsWZ-0001qN-79 for bug-gnu-emacs@gnu.org; Wed, 17 Jan 2018 13:33:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebsWU-000426-Oa for bug-gnu-emacs@gnu.org; Wed, 17 Jan 2018 13:33:23 -0500 Original-Received: from [195.159.176.226] (port=35456 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ebsWU-0003zS-Hw for bug-gnu-emacs@gnu.org; Wed, 17 Jan 2018 13:33:18 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1ebsU7-0003tQ-EU for bug-gnu-emacs@gnu.org; Wed, 17 Jan 2018 19:30:51 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 41 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:Xsg9Y6xAU/d3+mLDUmm0GZXUYHw= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:142229 Archived-At: On Wed 17 Jan 2018, Jean Louis wrote: > On Wed, Jan 17, 2018 at 05:36:45PM +0200, Eli Zaretskii wrote: >> > Date: Tue, 16 Jan 2018 22:18:55 +0300 >> > From: Jean Louis >> > Cc: 30106@debbugs.gnu.org >> > >> > > in_current_thread (void) >> > > { >> > > if (current_thread == NULL) >> > > return false; >> > > #ifdef HAVE_PTHREAD >> > > return pthread_equal (pthread_self (), current_thread->thread_id); >> > > #elif defined WINDOWSNT >> > > return GetCurrentThreadId () == current_thread->thread_id; >> > > #endif >> > > } >> > > >> > > So either current_thread is NULL in your case, or pthread_equal >> > > returns false. Can you tell which one of these happens? >> > >> > I cannot test it myself on my own. You may tell me >> > what to do, to test it. >> >> Apply the patch below, rebuild Emacs, rerun the test, and see if >> there's the telltale "current_thread is NULL" >> message in the log. > > I have done that, I did not see during "make > check" the line "current_thread is NULL", and I am > attaching the output from "make check". Looking at the log you supplied: CCLD data/emacs-module/mod-test.so ELC src/emacs-module-tests.elc Emacs module assertion: Module function called from outside the current Lisp thread That would seem to be the cause of your problem. AndyM