[Issue 9025] New: core.thread.Fiber seems to crash on Win64

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 14 09:19:16 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=9025

           Summary: core.thread.Fiber seems to crash on Win64
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: turkeyman at gmail.com


--- Comment #0 from Manu <turkeyman at gmail.com> 2012-11-14 09:19:15 PST ---
It seems core.thread.Fiber doesn't work under the new DMD for win64.
Crashes on call(), in fiber_switchcontext(), access violation, looks like an
alignment problem, since the pointer is valid.


fiber_switchContext:
000007FEE25509E0  push        rbp  
000007FEE25509E1  mov         rbp,rsp  
000007FEE25509E4  push        rbx  
000007FEE25509E5  push        r12  
000007FEE25509E7  push        r13  
000007FEE25509E9  push        r14  
000007FEE25509EB  push        r15  
000007FEE25509ED  push        qword ptr gs:[fiber_switchContext+15h
(7FEE25509F5h)]  *** CRASH*** +15h? does 'push qword' support reading from
unaligned addresses like that?
000007FEE25509F5  push        qword ptr gs:[fiber_switchContext+25h
(7FEE2550A05h)]  
000007FEE25509FD  push        qword ptr gs:[fiber_switchContext+35h
(7FEE2550A15h)]  
000007FEE2550A05  mov         qword ptr [rdi],rsp  
000007FEE2550A08  mov         rsp,rsi  
000007FEE2550A0B  pop         qword ptr gs:[fiber_switchContext+43h
(7FEE2550A23h)]  
000007FEE2550A13  pop         qword ptr gs:[fiber_switchContext+43h
(7FEE2550A23h)]  
000007FEE2550A1B  pop         qword ptr gs:[fiber_switchContext+43h
(7FEE2550A23h)]  
000007FEE2550A23  pop         r15  
000007FEE2550A25  pop         r14  
000007FEE2550A27  pop         r13  
000007FEE2550A29  pop         r12  
000007FEE2550A2B  pop         rbx  
000007FEE2550A2C  pop         rbp  
000007FEE2550A2D  pop         rcx  
000007FEE2550A2E  jmp         rcx

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list