tikv / pprof-rs

A Rust CPU profiler implemented with the help of backtrace-rs
Apache License 2.0
1.32k stars 104 forks source link

Cannot link with `pthread_getname_np` on musl #143

Closed YangKeao closed 2 years ago

YangKeao commented 2 years ago

Even with the latest musl, using the extern symbol pthread_getname_np will fail, though nm libc.a |grep pthread|grep getname tells us it has the symbol:

0000000000000000 T pthread_getname_np

Find out why we cannot link with it. Maybe we could prepare a minimal reproducible example and report to the libc crate :thinking:

YangKeao commented 2 years ago

Duplicated of https://github.com/tikv/pprof-rs/issues/142