pthread_mutex_lock and pthread_mutex_unlock

Paul Floyd pjfloyd at wanadoo.fr
Fri Jan 16 10:27:21 PST 2026


On 2026-01-16 17:17, Michael Neumann wrote:
> On Thu, Jan 15, 2026 at 01:43:33PM +0100, Paul Floyd wrote:
> % gdb --version
> GNU gdb (GDB) 7.6.1
>
> When I set a "break pthread_mutex_lock" it correctly stops there:
>
> Breakpoint 1, 0x0000000800668c64 in pthread_mutex_lock () from /usr/lib/libpthread.so.0
> (gdb) bt
> #0  0x0000000800668c64 in pthread_mutex_lock () from /usr/lib/libpthread.so.0
> #1  0x0000000000400921 in main ()
>

Hi Michael

Thanks for your reply, but that's is not what I'm asking about.

It is the calls that originate in /libexec/ld-elf.so.2 before main has 
started that I need to understand.

Other than _pthread_mutex_lock that I've already noticed are there any 
other special versions with a leading underscore that are used from rtld?

Regards

Paul



More information about the Users mailing list