Opened 11 years ago

Closed 11 years ago

Last modified 46 years ago

#250 closed bug (Fixed)

getUserEntryForID dies

Reported by: nobody Owned by: nobody
Priority: normal Milestone:
Component: libraries/unix Version: None
Keywords: Cc:
Operating System: Architecture:
Type of failure: Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


The following program dies with an "Illegal
instruction" error:

   module Main where

   import System.Posix.User

   main = do getUserEntryForID 0
             return ()

This is also the case for all the other uids I tried.

I'm running ghc 6.2.1 on Solaris 9.

- Ed

Change History (2)

comment:1 Changed 11 years ago by volkersf

Logged In: YES 

Indeed a bug. The library uses the POSIX-signature which has different 
arguments from Solaris 9 own getpwduid_r. The .hsc-file must be compiled 
with _POSIX_PTHREAD_SEMANTICS like e.g. from libraries/base/cbits/

comment:2 Changed 11 years ago by volkersf

  • Status changed from assigned to closed
Logged In: YES 

Fixed in CVS and I expect it to be available in the upcoming 6.2.2. This 
turned out to be much more tricky after all: Solaris defines some functions 
in system headers which the mangler mangled to death when it should leave 
them untouched.
Note: See TracTickets for help on using tickets.