GNU bug report logs - #49495
27.2; portable dumper incompatible with 64K pages on aarch64

Previous Next

Package: emacs;

Reported by: Dan Čermák <dan.cermak <at> cgc-instruments.com>

Date: Fri, 9 Jul 2021 16:39:01 UTC

Severity: normal

Tags: moreinfo

Found in version 27.2

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 49495 in the body.
You can then email your comments to 49495 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#49495; Package emacs. (Fri, 09 Jul 2021 16:39:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dan Čermák <dan.cermak <at> cgc-instruments.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 09 Jul 2021 16:39:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Dan Čermák <dan.cermak <at> cgc-instruments.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.2; portable dumper incompatible with 64K pages on aarch64
Date: Fri, 09 Jul 2021 18:38:10 +0200
I am forwarding a bugreport from Fedora, about the portable dumper
causing issues when launching Emacs in a RHEL 8 chroot on aarch64:
(from https://bugzilla.redhat.com/show_bug.cgi?id=1974244)

--8<---------------cut here---------------start------------->8---
The emacs binary from emacs-nox-27.2-2.fc33.aarch64 cannot start in a chroot on Red Hat Enterprise Linux 8 because it assumes 4K pages:

openat(AT_FDCWD, "/usr/bin/emacs-27.2-nox.pdmp", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=10124128, ...}) = 0
read(3, "DUMPEDGNUEMACS\0\0(\304wp;D\330G%\f\265\337\214\264VO"..., 80) = 80
mmap(NULL, 10124128, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xffff92240000
mmap(0xffff92240000, 6946816, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xffff92240000
mmap(0xffff928e0000, 90112, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x6a0000) = 0xffff928e0000
mmap(0xffff928f6000, 3087200, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x6b6000) = -1 EINVAL (Invalid argument)

Map offsets and addresses must be a multiple of the page size.
--8<---------------cut here---------------end--------------->8---


Unfortunately, I am not really familiar with Emacs' internals to know
how to handle this bug report.

Cheers,

Dan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#49495; Package emacs. (Fri, 09 Jul 2021 18:09:02 GMT) Full text and rfc822 format available.

Message #8 received at 49495 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dan Čermák <dan.cermak <at> cgc-instruments.com>,
 Daniel Colascione <dancol <at> dancol.org>
Cc: 49495 <at> debbugs.gnu.org
Subject: Re: bug#49495: 27.2;
 portable dumper incompatible with 64K pages on aarch64
Date: Fri, 09 Jul 2021 21:08:34 +0300
> From: Dan Čermák <dan.cermak <at> cgc-instruments.com>
> Date: Fri, 09 Jul 2021 18:38:10 +0200
> 
> I am forwarding a bugreport from Fedora, about the portable dumper
> causing issues when launching Emacs in a RHEL 8 chroot on aarch64:
> (from https://bugzilla.redhat.com/show_bug.cgi?id=1974244)
> 
> --8<---------------cut here---------------start------------->8---
> The emacs binary from emacs-nox-27.2-2.fc33.aarch64 cannot start in a chroot on Red Hat Enterprise Linux 8 because it assumes 4K pages:
> 
> openat(AT_FDCWD, "/usr/bin/emacs-27.2-nox.pdmp", O_RDONLY|O_CLOEXEC) = 3
> fstat(3, {st_mode=S_IFREG|0644, st_size=10124128, ...}) = 0
> read(3, "DUMPEDGNUEMACS\0\0(\304wp;D\330G%\f\265\337\214\264VO"..., 80) = 80
> mmap(NULL, 10124128, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xffff92240000
> mmap(0xffff92240000, 6946816, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xffff92240000
> mmap(0xffff928e0000, 90112, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x6a0000) = 0xffff928e0000
> mmap(0xffff928f6000, 3087200, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x6b6000) = -1 EINVAL (Invalid argument)
> 
> Map offsets and addresses must be a multiple of the page size.
> --8<---------------cut here---------------end--------------->8---
> 
> 
> Unfortunately, I am not really familiar with Emacs' internals to know
> how to handle this bug report.

Thanks.  Can you try the latest master branch and see if this problem
still happens there?

Daniel, could you please look into this?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#49495; Package emacs. (Sat, 10 Jul 2021 16:35:01 GMT) Full text and rfc822 format available.

Message #11 received at 49495 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Dan Čermák <dan.cermak <at> cgc-instruments.com>,
 49495 <at> debbugs.gnu.org, Daniel Colascione <dancol <at> dancol.org>
Subject: Re: bug#49495: 27.2; portable dumper incompatible with 64K pages on
 aarch64
Date: Sat, 10 Jul 2021 18:33:40 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

> Thanks.  Can you try the latest master branch and see if this problem
> still happens there?

This was changed in Emacs 28 a couple months ago:

commit 216c65b135c2b0be7e048cdc6683873b03b99b9a
Author:     Lars Ingebrigtsen <larsi <at> gnus.org>
AuthorDate: Sun Mar 28 19:13:00 2021 +0200

    Use a 64KB page size for pdump
    
    * src/pdumper.c (dump_get_page_size): Use a 64KB page size on all
    architectures, as this many vary between systems (bug#47125).

So I think the problem should be fixed now, but it'd be good to get it
confirmed. 

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 12 Jul 2021 12:23:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#49495; Package emacs. (Sat, 17 Jul 2021 09:46:02 GMT) Full text and rfc822 format available.

Message #16 received at 49495 <at> debbugs.gnu.org (full text, mbox):

From: Dan Čermák <dan.cermak <at> cgc-instruments.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>, Eli Zaretskii <eliz <at> gnu.org>
Cc: 49495 <at> debbugs.gnu.org, Daniel Colascione <dancol <at> dancol.org>
Subject: Re: bug#49495: 27.2; portable dumper incompatible with 64K pages on
 aarch64
Date: Sat, 17 Jul 2021 11:45:46 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Eli Zaretskii <eliz <at> gnu.org> writes:
>
>> Thanks.  Can you try the latest master branch and see if this problem
>> still happens there?
>
> This was changed in Emacs 28 a couple months ago:
>
> commit 216c65b135c2b0be7e048cdc6683873b03b99b9a
> Author:     Lars Ingebrigtsen <larsi <at> gnus.org>
> AuthorDate: Sun Mar 28 19:13:00 2021 +0200
>
>     Use a 64KB page size for pdump
>     
>     * src/pdumper.c (dump_get_page_size): Use a 64KB page size on all
>     architectures, as this many vary between systems (bug#47125).
>
> So I think the problem should be fixed now, but it'd be good to get it
> confirmed.

This appears to fix this issue. Thanks!




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sat, 17 Jul 2021 10:03:01 GMT) Full text and rfc822 format available.

Notification sent to Dan Čermák <dan.cermak <at> cgc-instruments.com>:
bug acknowledged by developer. (Sat, 17 Jul 2021 10:03:01 GMT) Full text and rfc822 format available.

Message #21 received at 49495-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dan Čermák <dan.cermak <at> cgc-instruments.com>
Cc: larsi <at> gnus.org, dancol <at> dancol.org, 49495-done <at> debbugs.gnu.org
Subject: Re: bug#49495: 27.2; portable dumper incompatible with 64K pages on
 aarch64
Date: Sat, 17 Jul 2021 13:02:25 +0300
> From: Dan Čermák <dan.cermak <at> cgc-instruments.com>
> Cc: Daniel Colascione <dancol <at> dancol.org>, 49495 <at> debbugs.gnu.org
> Date: Sat, 17 Jul 2021 11:45:46 +0200
> 
> > commit 216c65b135c2b0be7e048cdc6683873b03b99b9a
> > Author:     Lars Ingebrigtsen <larsi <at> gnus.org>
> > AuthorDate: Sun Mar 28 19:13:00 2021 +0200
> >
> >     Use a 64KB page size for pdump
> >     
> >     * src/pdumper.c (dump_get_page_size): Use a 64KB page size on all
> >     architectures, as this many vary between systems (bug#47125).
> >
> > So I think the problem should be fixed now, but it'd be good to get it
> > confirmed.
> 
> This appears to fix this issue. Thanks!

Thanks, so I'm closing this bug report.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 14 Aug 2021 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 248 days ago.

Previous Next


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