[GHC] #7629: segmentation fault in compiled program, involves gtk, selinux

GHC cvs-ghc at haskell.org
Tue Mar 26 15:44:18 CET 2013


#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):

 Doing some work with gdb with ghc-bug-003 (which I'll attach in a minute)

 On Ubuntu 12.10 with GHC 7.4.2 (no SELinux, no seg fault), the call to
 set_callback comes out like this:

 {{{
 Breakpoint 1, set_callback (f=0xb7b3f02c, d=10, fin=0xb7b3f00c) at
 Callback.c:18
 18  p_callback = f;
 (gdb) x/i f
    0xb7b3f02c:call   0x80a1358 <adjustorCode>
 (gdb) print adjustorCode
 $1 = {<text variable, no debug info>} 0x80a1358 <adjustorCode>
 }}}


 On Fedora 17 with GHC 7.4.2 (with SELinux, seg faults), the call to
 set_callback comes out like this:

 {{{
 Breakpoint 1, set_callback (f=0xb7ffd02c, d=10, fin=0xb7ffd00c) at
 Callback.c:18
 18        p_callback = f;
 (gdb) x/i f
    0xb7ffd02c:  call   0x82274b8
 (gdb) print adjustorCode
 $1 = {<text variable, no debug info>} 0x82264b8 <adjustorCode>
 }}}

 so is something going wrong with this adjustorCode function?

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7629#comment:19>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the ghc-tickets mailing list