Skip to content

Thread analysis crashes with musl #825

Open
@sim642

Description

@sim642

Version 2.0.0 release on opam reveals the following thread analysis crashes on alpine, which notably uses musl instead of glibc:

  • 10/25 tid-array-malloc
  • 10/26 tid-array-malloc-free

Thus, I have disabled Goblint on alpine.

The crash itself is

Fatal error: exception Goblint_lib.SetDomain.Unsupported("elements on `Top")

but the root cause is the warning

[Warning][Unknown] size of error: abstract type (tests/regression/10-synch/25-tid-array-malloc.c:12:5-12:48

The issue is that these tests use sizeof(pthread_t), but in musl headers pthread_t is defined as an abstract struct, so its size is unknown.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions