st_fj
st_fj

Reputation: 31

Is there any function in musl like "backtrace" in glibc

I'm trying to translate my code from centos to Alpine-docker , but Alpine really lack of some functions, like "backtrace" "pthread_rwlockattr_setkind_np" etc.. How could I use them in Alpine or are there any functions instead?

Upvotes: 3

Views: 1314

Answers (1)

smoku
smoku

Reputation: 1484

musl does not provide backtrace.

You may use an external libexecinfo library to provide it. It was created exactly for the purpose of porting programs requiring glibc backtrace facility.

Upvotes: 1

Related Questions