Bugs item #1012521, was opened at 2004-08-19 23:23
Message generated for change (Comment added) made by volkersf
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1012521&group_id=8032

Category: libraries/unix
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: getUserEntryForID dies

Initial Comment:
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

----------------------------------------------------------------------

>Comment By: Volker Stolz (volkersf)
Date: 2004-09-16 10:16

Message:
Logged In: YES 
user_id=126328

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.

----------------------------------------------------------------------

Comment By: Volker Stolz (volkersf)
Date: 2004-08-20 09:27

Message:
Logged In: YES 
user_id=126328

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/
dirUtils.c.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1012521&group_id=8032
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to