Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#5694 closed bug (fixed)

Runtime failure with ghc 7.2.2 and LLVM 3.0 64bit on Mac OS X 10.7

Reported by: nlhepler Owned by: dterei
Priority: high Milestone: 7.4.1
Component: Compiler (LLVM) Version: 7.2.1
Keywords: Cc: nlhepler@…
Operating System: MacOS X Architecture: x86_64 (amd64)
Type of failure: Runtime crash Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


HMrmr ( successfully compiles with: ghc -fforce-recomp -O -fllvm HMrmr.hs , but when running the HMrmr binary it segfaults: 11. A gdb trace yields:

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: 13 at address: 0x0000000000000000
0x00007fff8e6806cd in misaligned_stack_error_entering_dyld_stub_binder ()
(gdb) bt
#0  0x00007fff8e6806cd in misaligned_stack_error_entering_dyld_stub_binder ()
#1  0x0000000101104498 in ?? ()
#2  0x0000000100300440 in pvars ()
Previous frame inner to this frame (gdb could not unwind past this frame)

The same code compiles and runs fine without -fllvm.

Change History (4)

comment:1 Changed 8 years ago by simonmar

difficulty: Unknown
Milestone: 7.4.1
Priority: normalhigh

David, could you take a look?

comment:2 Changed 8 years ago by dterei

Sure. I think this is probably fixed already by recent stack pointer alignment changes that fixed a lot of serious bugs on OSX that this seems one of. Just have to wait till I'm on a Mac machine.

On Linux x64 the code runs fine and has a very nice speed up (about 35%).

comment:3 Changed 8 years ago by dterei

Resolution: fixed
Status: newclosed

OK so this is fixed already in HEAD as I thought (and in the 7.4 branch). Nice speed up on OSX as well (about 40%).

comment:4 Changed 8 years ago by dterei

thanks for the report though.

Note: See TracTickets for help on using tickets.