URL:
  <https://savannah.gnu.org/patch/?10622>

                 Summary: [PATCH 22/31] aarch64: strip the type code from the
restored dynamic link
                   Group: MIT/GNU Scheme
               Submitter: barak
               Submitted: Thu 24 Sep 2026 04:40:39 PM UTC
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email:
             Open/Closed: Open
         Discussion Lock: Unlocked


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Thu 24 Sep 2026 04:40:39 PM UTC By: Barak A. Pearlmutter <barak>
interface_to_scheme copied REGBLOCK_VAL into the dynamic-link register
as is.  After an interrupt taken through comutil_interrupt_dlink that
value is a stack-environment object, so the register held a tagged
pointer.  Top-byte-ignore let loads and stores through it succeed,
which is why compiled code ran at all; but the stack pointer derived
from it was a huge number to every stack check and to the GC, and the
build died with SIGSEGV at a point that depended on the memory layout
-- reproducibly under sbuild, never in a login session.  x86-64 masks
the value here; do the same.






    _______________________________________________________
File Attachments:

Name: 0022-aarch64-strip-the-type-code-from-the-restored-dynami.patch Size:
1.7KiB

<https://file.savannah.gnu.org/file/0022-aarch64-strip-the-type-code-from-the-restored-dynami.patch?file_id=59013>



    AGPL NOTICE

These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-2ce82de06cddf3c312e2e260f2c97db720d76efc.tar.gz

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/patch/?10622>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to