Skip to content

Owee_buf.Invalid_format("No ELF magic number") on macOS #4

@aantron

Description

@aantron

This may be a known issue, but I am unable to use prof_spacetime on macOS.

touch foo.ml             # empty file
ocamlfind opt -linkpkg foo.ml
OCAML_SPACETIME_INTERVAL=100 ./a.out
prof_spacetime process -e a.out spacetime-*

results in

Processing series...prof-spacetime: internal error, uncaught exception:
                Owee_buf.Invalid_format("No ELF magic number")
                Raised at file "owee_buf.ml", line 12, characters 25-51
                Called from file "owee_elf.ml", line 15, characters 4-40
                Called from file "owee_elf.ml", line 136, characters 2-16
                Called from file "elf_locations.ml", line 19, characters 26-47
                Called from file "spacetime_lib.ml", line 727, characters 13-62
                Called from file "bin/main.ml", line 45, characters 9-56
                Called from file "src/cmdliner.ml", line 1350, characters 17-26
                Called from file "src/cmdliner.ml", line 1390, characters 6-34

Presumably since a.out is not an ELF file. Not sure if this properly belongs to prof_spacetime, spacetime_lib, or owee.

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