[M3devel] sigbus?
    Jay 
    jay.krell at cornell.edu
       
    Wed Jan 28 15:57:17 CET 2009
    
    
  
Here is something very suspicious, that I find by comparing similar platform-specific code to other similar platforms, trying to find what needs to be forked or #ifdefed per-platfform and why:
 
 
All the Darwin ports, and no other ports, have:
 
 
C:\dev2\cm3.2\m3-libs\m3core\src\runtime\AMD64_DARWIN\RTSignal.m3(34):    SetHandler (6, Usignal.SIGBUS,  SegV);
 
but none of them do anything with SIGBUS in RestoreHandlers.
 
 
 - It must be a mistake to not RestoreHandler, right?
 
 
 - Either all of the ports should handle SIGBUS, or none of them, right?
   At least if all the underlying platforms define it?
   Granted, no x86 or AMD64 platform is likely to ever issue it, but maybe for,
    like, using sse or cmpxchg 8b?
 
 
 - Jay
    
    
More information about the M3devel
mailing list