
#7629: segmentation fault in compiled program, involves gtk, selinux -----------------------------------------------------------------+---------- Reporter: wgmitchener | Owner: simonmar Type: bug | Status: infoneeded Priority: high | Milestone: 7.6.2 Component: Runtime System | Version: 7.4.2 Keywords: segmentation fault, multithreading, selinux, gtk | Os: Linux Architecture: x86 | Failure: Runtime crash Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | -----------------------------------------------------------------+---------- Comment(by wgmitchener): Sorry, formatting of the last message went wrong: createAdjustor calls allocateExec (rts/sm/Storage.c) which calls ffi_closure_alloc. So in createAdjustor, line 381, we should have (if I'm reading the libffi documentation correctly): adjustorStub is a pointer ''in data address space'' to the adjustor stub code is a pointer ''in code address space'' to the very same spot in memory and the relative call needs to be calculated in code address space -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7629#comment:22 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler