From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mark Oteiza Newsgroups: gmane.emacs.devel Subject: Re: pure-fns in byte-opt.el Date: Sat, 29 Jul 2017 12:34:46 -0400 Message-ID: <20170729163446.GA9109@holos.localdomain> References: <20170725020650.GA12601@holos.localdomain> <20170726010000.GA14292@holos.localdomain> <83o9s75kus.fsf@gnu.org> <20170727023608.GA1895@holos.localdomain> <83y3r94xo5.fsf@gnu.org> <20170728002448.GA2431@holos.localdomain> <83mv7p3uy5.fsf@gnu.org> <20170729012407.GA6581@holos.localdomain> <83vamb3duz.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1501346101 17511 195.159.176.226 (29 Jul 2017 16:35:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 29 Jul 2017 16:35:01 +0000 (UTC) User-Agent: Mutt/1.8.3 (2017-05-23) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 29 18:34:57 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 1dbUhZ-0004AC-3g for ged-emacs-devel@m.gmane.org; Sat, 29 Jul 2017 18:34:53 +0200 Original-Received: from localhost ([::1]:52885 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dbUhf-000336-5h for ged-emacs-devel@m.gmane.org; Sat, 29 Jul 2017 12:34:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36522) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dbUhZ-00032z-1t for emacs-devel@gnu.org; Sat, 29 Jul 2017 12:34:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dbUhV-0004cj-Ve for emacs-devel@gnu.org; Sat, 29 Jul 2017 12:34:53 -0400 Original-Received: from mail-qk0-x233.google.com ([2607:f8b0:400d:c09::233]:36425) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dbUhV-0004bm-NW for emacs-devel@gnu.org; Sat, 29 Jul 2017 12:34:49 -0400 Original-Received: by mail-qk0-x233.google.com with SMTP id d136so136254632qkg.3 for ; Sat, 29 Jul 2017 09:34:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=udel-edu.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=KYRUTRD0MyD3Ri7LhkSVBBB+poTDwSaMHXBaEPmU2KI=; b=X+J2sQfgWjPTVo2Pvh1hKykBROcQWRNFSsbGwMbf8kze0YRb5Jvlf6upUCdu/AfrVH 8LljcKG5JjrUp7K9W5kNzPCNnKHM/kU2HjDnrN7SVIZuJwBud2KfAor1mWgpUZ/MkWUx 0Qny3y1I8VogNGh3Aqlq0q6twJIGgL+YUcMPxvTEs1brPqN4XD2MjcFOIXdtieZB1myu hqEXvO/0JUlzF7wcnqLpT+KZkz06X0ZbU+YL3N2R7WcgZ5Pp4znYo4UYVDZRfjM13Cu3 0Mca0A3hPoDOyIO/U+wR0g/7EH84SS6PvV5dx+yBf9HVOSDTQ7zc7iKF8EC+P/YBxfhM 0L5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=KYRUTRD0MyD3Ri7LhkSVBBB+poTDwSaMHXBaEPmU2KI=; b=q+oLVh4A/ACR7GpG8Iy87yYjTBwp5NwZmqe2wiGoXpLFk060gQPNHihMLy0tZLom4N pa5ju8yl1NvFKCHqw4QTqM3V3FpCfSMt7VOIBYI5Qclnh5boRpFLcPUSl8mYLz6TQTGV LDg4pw0VwIyZxKArrLfQ/84TDgfmmfuhGGD+Tnob+L8uzedIzFV/sGFAnLlmcouFwq2f 9O1NgodyQySIIhrXtmQxvcMK+vGPICYQnB9pg0bJCxilAFMa6796ObJ9aZ5znumaFTpc jafRI14Xfr0j7rVMx80HxkgG7v47bYQsqzuxL7WVQhj2aTV/4X5M28otnJClO9C4f5xi BJ4g== X-Gm-Message-State: AIVw110XnMNSsXQFLK8mneeTi/c00GA89arw0gRaER+WGwujai8+zrsF H4aD/NdF6OxeyUIHFFpNQg== X-Received: by 10.55.184.71 with SMTP id i68mr14244956qkf.162.1501346088391; Sat, 29 Jul 2017 09:34:48 -0700 (PDT) Original-Received: from holos.localdomain (pool-173-64-125-158.bltmmd.fios.verizon.net. [173.64.125.158]) by smtp.gmail.com with ESMTPSA id z190sm16806871qke.93.2017.07.29.09.34.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 29 Jul 2017 09:34:47 -0700 (PDT) Original-Received: by holos.localdomain (Postfix, from userid 1000) id E937468E56; Sat, 29 Jul 2017 12:34:46 -0400 (EDT) Content-Disposition: inline In-Reply-To: <83vamb3duz.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::233 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:217134 Archived-At: On 29/07/17 at 10:24am, Eli Zaretskii wrote: >> Date: Fri, 28 Jul 2017 21:24:07 -0400 >> From: Mark Oteiza >> Cc: emacs-devel@gnu.org >> >> >> #3 0x000000000060f09b in Ffuncall (nargs=4, args=0x7fffffffb688) at eval.c:2742 >> >> fun = XIL(0x17aee65) >> >> original_fun = XIL(0x20b0da0) >> >> funcar = XIL(0xce8cc0) >> >> numargs = 3 >> >> val = make_number(897379714801469509) >> >> count = 58 >> > >> >In this frame #3, what are the values of the important variables? >> > >> > (gdb) frame 3 >> > (gdb) pp original_fun >> >> unidata-gen-table-word-list >> >> > (gdb) pp args[1] >> > (gdb) pp args[2] >> > (gdb) pp args[3] >> >> decomposition >> 5 >> unidata-split-decomposition >> >> > (gdb) pp funcar >> > (gdb) pp fun >> >> # > >Thanks. > >So I think the problem happens in unidata-word-list-compress, and it >happens because make-vector, which that function calls always returns >the same vector, so the vectors used by that function and created by >it are all messed up. I don't follow: why does it always return the same vector? That particular call to make-vector should be unaffected by make-vector being marked pure, because its arguments aren't constants. OTOH, the form (make-vector 128 nil) would indeed get byte-compiled into the constant [nil nil … nil]