Skip to content

backtraces are not printed when running under Alpine Linux #1514

@jbehrends

Description

@jbehrends

Alpine: 3.5.2
uWSGI 2.0.14

I'm experiencing a segfault issue with uwsgi running inside of Alpine, and no matter what I do I can't get ANY backtrace to be printed. I've tested this by installing the same uwsgi configuration into unbuntu and forcing a segfault (kill -SIGSEGV ) and I will get a backtrace everytime.

Poking around in the code, I think it's related to this line:

#if defined(__GLIBC__) || (defined(__APPLE__) && !defined(NO_EXECINFO)) || defined(UWSGI_HAS_EXECINFO)

I'm guessing the lack of GLIBC is the root cause. Not knowing a lot about c, would it be possible to update this to support musl libc as well for printing backtraces?

Thx

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