Questions tagged [glibc]
The GNU C library is used as the C library in the GNU system and most systems with the Linux kernel. It defines the "system calls" and other basic facilities such as open, malloc, printf, exit, etc.
glibc
2,356
questions
0
votes
1
answer
17
views
ASLR and address space for glibc
Take two functions in the libc.so.6 listing, for example:
setvbuf 0017a3f0
system 0014f760
The two are 0x2ac90 distant.
Upon execution with ASLR enabled, will the functions be called from ...
0
votes
1
answer
31
views
undefined reference to `__res_maybe_init@GLIBC_PRIVATE' got while installing krb5
During installing krb5 via brew install krb5, got this error:
gcc-14 -L../../lib -Wl,--enable-new-dtags -Wl,-rpath -Wl,~/opt/brew/Cellar/krb5/1.21.3/lib -g -O2 -DHAVE_CONFIG_H -I../../include -I../....
-2
votes
0
answers
30
views
Can't compile glibc and find headers even though they are there
Configure: error: GNU libc requires kernel header files from Linux 3.2.0 or later to be installed before configuring.
The kernel header files are found usually in /usr/include/asm and
/usr/include/...
0
votes
1
answer
21
views
Use spack installed packages on older OS / ship glibc with spack repository? [duplicate]
We want to use Spack to distribute software among a heterogeneous Linux landscape.
When installing a package, Spack uses the local version of glibc (from Ubuntu 22).
Running the installed package on ...
-4
votes
0
answers
63
views
negative value in __writer member variable of struct pthread_rwlock_t [closed]
I am debugging one deadlock case in my application running on RHEL 7(glibc 2.17). When inspecting using gdb, at the time of deadlock, I see the following values on printing std::shared_timed_mutex(...
0
votes
1
answer
55
views
How to resolve glibc errors in conda enviroment installation?
I am a non root user in a Linux based cluster. It doesn't have docker nor I have privileges to install it. The base environment have GLIBC version 2.17. I am trying to install packages (like faiss-gpu,...
-1
votes
1
answer
64
views
how to debug "*** buffer overflow detected ***: program_name terminated" along with _FORTIFY_SOURCE=2
My program crashes with the message "*** buffer overflow detected ***: program_name terminated", and I suspect it may be related to the compiler option "_FORTIFY_SOURCE=2" that I ...
1
vote
2
answers
1k
views
/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found
I'm having a problem while running container. In my project there are 3 different containers (one for the backend, one for the frontend and one for mongodb), the last two works fine but the first (the ...
0
votes
1
answer
47
views
Undefined Function in Shared library but not in object files
I have a shared library that when put through a nm call shows a undefined symbol for strerror@@GLIBC_2.2.5.
However, when I go through all object files that this shared library was generated from, and ...
1
vote
2
answers
167
views
C free() on Ubuntu VM, a question regarding heap memory
A simple program to allocate and free heap memory:
int main(int argc, char **argv) {
char *b1, *b2, *b3, *b4, *b_large;
b1 = malloc(8);
memset(b1, 0xaa, 8);
b2= malloc(16);
memset(...
1
vote
1
answer
66
views
error: FALLOC_FL_KEEP_SIZE undeclared (first use in this function)
As per the man page, I have defined _GNU_SOURCE before the inclusion of <fcntl.h>:
#include <stdio.h>
#define _GNU_SOURCE /* For Linux's fallocate(). */
#define HAVE_FALLOCATE 1
#...
0
votes
1
answer
85
views
Got different types of error from a single C program in Linux [closed]
I am working on an embedded Linux (kernel-5.10.24) and now I am running a C program to do a stress testing about file copying. The code is using stdio to read and write file, as follows,
#include <...
1
vote
1
answer
46
views
Resolve undefined references to library linked by dlopen
When using
void *ptr = dlopen(path_to_shared_object,RTLD_NOW)
"all undefined symbols in the shared object are resolved before dlopen() returns" (man page).
Is there an analogous way to ...
0
votes
1
answer
18
views
Is Adoptium jdk8u412-b08 built products supported on RHEL7.4? Getting GLIC_2.28 error
Is Adoptium jdk8u412-b08 built products supported on RHEL7.4? Getting GLIBC_2.28 error.
Any suggestions to understand wht is wrong and how to fix it.
Same product works fine on Is Adoptium jdk8u412-...
1
vote
1
answer
74
views
ld and gcc fails to link glibc for assembly code
I am trying to compile an assembly program that calls upon C functions. As a test I am making a terrible hello world calling printf from stdio.h. The C version should look something like
#include <...