[GHC] #7040: ghci segfault on OS X X86_64 with foreign global data
GHC
cvs-ghc at haskell.org
Fri Jul 6 20:39:10 CEST 2012
#7040: ghci segfault on OS X X86_64 with foreign global data
------------------------------+---------------------------------------------
Reporter: luite | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.4.2 | Keywords:
Os: Unknown/Multiple | Architecture: x86_64 (amd64)
Failure: GHCi crash | Testcase:
Blockedby: | Blocking:
Related: |
------------------------------+---------------------------------------------
Comment(by nus):
Err, rts/Linker.c actually uses section_64 in this case:
{{{
#if x86_64_HOST_ARCH || powerpc64_HOST_ARCH
#define mach_header mach_header_64
#define segment_command segment_command_64
#define section section_64
#define nlist nlist_64
#endif
}}}
{{{
struct section_64 { /* for 64-bit architectures */
char sectname[16]; /* name of this section */
char segname[16]; /* segment this section goes in */
uint64_t addr; /* memory address of this section
*/
uint64_t size; /* size in bytes of this section
*/
uint32_t offset; /* file offset of this section */
uint32_t align; /* section alignment (power of 2)
*/
uint32_t reloff; /* file offset of relocation
entries */
uint32_t nreloc; /* number of relocation entries */
uint32_t flags; /* flags (section type and
attributes)*/
uint32_t reserved1; /* reserved (for offset or index)
*/
uint32_t reserved2; /* reserved (for count or sizeof)
*/
uint32_t reserved3; /* reserved */
};
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7040#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list