[ ghc-Bugs-952616 ] dlclose segfaults

SourceForge.net noreply at sourceforge.net
Thu May 13 05:56:13 EDT 2004


Bugs item #952616, was opened at 2004-05-12 16:40
Message generated for change (Settings changed) made by volkersf
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=952616&group_id=8032

Category: libraries/unix
Group: 6.2
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Volker Stolz (volkersf)
Summary: dlclose segfaults

Initial Comment:
Minimal test program:

main =
    do putStrLn "opening libm"
       handle <- dlopen "libm.so" [RTLD_LAZY]
       putStrLn "closing libm"
       dlclose handle
       putStrLn "done"

results in:

opening libm
closing libm
zsh: segmentation fault  ./dlbug

Note that withDL also segfaults.

abe.egnor at gmail.com

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

Comment By: Volker Stolz (volkersf)
Date: 2004-05-13 10:16

Message:
Logged In: YES 
user_id=126328

Indeed a bug in DynamicLinker.hsc:
  dlclose (DLHandle h) = throwDLErrorIf_ "dlclose" (== 0) $ c_dlclose h
should read
  dlclose (DLHandle h) = throwDLErrorIf_ "dlclose" (/= 0) $ c_dlclose h

Unluckily, I still can't access the CVS-repository to fix it.

Volker

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=952616&group_id=8032


More information about the Glasgow-haskell-bugs mailing list