Skip to content

PE created by MSYS2+Mingw-w64 GCC can't be parsed #506

@loewenheim

Description

@loewenheim

At Sentry, we've received a report that PE files containing DWARF debug info produced by MSYS2+Mingw-w64 GCC can't be processed. The .debug files in https://packages.msys2.org/packages/mingw-w64-x86_64-qt6-base-debug can serve as an example:

❯ ~/code/symbolic/target/debug/object_debug mingw-w64-clang-x86_64-qt6-base-debug-6.10.1-2-any.pkg/clang64/share/qt6/bin/cmake_automoc_parser.debug
Inspecting mingw-w64-clang-x86_64-qt6-base-debug-6.10.1-2-any.pkg/clang64/share/qt6/bin/cmake_automoc_parser.debug
File format: pe
Objects:
 - Error: invalid PE file
   caused by bad input invalid utf8 (22040925)
   caused by bad input invalid utf8 (22040925)

(The object_debug binary from the symbolic repo uses goblin to parse PE files).

I'm using goblin 0.10.4 in this case.

This issue might be a consequence of #487.

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