Skip to content

Wrong float4 struct pack on ppc64le and musl-based linux. #92826

Closed as not planned
@dvarrazzo

Description

@dvarrazzo

Normally: struct.Struct('!f').pack(1.0).hex() = 3f800000
On musllinux ppc64le, struct.Struct('!f').pack(1.0).hex() = 00000000

Example working manylinux run
Example broken musllinux run

The architecture is the same for both the runs. Reproducible on Python 3.6-3.10.

See psycopg/psycopg#304
Reported to the Alpine project at https://gitlab.alpinelinux.org/alpine/aports/-/issues/13811

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions