Can segfault #5

ndmitchell opened this Issue Nov 27, 2016 · 1 comment


None yet

1 participant


The library can segfault. Pugi requires the document to be kept alive while any nodes are being used, but the Haskell binding doesn't ensure that.


Example code:

segfault :: IO ()
segfault = forever $ do
    bs <- BS.readFile "example.xml"
    let Right root = parse def bs
    let unattend = fromJust $ child "unattend" root
    print $ show unattend
    E.evaluate bs
@ndmitchell ndmitchell added a commit to ndmitchell/stackage that referenced this issue Jan 18, 2017
@ndmitchell ndmitchell Remove pugixml
This library can segfault - see philopon/pugixml-hs#5. It probably shouldn't be in Stackage, with the implied safety, until that is fixed.
@ndmitchell ndmitchell referenced this issue in fpco/stackage Jan 18, 2017

Remove pugixml #2217

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment