Skip to content

Bad flushing of debuggee output when debugger is statically compiled #57

@alt-romes

Description

@alt-romes

It looks like 2b54e7f didn't fix what I thought it did in the flushing logic.

A simple program highlights this problem:

main = do
  putStrLn "Hello"
  putStrLn "Oh"
  putStrLn "No"

If you break on the first print, then step, you should see "Hello". But you don't.
If you added hFlush stdout it would work.

The fix to this ticket should include a test which stops on that line and then steps and verifies the output.

Looking at the commit I linked and grepping for hSetBuffering will show the handles that are being manipulated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    GHCRequires changing GHC and/or the RTSMuniHac 25Tasks worked on or created during MuniHac25

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions