Skip to content

Default link options causing seg-faults  #121

@kif

Description

@kif

I found a bug in pyFAI when compiled on manylinux1. All library built on "manylinux1" was segfaulting on all linux distribution but "manylinux1".
The reference to the bug is: silx-kit/pyFAI#649

The core of the bug is that on manylinux1, the linker (gcc) does not try to resolve internally the names:

  • One solution is to use manual name mangling, as implemented.
  • another solution would be to add an extra link argument: -Wl,-Bsymbolic-functions, but I am not sure gcc4.1 from manylinux1 supports it
  • The only portable options found seams to mangle the attribute of the function (attribute((visibility("hidden")))) but this is far from being intuitive.

Any opinion on this ?

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