Menu

#260 SunOS5.8: getEffectiveUserNamem, crash illegal instruction

6.0.1
closed-fixed
nobody
5
2004-02-19
2003-09-16
klaus
No

hello.

on SunOS 5.8, with a fresh compiled ghc (configure
-prefix=/home/xxx/local && make)
and the some for the precompiled version.

the simple programm crash (see test.hs).
gdb says > gdb ./test
This GDB was configured as "sparc-sun-solaris2.8"...
(gdb) run
Starting program: /home/xxx/test
Program received signal SIGILL, Illegal instruction.
0x1f16dc in getgrnam_r ()
(gdb)

-- test.hs
import Posix

main :: IO ()
main = do
user <- Posix.getEffectiveUserName
print user
----
thx in advance
klaus

Discussion

  • Don Stewart

    Don Stewart - 2003-10-27

    Logged In: YES
    user_id=880987

    A fix for Solaris has been committed for this, defining
    _POSIX_PTHREAD_SEMANTICS to get the proper getgrnam_r.
    It is untested as yet.

    See this thread:
    http://www.haskell.org/pipermail/glasgow-haskell-bugs/2003-September/003601.html

    At the time it was also noted that getgrnam_r functions did
    not work on FreeBSD and OpenBSD as well, although for
    different reasons. This hasn't been resolved yet.

    -- Don

     
  • Volker Stolz

    Volker Stolz - 2004-02-19
    • labels: --> libraries/unix
    • status: open --> closed-fixed
     
  • Volker Stolz

    Volker Stolz - 2004-02-19

    Logged In: YES
    user_id=126328

    Fixed in 6.2+.

    Tested on SunOS 5.9 & FreeBSD 5

     

Log in to post a comment.