EmbarkStudios / crash-handling

Collection of crates to deal with crashes
Apache License 2.0
138 stars 13 forks source link

diskwrite example: message passing does not work on Mac #56

Closed loewenheim closed 2 years ago

loewenheim commented 2 years ago

Describe the bug In the diskwrite example, two messages are sent by the client to the server process. On my Macbook, they never arrive.

To Reproduce Steps to reproduce the behavior:

  1. Add a dbg! call to https://github.com/EmbarkStudios/crash-handling/blob/a03917d01580923c15bc9ce4902afe5d40dad45a/minidumper/src/ipc/server.rs#L214 so you can see when a message arrives:
    let deregister = match dbg!(clients[pos].recv(handler.as_ref())) {
  2. Run the example
  3. The dbg! only prints one received message:
    [minidumper/src/ipc/server.rs:214] clients[pos].recv(handler.as_ref()) = Some(
    (
        0,
        [
            202,
            91,
            1,
            0,
        ],
    ),
    )

    This is the request_dump call being received. Expected behavior There should be two more dbg! outputs for the messages that get sent in the example.

Device: