Skip to content

"Illegal instruction" from oxipng on old CPU (i5-650) #75612

@vkcz

Description

@vkcz

I was trying to run oxipng (PNG optimization software in Rust), but it did not finish correctly; it terminated with the message Illegal instruction.

The computer I was using was running Windows 7 on the x86_64 Intel Core i5-650, and I installed and ran oxipng through Cygwin bash.

I installed oxipng with cargo install oxipng and invoked oxipng with oxipng example.png (in a directory containing a valid example.png).

oxipng gave this output:

Processing: example.png
    2048x2048 pixels, PNG format
    4x8 bits/pixel, RGBA
    IDAT size = 183755 bytes
    File size = 183812 bytes
Illegal instruction

There were no errors when I was installing oxipng, nor when I ran oxipng --help. I have tried oxipng on other images with similar results.

(I understand this seems focused on oxipng, but someone I talked to outside of Github had oxipng working on their device and said the issue should be here.)

I was using rustc stable version 1.45.2 and cargo 1.45.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.O-windowsOperating system: WindowsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions