GNU bug report logs - #46722
test-map-into fails

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Glenn Morris <rgm@HIDDEN>; dated Tue, 23 Feb 2021 16:23:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
bug Marked as found in versions 27.2. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 46722 <at> debbugs.gnu.org:


Received: (at 46722) by debbugs.gnu.org; 4 Apr 2021 16:06:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 04 12:06:11 2021
Received: from localhost ([127.0.0.1]:36336 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lT5GN-00063u-E7
	for submit <at> debbugs.gnu.org; Sun, 04 Apr 2021 12:06:11 -0400
Received: from eggs.gnu.org ([209.51.188.92]:40866)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rgm@HIDDEN>) id 1lT5GL-00063g-La
 for 46722 <at> debbugs.gnu.org; Sun, 04 Apr 2021 12:06:10 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:42138)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <rgm@HIDDEN>) id 1lT5GG-00050q-F4
 for 46722 <at> debbugs.gnu.org; Sun, 04 Apr 2021 12:06:04 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rgm@HIDDEN>)
 id 1lT5G4-00044Z-H7; Sun, 04 Apr 2021 12:05:58 -0400
From: Glenn Morris <rgm@HIDDEN>
To: 46722 <at> debbugs.gnu.org
Subject: Re: bug#46722: test-map-into fails
References: <yxmtvug3ed.fsf@HIDDEN>
X-Spook: SONANGOL CSE SWS THAAD Al Qaeda Arabian Peninsula
X-Ran: aj6%[\k0<-)~&pl0g#zLX=NO*F,.oOXOkJE{L%9e1[dn53RiB%I>];}'[%qu^j+QQaND6x
X-Hue: white
X-Attribution: GM
Date: Sun, 04 Apr 2021 12:05:51 -0400
In-Reply-To: <yxmtvug3ed.fsf@HIDDEN> (Glenn Morris's message of
 "Tue, 23 Feb 2021 11:22:34 -0500")
Message-ID: <ej4kgm5928.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 46722
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)


I've also now seen this failure on the emacs-27 branch, so my initial
comments about revisions are incorrect.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#46722; Package emacs. Full text available.

Message received at 46722 <at> debbugs.gnu.org:


Received: (at 46722) by debbugs.gnu.org; 23 Feb 2021 22:51:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 23 17:51:10 2021
Received: from localhost ([127.0.0.1]:60870 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lEgWM-0002zG-A0
	for submit <at> debbugs.gnu.org; Tue, 23 Feb 2021 17:51:10 -0500
Received: from mail-wm1-f52.google.com ([209.85.128.52]:34755)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <contovob@HIDDEN>) id 1lEgWJ-0002yo-CG
 for 46722 <at> debbugs.gnu.org; Tue, 23 Feb 2021 17:51:09 -0500
Received: by mail-wm1-f52.google.com with SMTP id o10so2369314wmc.1
 for <46722 <at> debbugs.gnu.org>; Tue, 23 Feb 2021 14:51:07 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=51gNH6nziwKQBUqTCH9n9vtl2VyQB6nGVHJ59CCYzAk=;
 b=E04HNMNtvXDXAAcPlmTCkqigjSNkJbT0iZ8cOnLn689FobCSuvw5Ub1W2uJJZzHJ8R
 jvZuSXZxsQgGSFCMYbnNeHYDWAJrv5SEehxFCp30Wuq2X7U7VmO/p5kQ8R/7fxj1yF6F
 4yru8p+pZPrPA5jYQOb3qxxiMGHYC9/ioOxbaRDcNlXx1ZukyMlvAmm1rYQBWV1wroCU
 nxnedCuxAv4q9QImuOXGQpEqgKpTDvrPIxkCGlPoYHtw5F8oNM2OCvvKsTVqtR5q+J7C
 Kz1CVrM68ypJEsGPbhzEwKTaPiBJZTHsoeM6qkdnGE5Xmh4hUy+fVnZGamzAy+iMzBWz
 iqJQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=51gNH6nziwKQBUqTCH9n9vtl2VyQB6nGVHJ59CCYzAk=;
 b=s7H8pgQe7D8lcSwlpTwMcok+UQ1MQlFjfWYGodVGax9VEmpZQDcdb0zzuz8t1yX3nJ
 8hLom2DFks35nN6Q6OwIYotR1bInkb/O5vD5JItFhvpCZ69OdhnlfxeEIhCTWb/z5rvB
 X+kKVPEBZ2/12YbedWWVB1C2d9AkO71xFafFbJiEY5CJyFBqwplRzIqrjlxqQp3tustq
 r8vVK74hK7B55ADFKx5eye62JYGOLVofgtwVxaLjId8NmfS94vz7faVamcNZmK4Tf2Pm
 OdyvxYV/C2Coc9sqCtAdX40dN9z9U+UGD7xP2PMIK+ZTynaCsWof7nwkVxAJWpfq1/46
 unrw==
X-Gm-Message-State: AOAM530pdsif7E7ExdATCD7wfkhtFGR6rq98/cExNe/7JiO4nSXHwGf0
 ljRV/PVRdJghdX8KXJkgWb91+A==
X-Google-Smtp-Source: ABdhPJxq9Jsf72Lbnhr5HByztmUyNGXhmg2/iNLnFYIVwYWynQl2wiKwVtNZ/uXT8naA4gjjBpYpGA==
X-Received: by 2002:a05:600c:19cf:: with SMTP id
 u15mr839113wmq.139.1614120661433; 
 Tue, 23 Feb 2021 14:51:01 -0800 (PST)
Received: from localhost ([2a02:8084:20e2:c380:d15:339e:aa10:60f1])
 by smtp.gmail.com with ESMTPSA id b6sm193132wrq.56.2021.02.23.14.51.00
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 23 Feb 2021 14:51:00 -0800 (PST)
From: "Basil L. Contovounesios" <contovob@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#46722: test-map-into fails
References: <yxmtvug3ed.fsf@HIDDEN> <87pn0qu4k9.fsf@HIDDEN>
 <jwvh7m2puot.fsf-monnier+emacs@HIDDEN> <87blcaqz5f.fsf@HIDDEN>
Date: Tue, 23 Feb 2021 22:50:59 +0000
In-Reply-To: <87blcaqz5f.fsf@HIDDEN> (Basil L. Contovounesios's message of
 "Tue, 23 Feb 2021 20:58:52 +0000")
Message-ID: <87mtvupfe4.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 46722
Cc: 46722 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

"Basil L. Contovounesios" <contovob@HIDDEN> writes:

> Here's the simplest repro I could find:
>
>   ;;; foo.el -*- lexical-binding: t -*-
>   (require 'map)
>   (map-into () '(hash-table))
>   ;;; foo.el ends here
>
> followed by:
>
>   emacs -Q -batch -f batch-byte-compile foo.el
>   while emacs -Q -batch -l foo.elc; do :; done
>
> which barfs the attached after a few seconds.
>
> The same happens with:
>
>   (map-into () '(hash-table :test eq))
>   (map-into () '(hash-table :test eql))
>   (map-into () '(hash-table :test equal))
>
> but not with:
>
>   (map-into () 'hash-table)
>
> so maybe the heisenbug lies with cl-defmethod's treatment of 'head'?

For some reason looping in Lisp doesn't fail though:

  ;;; foo.el -*- lexical-binding: t -*-
  (require 'map)
  (while (map-into () '(hash-table)))
  ;;; foo.el ends here

when run as:

  emacs -Q -batch -f batch-byte-compile foo.el
  emacs -Q -batch -l foo.elc

I actually forgot I left this running in the background for over an
hour because compilation-finish-functions never ran.

The same happens if I change '-batch -l' to '-script'.

-- 
Basil




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#46722; Package emacs. Full text available.

Message received at 46722 <at> debbugs.gnu.org:


Received: (at 46722) by debbugs.gnu.org; 23 Feb 2021 20:59:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 23 15:59:30 2021
Received: from localhost ([127.0.0.1]:60746 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lEemI-00006v-La
	for submit <at> debbugs.gnu.org; Tue, 23 Feb 2021 15:59:30 -0500
Received: from mail-wm1-f45.google.com ([209.85.128.45]:52176)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <contovob@HIDDEN>) id 1lEemH-00006i-4A
 for 46722 <at> debbugs.gnu.org; Tue, 23 Feb 2021 15:59:29 -0500
Received: by mail-wm1-f45.google.com with SMTP id j187so21393wmj.1
 for <46722 <at> debbugs.gnu.org>; Tue, 23 Feb 2021 12:59:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=ZyCMnQxwishCXLCGDYFdA663cUUwht1gXia6kvX7hKM=;
 b=al5d47sf3dIswCypu8ZKAryhnfofurOSbGsrGWAU+4jedmuCHR+fJLuDDBZ0doM/sJ
 ImGbJw21RAtEg0JaUlRlwo+jWvW+2tk5aqIQh7uNxSOHC7RE5R3ka1zkAMsNkbNZLF1n
 rwq+A4LC5BEjWgX6BIK6JwUeaH3tT5f08ACMUXw+w34WbAMq1lucGXwgW6M4GDBsCWkD
 lECNuu1sFAsxigeDlrVKXvRiA4eu2++x1llfjtxI79ngR82B1D1uwwyDSo04/zEPyHhJ
 uSFghrEdISekl9EJS0hVHSd8rbhn9nJGwkMttutUt/p3PwOCA/X7IOcKyOdUl2r1Rubq
 B0Xg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=ZyCMnQxwishCXLCGDYFdA663cUUwht1gXia6kvX7hKM=;
 b=X4uSL0z2WUznM12YGwnh+YvTFiciMVhCLP4WijIRx1reuEgVvZklUH26ANKaC6qpSV
 gAhmLPKcWZzYtDZ7TBPp47DyeJCoOG3Wo4WXFsXZXa8iMr3+RCqkLLPDeKf8sOCOg8ms
 UnxlzQfw85IcLMmq3H1zy2ieM69v18sYBHRJ5BA+aHvgZNroxqaM03xq7wj2d3VLF/LI
 GMtV95UPH72eOBAdASEQkvVHKg2MJJ4m5y23ecu4z542oHrWvm/80eDd7CkTLO7ISTTG
 RlXKQ/6OcvmugI8FJMYXhfRV+y9TbKKPpJT2GDTA+xAoIp1sc8O700n+e/3MmKxShXOx
 kC/g==
X-Gm-Message-State: AOAM5322RdAZa7x8l+ydalypnVvLX0elWS0eCmMW7zzLcsDPKXBp6Zym
 CBiQWWNzcb3NuUTGeWhmYuzyJ3iVcHmwqQ==
X-Google-Smtp-Source: ABdhPJyTRHVQooMM2YlMpFDbvGp0E2EuWGBA+nJs5u84czAXScTo8+PX7S2/YyJZ/qkVU5AKbveWWA==
X-Received: by 2002:a1c:c906:: with SMTP id f6mr555710wmb.128.1614113963164;
 Tue, 23 Feb 2021 12:59:23 -0800 (PST)
Received: from localhost ([2a02:8084:20e2:c380:d15:339e:aa10:60f1])
 by smtp.gmail.com with ESMTPSA id 4sm4415772wma.0.2021.02.23.12.58.59
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 23 Feb 2021 12:59:05 -0800 (PST)
From: "Basil L. Contovounesios" <contovob@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#46722: test-map-into fails
References: <yxmtvug3ed.fsf@HIDDEN> <87pn0qu4k9.fsf@HIDDEN>
 <jwvh7m2puot.fsf-monnier+emacs@HIDDEN>
Date: Tue, 23 Feb 2021 20:58:52 +0000
In-Reply-To: <jwvh7m2puot.fsf-monnier+emacs@HIDDEN> (Stefan Monnier's message
 of "Tue, 23 Feb 2021 12:30:12 -0500")
Message-ID: <87blcaqz5f.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 46722
Cc: 46722 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain

Stefan Monnier <monnier@HIDDEN> writes:

> This kind of code is supposed to be fully deterministic, so it's quite
> worrisome.  It sounds/smells like memory corruption or some other bug in
> the memory management.
>
> If you could come up with a reasonably simple code (in the sense that it
> doesn't take too long to run) to reproduce this problem with a high
> probability, maybe we can start adding some tracing to try and figure
> out what's going on.
>
> IOW, try and write a loop that runs the problematic code a couple
> hundred times, so that one of those should fail.  Then try and cut down
> the code as much as possible, verifying along the way that the problem
> didn't disappear.

Here's the simplest repro I could find:

  ;;; foo.el -*- lexical-binding: t -*-
  (require 'map)
  (map-into () '(hash-table))
  ;;; foo.el ends here

followed by:

  emacs -Q -batch -f batch-byte-compile foo.el
  while emacs -Q -batch -l foo.elc; do :; done

which barfs the attached after a few seconds.

The same happens with:

  (map-into () '(hash-table :test eq))
  (map-into () '(hash-table :test eql))
  (map-into () '(hash-table :test equal))

but not with:

  (map-into () 'hash-table)

so maybe the heisenbug lies with cl-defmethod's treatment of 'head'?

Let me know if you'd like me to run anything else.

Thanks,

-- 
Basil


--=-=-=
Content-Type: application/emacs-lisp
Content-Disposition: attachment; filename=backtrace.el
Content-Transfer-Encoding: quoted-printable

Debugger entered--Lisp error: (cl-no-applicable-method map-into nil (hash-t=
able))
  signal(cl-no-applicable-method (map-into nil (hash-table)))
  cl-no-applicable-method(#s(cl--generic :name map-into :dispatches ((1 #s(=
cl--generic-generalizer :name cl--generic-eql-generalizer :priority 100 :ta=
gcode-function #f(compiled-function (name &rest _) #<bytecode -0x1c175f030a=
25723c>) :specializers-function #f(compiled-function (tag &rest _) #<byteco=
de -0xc2b468c2856371a>)) #s(cl--generic-generalizer :name cl--generic-head-=
generalizer :priority 80 :tagcode-function #f(compiled-function (name &rest=
 _) #<bytecode 0x80e4059ed983db5>) :specializers-function #f(compiled-funct=
ion (tag &rest _) #<bytecode -0xc39dbe7465fa6da>)) #s(cl--generic-generaliz=
er :name cl--generic-t-generalizer :priority 0 :tagcode-function #f(compile=
d-function (name &rest _) #<bytecode -0x1cba8313a96764e4>) :specializers-fu=
nction #f(compiled-function (tag &rest _) #<bytecode -0x2b7aad08469105e>)))=
 (0 #s(cl--generic-generalizer :name cl--generic-t-generalizer :priority 0 =
:tagcode-function #f(compiled-function (name &rest _) #<bytecode -0x1cba831=
3a96764e4>) :specializers-function #f(compiled-function (tag &rest _) #<byt=
ecode -0x2b7aad08469105e>)))) :method-table (#s(cl--generic-method :special=
izers (t (head hash-table)) :qualifiers nil :uses-cnm nil :function #f(comp=
iled-function (map type) "Convert MAP into a hash-table.\nTYPE is a list wh=
ere the car is `hash-table' and the cdr are the\nkeyword-args forwarded to =
`make-hash-table'.\n\nExample:\n    (map-into '((1 . 3)) '(hash-table :test=
 eql))" #<bytecode 0x4bd821a7cc633da>)) #s(cl--generic-method :specializers=
 (t (eql hash-table)) :qualifiers nil :uses-cnm nil :function #f(compiled-f=
unction (map type) "Convert MAP into a hash-table." #<bytecode -0x731b155b7=
1671c9>)) #s(cl--generic-method :specializers (t (eql plist)) :qualifiers n=
il :uses-cnm nil :function #f(compiled-function (map type) #<bytecode 0x32b=
f14aed3f87a1>)) #s(cl--generic-method :specializers (t (eql alist)) :qualif=
iers nil :uses-cnm nil :function #f(compiled-function (map type) #<bytecode=
 -0x47e95777a1ae310>)) #s(cl--generic-method :specializers (t (eql list)) :=
qualifiers nil :uses-cnm nil :function #f(compiled-function (map type) #<by=
tecode -0x47e95777a1ae310>))) :options nil) nil (hash-table))
  apply(cl-no-applicable-method #s(cl--generic :name map-into :dispatches (=
(1 #s(cl--generic-generalizer :name cl--generic-eql-generalizer :priority 1=
00 :tagcode-function #f(compiled-function (name &rest _) #<bytecode -0x1c17=
5f030a25723c>) :specializers-function #f(compiled-function (tag &rest _) #<=
bytecode -0xc2b468c2856371a>)) #s(cl--generic-generalizer :name cl--generic=
-head-generalizer :priority 80 :tagcode-function #f(compiled-function (name=
 &rest _) #<bytecode 0x80e4059ed983db5>) :specializers-function #f(compiled=
-function (tag &rest _) #<bytecode -0xc39dbe7465fa6da>)) #s(cl--generic-gen=
eralizer :name cl--generic-t-generalizer :priority 0 :tagcode-function #f(c=
ompiled-function (name &rest _) #<bytecode -0x1cba8313a96764e4>) :specializ=
ers-function #f(compiled-function (tag &rest _) #<bytecode -0x2b7aad0846910=
5e>))) (0 #s(cl--generic-generalizer :name cl--generic-t-generalizer :prior=
ity 0 :tagcode-function #f(compiled-function (name &rest _) #<bytecode -0x1=
cba8313a96764e4>) :specializers-function #f(compiled-function (tag &rest _)=
 #<bytecode -0x2b7aad08469105e>)))) :method-table (#s(cl--generic-method :s=
pecializers (t (head hash-table)) :qualifiers nil :uses-cnm nil :function #=
f(compiled-function (map type) "Convert MAP into a hash-table.\nTYPE is a l=
ist where the car is `hash-table' and the cdr are the\nkeyword-args forward=
ed to `make-hash-table'.\n\nExample:\n    (map-into '((1 . 3)) '(hash-table=
 :test eql))" #<bytecode 0x4bd821a7cc633da>)) #s(cl--generic-method :specia=
lizers (t (eql hash-table)) :qualifiers nil :uses-cnm nil :function #f(comp=
iled-function (map type) "Convert MAP into a hash-table." #<bytecode -0x731=
b155b71671c9>)) #s(cl--generic-method :specializers (t (eql plist)) :qualif=
iers nil :uses-cnm nil :function #f(compiled-function (map type) #<bytecode=
 0x32bf14aed3f87a1>)) #s(cl--generic-method :specializers (t (eql alist)) :=
qualifiers nil :uses-cnm nil :function #f(compiled-function (map type) #<by=
tecode -0x47e95777a1ae310>)) #s(cl--generic-method :specializers (t (eql li=
st)) :qualifiers nil :uses-cnm nil :function #f(compiled-function (map type=
) #<bytecode -0x47e95777a1ae310>))) :options nil) (nil (hash-table)))
  #f(compiled-function (&rest args) #<bytecode 0x1c45b997b1d15282>)(nil (ha=
sh-table))
  apply(#f(compiled-function (&rest args) #<bytecode 0x1c45b997b1d15282>) n=
il (hash-table) nil)
  map-into(nil (hash-table))
  byte-code("\300\301!\210\302\303\304\"\207" [require map map-into nil (ha=
sh-table)] 3)
  load("/tmp/foo.elc" nil t)
  command-line-1(("-l" "foo.elc"))
  command-line()
  normal-top-level()

--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#46722; Package emacs. Full text available.

Message received at 46722 <at> debbugs.gnu.org:


Received: (at 46722) by debbugs.gnu.org; 23 Feb 2021 17:30:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 23 12:30:24 2021
Received: from localhost ([127.0.0.1]:60397 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lEbVv-0001Jn-SH
	for submit <at> debbugs.gnu.org; Tue, 23 Feb 2021 12:30:24 -0500
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:16731)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1lEbVt-0001JX-RM
 for 46722 <at> debbugs.gnu.org; Tue, 23 Feb 2021 12:30:22 -0500
Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id D7DF5440FF7;
 Tue, 23 Feb 2021 12:30:15 -0500 (EST)
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 1EDF4440FF2;
 Tue, 23 Feb 2021 12:30:14 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1614101414;
 bh=PYzqrQP5VYYksbh7RpWCTL65E6Ex9UItbc2kgb7asKA=;
 h=From:To:Cc:Subject:References:Date:In-Reply-To:From;
 b=oFOdc86tlbu7gEHSnm0lyMguAtGomnffzRzD2oMEZkr6yMPkAMkijyT3Ek165oGJD
 VEePcs4C/SlM1myA1kRRl2/l5OZpou5J9w6uaiLVYyJA/MIMC8jh17ZQ4W4KLF5skm
 PzmUowFuhlVBVVk5io/Y7WF9G79K2JeQAX25KyKCKsHafRiyvcW1U70H2cA+oI7D38
 qEa0pHovsu0YqBPX9gbKEQI8FPZjnKA/aNOoVurL3P+8c6ukpt/5GRyv0lwVUm1np4
 0i4pWng+PRX3Pv2X4rwKj017kWFOyfq7ReeyxgH3j6yGk1JrSzUpjuSJx0p5UDpTRA
 LKxDlUI9JS+ew==
Received: from alfajor (unknown [216.154.41.47])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id E0E70120384;
 Tue, 23 Feb 2021 12:30:13 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: "Basil L. Contovounesios" <contovob@HIDDEN>
Subject: Re: bug#46722: test-map-into fails
Message-ID: <jwvh7m2puot.fsf-monnier+emacs@HIDDEN>
References: <yxmtvug3ed.fsf@HIDDEN> <87pn0qu4k9.fsf@HIDDEN>
Date: Tue, 23 Feb 2021 12:30:12 -0500
In-Reply-To: <87pn0qu4k9.fsf@HIDDEN> (Basil L. Contovounesios's message of
 "Tue, 23 Feb 2021 16:33:42 +0000")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL -0.100 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 46722
Cc: 46722 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

>> Something between 8d5dfaf and efe42c2 (inclusive) causes test-map-into
>> to reliably fail on hydra.nixos.org. We can't be more specific since
>> intermediate revisions don't build. So far I could not reproduce the issue.
>>
>> Ref eg https://hydra.nixos.org/build/137474120
>>
>> (cl-no-applicable-method map-into ((a . 1) (b . 2)) (hash-table :test equal))
>
> FWIW, I've been working on map.el and map-tests.el since yesterday, and
> I occasionally run into this heisenerror locally maybe once in every 50
> runs of 'make test/map-tests RET'.

This kind of code is supposed to be fully deterministic, so it's quite
worrisome.  It sounds/smells like memory corruption or some other bug in
the memory management.

If you could come up with a reasonably simple code (in the sense that it
doesn't take too long to run) to reproduce this problem with a high
probability, maybe we can start adding some tracing to try and figure
out what's going on.

IOW, try and write a loop that runs the problematic code a couple
hundred times, so that one of those should fail.  Then try and cut down
the code as much as possible, verifying along the way that the problem
didn't disappear.


        Stefan





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#46722; Package emacs. Full text available.

Message received at 46722 <at> debbugs.gnu.org:


Received: (at 46722) by debbugs.gnu.org; 23 Feb 2021 17:06:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 23 12:06:20 2021
Received: from localhost ([127.0.0.1]:60359 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lEb8e-0000j7-Hg
	for submit <at> debbugs.gnu.org; Tue, 23 Feb 2021 12:06:20 -0500
Received: from eggs.gnu.org ([209.51.188.92]:57752)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rgm@HIDDEN>) id 1lEb8c-0000it-JR
 for 46722 <at> debbugs.gnu.org; Tue, 23 Feb 2021 12:06:18 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:48072)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <rgm@HIDDEN>)
 id 1lEb8W-0006Gv-SL; Tue, 23 Feb 2021 12:06:12 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rgm@HIDDEN>)
 id 1lEb8V-0001sA-6o; Tue, 23 Feb 2021 12:06:11 -0500
From: Glenn Morris <rgm@HIDDEN>
To: "Basil L. Contovounesios" <contovob@HIDDEN>
Subject: Re: bug#46722: test-map-into fails
References: <yxmtvug3ed.fsf@HIDDEN> <87pn0qu4k9.fsf@HIDDEN>
X-Spook: NTT Narcos DERA ISN MD4 FSF Mitigation covert video
X-Ran: b.@2nV!b@%KBGt<I+T5Jow'86)=A9@cG_jbPuE0jo{O}P;e>IY%M+(.T_Pz3fI3bt9&R%f
X-Hue: green
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Tue, 23 Feb 2021 12:06:11 -0500
In-Reply-To: <87pn0qu4k9.fsf@HIDDEN> (Basil L. Contovounesios's message of
 "Tue, 23 Feb 2021 16:33:42 +0000")
Message-ID: <9wv9air9x8.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 46722
Cc: Stefan Monnier <monnier@HIDDEN>, 46722 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


Thanks. Locally I got 3/100 such failures.

(I wish the Emacs test suite was less flaky.
Eg in https://hydra.nixos.org/build/137475263
we have dired-test-bug27243-02 failing as well, apropos of nothing.)




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#46722; Package emacs. Full text available.

Message received at 46722 <at> debbugs.gnu.org:


Received: (at 46722) by debbugs.gnu.org; 23 Feb 2021 16:33:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 23 11:33:53 2021
Received: from localhost ([127.0.0.1]:60330 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lEadF-0006Hn-11
	for submit <at> debbugs.gnu.org; Tue, 23 Feb 2021 11:33:53 -0500
Received: from mail-wr1-f51.google.com ([209.85.221.51]:43954)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <contovob@HIDDEN>) id 1lEadC-0006HY-17
 for 46722 <at> debbugs.gnu.org; Tue, 23 Feb 2021 11:33:51 -0500
Received: by mail-wr1-f51.google.com with SMTP id w11so543698wrr.10
 for <46722 <at> debbugs.gnu.org>; Tue, 23 Feb 2021 08:33:49 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=h/i8x7OuwPB+8c724EuTKE4D0co2iMLYRDbY/4U5S9I=;
 b=Z1kyErafwsyKQT4AOJC28ldwu8IthIznku4GE4conaL/8nIjrwlh/yNDPttZQgsjaZ
 VDPpE3pYEo3CdU5vvSNbE27jD+nZtaaogCDA61oBpBazS7L1RIrBwqKzj8/OpIgmeP/k
 E3S1+rsmf/4uh8SInl1AgMTV8ApBGd9UMwdZjH9Eecd5blol5FG+gHHNmtT97XRx7QLY
 Lr3Ye/zZWwJGLYeX3eXhosmif7i0/eheYxp1bSrjE4uB/r2JGkHN66dcJEpsr3ohNxuv
 YTUMeLfqsaG6l5cGxzfKjQRw580L/7UKLkB279EKm1Vcs07Hu3Xm+eSYu0JasXcD/Tx2
 drSw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=h/i8x7OuwPB+8c724EuTKE4D0co2iMLYRDbY/4U5S9I=;
 b=jYVCb9yy7NUaO3p0+vg03HH6nisBlFfrPzi2zoxM8H+3Bo7wZLhh1upQqpZwRCgQFy
 +dArnoGn2FGVL9G35Z/NtE2a87PVJjbjFm34LwBDgHBrmKC56N8EMyMQ2yReCrTRa9sy
 Tx50p72alBUQEsD++R3ukVFw24hN0jZ3lgIaHeEUFryUeKjaPJpc0RomkvACve77po8+
 JpHYLV91bRKVJvX1VQOM0kzpz/O9dlvbqzP6cqIfOcsrivzLH6JCedgsP2bM883ZKJgs
 oOlmCxX8zMoP35UI+s4ELR5cj/tDvy+aM7l40qnGyRI3EtcmZz+RntOi4yxX/PwMroL8
 u8/Q==
X-Gm-Message-State: AOAM5312fTcgsglEZ8/PyfA7Zu2qGUmVCVEfxgUMB9PybTzoRbbnkJ1c
 Q+VTMPJRyfHsy3XLO4XMwokMuQ==
X-Google-Smtp-Source: ABdhPJwlqXM75D4rPHz6556ZMttfEs364ZQdA4tILvE3iaFjEzmf/BJsDUe4+iGNgO2c2DWc+/2mDw==
X-Received: by 2002:a5d:628c:: with SMTP id k12mr26958685wru.316.1614098024133; 
 Tue, 23 Feb 2021 08:33:44 -0800 (PST)
Received: from localhost ([2a02:8084:20e2:c380:d15:339e:aa10:60f1])
 by smtp.gmail.com with ESMTPSA id v18sm3427726wml.45.2021.02.23.08.33.43
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 23 Feb 2021 08:33:43 -0800 (PST)
From: "Basil L. Contovounesios" <contovob@HIDDEN>
To: Glenn Morris <rgm@HIDDEN>
Subject: Re: bug#46722: test-map-into fails
References: <yxmtvug3ed.fsf@HIDDEN>
Date: Tue, 23 Feb 2021 16:33:42 +0000
In-Reply-To: <yxmtvug3ed.fsf@HIDDEN> (Glenn Morris's message of
 "Tue, 23 Feb 2021 11:22:34 -0500")
Message-ID: <87pn0qu4k9.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 46722
Cc: Stefan Monnier <monnier@HIDDEN>, 46722 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Glenn Morris <rgm@HIDDEN> writes:

> Something between 8d5dfaf and efe42c2 (inclusive) causes test-map-into
> to reliably fail on hydra.nixos.org. We can't be more specific since
> intermediate revisions don't build. So far I could not reproduce the issue.
>
> Ref eg https://hydra.nixos.org/build/137474120
>
> (cl-no-applicable-method map-into ((a . 1) (b . 2)) (hash-table :test equal))

FWIW, I've been working on map.el and map-tests.el since yesterday, and
I occasionally run into this heisenerror locally maybe once in every 50
runs of 'make test/map-tests RET'.

-- 
Basil




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#46722; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 23 Feb 2021 16:22:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 23 11:22:44 2021
Received: from localhost ([127.0.0.1]:60309 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lEaSS-0005zk-6U
	for submit <at> debbugs.gnu.org; Tue, 23 Feb 2021 11:22:44 -0500
Received: from eggs.gnu.org ([209.51.188.92]:47840)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rgm@HIDDEN>) id 1lEaSQ-0005zX-NN
 for submit <at> debbugs.gnu.org; Tue, 23 Feb 2021 11:22:43 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:47469)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <rgm@HIDDEN>) id 1lEaSL-0003MJ-Im
 for submit <at> debbugs.gnu.org; Tue, 23 Feb 2021 11:22:37 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rgm@HIDDEN>)
 id 1lEaSI-0001mv-Lk; Tue, 23 Feb 2021 11:22:34 -0500
From: Glenn Morris <rgm@HIDDEN>
To: submit <at> debbugs.gnu.org
Subject: test-map-into fails
X-Spook: ASIS bank KLM Decapitated Extreme weather secure S Box
X-Ran: l0+qzUH/LhDrp}0dLw}v;/W/`Zy+als-kjeb\*rg@mm"^`AW9EItEGBu#c)%P$P?B4+MtT
X-Hue: brightcyan
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Tue, 23 Feb 2021 11:22:34 -0500
Message-ID: <yxmtvug3ed.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Package: emacs
Version: 28.0.50

Something between 8d5dfaf and efe42c2 (inclusive) causes test-map-into
to reliably fail on hydra.nixos.org. We can't be more specific since
intermediate revisions don't build. So far I could not reproduce the issue.

Ref eg https://hydra.nixos.org/build/137474120

(cl-no-applicable-method map-into ((a . 1) (b . 2)) (hash-table :test equal))




Report forwarded to bug-gnu-emacs@HIDDEN:
bug#46722; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 4 Apr 2021 16:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.