From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: Re: Preview: portable dumper Date: Mon, 19 Feb 2018 12:24:03 -0800 Message-ID: References: <1775923222.898447.1518559575706@mail.libero.it> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1519071770 17365 195.159.176.226 (19 Feb 2018 20:22:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 19 Feb 2018 20:22:50 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 Cc: emacs-devel@gnu.org To: Andreas Schwab , Angelo Graziosi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 19 21:22:45 2018 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 1enrx4-0002nw-Qn for ged-emacs-devel@m.gmane.org; Mon, 19 Feb 2018 21:22:19 +0100 Original-Received: from localhost ([::1]:52223 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1enrz7-0001mG-07 for ged-emacs-devel@m.gmane.org; Mon, 19 Feb 2018 15:24:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45967) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1enryv-0001kk-FX for emacs-devel@gnu.org; Mon, 19 Feb 2018 15:24:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1enryu-0003LD-BN for emacs-devel@gnu.org; Mon, 19 Feb 2018 15:24:13 -0500 Original-Received: from dancol.org ([2600:3c01::f03c:91ff:fedf:adf3]:43628) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1enryu-0003JJ-0b for emacs-devel@gnu.org; Mon, 19 Feb 2018 15:24:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject; bh=UCMzKHvi+HNFB1LiGd6g9xb0/4tB6FqGbK/El8OSDlo=; b=kwj2Wq47CGS9zU/blKYZuZITcQiktPSkLxmu9D7dqQEnzRIIpJVdSkx41reOb/AgzF4s5fkpssi0OIMsfSzVOxyaZVNsUjl94WsV+HBLRhuH7TPKpRCxvlAUAdVlJ6wN8XbkmoHvh448ZSujCBlbLjevz+WnJdWaF9TjVYV06tYDgq35OqAnqtqrVVvix9RGRN8H6kE/KZTW0mxHvZpaDBg8R/OioGkA/7e5icnmQJmwCEGCdyBggs5QIVG0jQofToVWCLUdfeijxIcMJqt8ddJE7SFLBUjEwkIxgmd+c7HL6A01bKtXzYPiQkqe/ZgVgxF/fl0T7uu7UpMTHXzy4A==; Original-Received: from [2604:4080:1321:8ab0:359b:2963:5873:c169] by dancol.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1enryq-0001hK-So; Mon, 19 Feb 2018 12:24:08 -0800 In-Reply-To: Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2600:3c01::f03c:91ff:fedf:adf3 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:223443 On 02/17/2018 02:31 AM, Andreas Schwab wrote: > Doesn't work on powerpc: > > ../../emacs/src/pdumper.c:2479: Emacs fatal error: assertion failed: vector_nbytes ((struct Lisp_Vector *) in) == out_size > > (gdb) p out_size > $1 = 536 > (gdb) p vector_nbytes ((struct Lisp_Vector *) in) > $2 = 544 > > Andreas. > Thanks for testing. I don't have a PowerPC handy. I guess I can go find an emulator, but in the meantime: can you think of anything specific to PowerPC that might break the code? Word size? pdumper works for me in both 32- and 64-bit forms on x86. Endian? AIUI, PowerPC has selectable endianness. Are you big- or little-endian? Besides, pdumper *should* be endian-neutral. And if we were looking at an endianness mismatch, I'd expect a much bigger mismatch than 544 vs. 536. What stack do you have there? Does your system use natural alignment?