Skip to main content

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.

0 votes
0 answers
8 views

Use spack installed packages on older OS / ship glibc with spack repository?

We want to use Spack to distribute software among a heterogeneous Linxu landscape. When installing a package, Spack uses the local version of glibc (from Ubuntu 22). Running the installed package on ...
Dominik Schmidt's user avatar
-4 votes
0 answers
62 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(...
Vishal Sharma's user avatar
0 votes
1 answer
38 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,...
Ayush Gupta's user avatar
-1 votes
1 answer
51 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 ...
user180574's user avatar
  • 5,960
1 vote
2 answers
709 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 ...
Ghignatti Nicolò's user avatar
0 votes
1 answer
46 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 ...
pcd3897's user avatar
  • 11
1 vote
2 answers
164 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(...
rdre8's user avatar
  • 45
1 vote
1 answer
65 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 #...
Harith's user avatar
  • 7,235
0 votes
1 answer
84 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 <...
wangt13's user avatar
  • 1,069
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 ...
mrheinhardt's user avatar
0 votes
1 answer
14 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-...
PoojaLearner27's user avatar
1 vote
1 answer
66 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 <...
Player_X_YT's user avatar
0 votes
0 answers
33 views

How can I know arm compiler's glibc version?

By googling, I could download the glibc source by git clone git://sourceware.org/git/glibc.git Now in our project, we are using arm64 compiler this one. $ aarch64-none-elf-gcc --version aarch64-...
Chan Kim's user avatar
  • 5,653
2 votes
1 answer
127 views

Are there memory leaks in the glibc fdopen implementation?

The source code is here: https://github.com/bminor/glibc/blob/master/libio/iofdopen.c As shown in the iofdopen.c , line 122 of the code creates a new_f object with malloc new_f = (struct locked_FILE *)...
simonzgx's user avatar
2 votes
1 answer
84 views

Can I point CMake to use the (older) libc of a different rootfs?

I'm moving this here from the CMake Discourse. I’m trying to set up CMake to cross compile an application that will run on an old (Debian stretch ~2017) Linux system (functioning, but slow, so I'd ...
Alessandro Bertulli's user avatar

15 30 50 per page
1
2 3 4 5
157