[GHC] #8108: getGroupEntryForID segfaults in multi-threaded applications

GHC ghc-devs at haskell.org
Sun Aug 11 03:59:38 CEST 2013


#8108: getGroupEntryForID segfaults in multi-threaded applications
-------------------------------------+------------------------------------
        Reporter:  redneb            |            Owner:
            Type:  bug               |           Status:  closed
        Priority:  normal            |        Milestone:
       Component:  libraries/unix    |          Version:  7.6.3
      Resolution:  fixed             |         Keywords:
Operating System:  Unknown/Multiple  |     Architecture:  Unknown/Multiple
 Type of failure:  Runtime crash     |       Difficulty:  Unknown
       Test Case:                    |       Blocked By:
        Blocking:                    |  Related Tickets:
-------------------------------------+------------------------------------
Changes (by thoughtpolice):

 * status:  patch => closed
 * resolution:   => fixed


Comment:

 Thanks for the patch! I went ahead and added tests. Fixed in the `unix`
 package by commit

 {{{
 commit ef683c6ba703106306732f1da68adfb508236334
 Author: Marios Titas <redneb at gmx.com>
 Date:   Mon Jul 8 03:55:59 2013 -0400

     Extract the result of get*_r before we deallocate the auxiliary buffer

     Also comes with tests. This closes #8108.

     Signed-off-by: Austin Seipp <aseipp at pobox.com>
 }}}

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




More information about the ghc-tickets mailing list