Skip to content

eio_luv: write with wrong size on s390x #433

@talex5

Description

@talex5

The Eio tests fail on s390x. I simplified it to this program, which doesn't use Eio:

let () =
  let bufs = [Bigarray.Array1.of_array Bigarray.Char Bigarray.c_layout [|'H'; 'i'|]] in
  Luv.File.write Luv.File.stdout bufs (fun _err -> assert false)

strace on this shows:

[pid 17512] write(1, "Hi\3\377\204\251\356\0\0\0\3\377\204\251\356\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0!"..., 8589934592) = 2147479552

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions