bug-mit-scheme
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-mit-scheme] [bug #31431] Cold loading fails during c -> native comp


From: anonymous
Subject: [Bug-mit-scheme] [bug #31431] Cold loading fails during c -> native compilation
Date: Sun, 24 Oct 2010 04:46:18 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20101013 Gentoo IceCat/3.6.9 (like Firefox/3.6.9)

URL:
  <http://savannah.gnu.org/bugs/?31431>

                 Summary: Cold loading fails during c -> native compilation
                 Project: MIT/GNU Scheme
            Submitted by: None
            Submitted on: Sun 24 Oct 2010 04:46:17 AM UTC
                Category: runtime
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect behavior
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: William Throwe
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                Keywords: 

    _______________________________________________________

Details:

When running etc/make-native.sh to build a native code scheme from a portable
c scheme, the first attempt to run the native microcode (run_cmd in runtime/:
../microcode/scheme --library ../lib --fasl make.bin --heap 6000) crashes
with

initialize: (runtime 2d-property)
initialize: (runtime hash-table)
Microcode Error: No error handlers.
Error code 0x2 (unassigned-variable).

followed by a stack trace.  (Full log of run attached.)  The problem first
appeared in git commit a5e7841fdf715eeadde26e2e21261ec0e5c34ea8.

The problem appears to be that the (runtime hash-table) initialize-package!
function ends up indirectly calling some functions from (runtime
lambda-abstraction), which has not been initialized at that point.  Swapping
the order of initialization in runtime/make.scm fixes the problem.  (Actually,
I swapped the entire "Basic data structures" and "Microcode data structures"
sections in order to keep each one together.)  Patch attached.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sun 24 Oct 2010 04:46:17 AM UTC  Name: make-native.out  Size: 251kB  
By: None
Output of etc/make-native.sh and a patch fixing the problem.
<http://savannah.gnu.org/bugs/download.php?file_id=21782>
-------------------------------------------------------
Date: Sun 24 Oct 2010 04:46:17 AM UTC  Name: mit-scheme-cold-load.patch 
Size: 1kB   By: None
Output of etc/make-native.sh and a patch fixing the problem.
<http://savannah.gnu.org/bugs/download.php?file_id=21783>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?31431>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]