tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Strange pthread_self() return value



On Fri, Jun 11, 2021 at 06:48:57PM +0200, Martin Husemann wrote:
> On Fri, Jun 11, 2021 at 04:41:51PM +0000, nia wrote:
> > However, this value comes from the return value of pthread_self():
> 
> You did not link with -pthread (so you get the libc stub of pthread_self()).
> 
> Martin
Hmm..
amnesia$ readelf -d /usr/pkg/lib/libhwloc.so
Dynamic section at offset 0x2c2d0 contains 29 entries:
 Tag Type Name/Value
 0x0000000000000001 (NEEDED) Shared library: [libpthread.so.1]


Home | Main Index | Thread Index | Old Index

AltStyle によって変換されたページ (->オリジナル) /