Skip to content

sourceProcessWithStreams crashes if process closes input stream #523

@janvogt

Description

@janvogt

Running vips on a .bmp file via Data.Conduit.Process.sourceProcessWithStreams
fails incorrect ResourceVanish IO exception.

I've created a minimal reproduction that exposes this interaction.

Running ./repro.sh within the provided environment fails with

Repro.hs: sample1.bmp: withBinaryFile: resource vanished (Broken pipe)

despite the file clearly existing.

Also it has to be the interaction, of these three aspects. Every aspect on its own works as shown as well in the repro:

  • sourceProcessWithStreams works with cat on .bmp and all other files tested
  • sourceProcessWithStreams works with vips on .heic and all files that are not .bmp
  • vips on the command line works with .bmp and all other files tested

Only .bmp files processed with vips using sourceProcessWithStreams fails afaick.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions