Skip to content
Advertisement

Tag: glibc

Why is the pthread_mutex_t struct all zeros in gdb?

What causes pthread_mutex_t struct to be all zeros? Core of a deadlocked ARM test application in a gdb session: Answer pthread_mutex_t is used for all mutex types and some of its members are only used for specific mutex types. owner member is set for at least the following mutex types: PTHREAD_MUTEX_ERRORCHECK_NP PTHREAD_MUTEX_RECURSIVE_NP See glibc implementation of pthread_mutex_trylock for full more

Redhat/CentOS – `GLIBC_2.18′ not found

I was trying to run redis server (on a CentOS server) with specific module: and getting error: this is the linux version: Also this is what is showing for /lib64/libc.so.6: Also: Tried as well: What is the process of installing/setting GLIBC_2.18 on Centos/Redhat servers? Thanks.. Answer You can upgrade to the Red Hat Enterprise Linux 8, which comes with glibc

Understanding the strcmp function of gnu libc

Here is the strcmp function that i found in the glibc: This is a pretty simple function where the body of while initiates c1 and c2 with the value of *s1 and *s2 and continues till either c1 is nul or the values of c1 and c2 are equal, then returns the difference between c1 and c2. What i didn’t

Fedora 28 / GLIBC 2.27 libm.so.6 logf() and powf() c++

As I am sure other Fedora 28 users will know, the OS’s glibc was recently updated to glibc 2.27. Amongst many other things, 2.27 has added new implementations of logf() and powf(). This has caused my application to fail to run on distributions with an older glibc (Debian, for example). When the application is invoked on Debian, the following error

Where to find the source code of timespec_get?

The C11 standard provides the function timespec_get. If I run the example code on cppreference, or on my computer, it works: However, if I look at the sources of glibc here, the code is the following: Which… should not work… Which leads to the question: where is the source code of timespec_get that is actually called? Answer The timespec_get function’s

How to log to /var/log/mail.log using rsyslogd?

I am currently playing around with logging under Linux. I have made the following very simple test application (in plain C): This “application” compiles, and when I execute it, it generates an entry in /var/log/syslog, but no entry in /var/log/mail.log and no entry in /var/log/mail.err. Could somebody please explain why? I am using rsyslogd on the test machine; this is

Compilation with glibc 2.7 include path fails

I have compiled on my SLES 12.3 g++ 7.3 into the /FaF directory and glibc 2.27 is installed into the /FaF/glibc directory. Compiling this very simple program with g++ -c testAbs.cpp -I /FaF/glibc/include fails horribly: See the long error list. Below I inserted the first 15 lines – in total there are more than 300 lines of error messages. Compiling

Raw clone system call not working correctly

I’m trying to use the raw clone system call to avoid having to refactor the pid 0 code into a function. Linux requires stacks to by 16 bytes, additionally, libc reserves 16 bits presumably to store ptid and ctid. The code below creates an aligned stack then exits from the child. After waiting for the child cloned by libc’s wrapper

android sdk build tools 25 on centos 6.8 error

I’m using jenkins for CI and after updating my build tools version to 25 I got this error: I need to use buildtools 25 and my server centos version is 6.8. How can I update glibc ? Answer Apparently, the program you are trying to use was not compiled for Red Hat Enterprise Linux 6 (which only provides glibc 2.12,

Advertisement