pthread_mutex_init failed while using qemu aarch-64
I tried to emulate aarch64 binary using qemu , I copy all the libraries that this binary depend on. and run it with chroot :
chroot . ./qemu-aarch64-static ./myProcess
The problem is that I see in log that pthread_mutex_init (implement in so file ) failed
How can I check why pthread_mutex_init failed? can I see the errno?
I have tried to debug that process ` maybe to see the return value of that function but it doesn't work.
Using chroot . ./qemu-aarch64-static -g 1234 ./myProcess
then...