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.
Questions tagged [glibc]
2271 questions
1
vote
1 answer
Valgrind won't detect obvious errors
I am in the process of learning C from Zed Shaw's excellent Learn C the Hard Way.
I am running Debian Sid with kernel version 3.9.0-vanillaice amd64 (I compiled it) with glibc 2.17 (installed from Debian's repo's).
I am on Exercise 4 in the…

axuak
- 13
- 4
1
vote
1 answer
realloc(): invalid next size in my code
I'm trying to create a dynamic array in C to implement a queue, when I compile I get the following error: * glibc detected . / Ex: realloc (): invalid next size: 0x0000000001fbe030 **
My code is as follows:
typedef uint32_t u32;
typedef uint64_t…

pabloapast
- 75
- 8
1
vote
0 answers
Php Glob is missing from Registered PHP Streams
I have compile php on centos server on both i386 and x86_64.
On centos x86_64 it work fine it display glob in Registered PHP Streams
But on i386 it doesnt display glob in Registered PHP Streams
Here is the another diff from phpinfo
On i386 : …

Paul Smith
- 31
- 1
- 2
- 6
1
vote
1 answer
linux gcc linked executable missing static definition of stat64
A linux stat64 call is supposed to end up calling xstat64 with a static version of stat64 generated that passes a version along with the call.
We are seeing a condition where a C linked (gcc) version of code that calls stat64, when linked against an…

Peeter Joot
- 7,848
- 7
- 48
- 82
1
vote
2 answers
Error while configuring glibc: Need linker with .init_array/.fini_array support
I am new to linux or LFS. I am building LFS 7.3 on virtual machine. I use Ubuntu 12.10.
For unknown reason, I can't partition the hard drive using cfdisk, so I create partition while installing the OS. I change the $LFS to /home/lost+found (the new…

aswin
- 165
- 3
- 12
1
vote
4 answers
Questions about C++ memory allocation and delete
I'm getting a bad error. When I call delete on an object at the top of an object hierarchy (hoping to the cause the deletion of its child objects), my progam quits and I get this:
*** glibc detected *** /home/mossen/workspace/abbot/Debug/abbot:…

Mossen
- 1,275
- 2
- 12
- 15
1
vote
0 answers
Debugging *** glibc detected *** python: realloc(): invalid next size without Valgrind
I'm running a server-script in Python, and I'm getting a *** glibc detected *** python: realloc(): invalid next size error every once in a while. I can't debug it with Valgrind, as it won't let me run the script continuously as a server while…

knutole
- 1,709
- 2
- 22
- 41
1
vote
1 answer
Undefine a function-like macro in C?
I am trying to do some hacks over the glibc, and I wanted to know whether it's possible to redefine function-like macros ?
For example, has the following macro:
#define expm1(Val) __TGMATH_UNARY_REAL_ONLY (Val, expm1)
How to redefine…

Vincent
- 57,703
- 61
- 205
- 388
1
vote
1 answer
Using a different version of glibc?
I want to do some modifications to the glibc library. The first step is to be able to use a specific version when I compile a program. I'm under ubuntu 12.10 and my directories are :
/mydirectory/glibc-2.17 (where I have extracted the last version…

Vincent
- 57,703
- 61
- 205
- 388
1
vote
1 answer
LFS 7.2 glibc-2.16.0 make error
I'm building an LFS system ( refering to LFS 7.2 )
I got this make error while building glibc-2.16.0:
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/bin/ld: cannot find -lgcc_s
collect2: error: ld returned 1…

AniketGM
- 901
- 1
- 9
- 17
1
vote
2 answers
Why am I getting an invalid pointer?
I'm writing a backtracking problem for homework, and all the code works except for my delete[] at the end.
/*Assg4.cc*/
int main()
{
//removed irrelevant code - see pastebin links if needed
void *data = &datavector;
bool finished =…

iamthesgt
- 81
- 1
- 2
- 11
1
vote
0 answers
LFS v7.2 libc-2.16 error while make
While glibc-2.16 make following error occurred:
glibc-build/math/s_modff.os.dt -MT
/media/vaibhav/sources/glibc-build/math/s_modff.os
../sysdeps/ieee754/flt-32/s_isnanf.c:37:1: error: 'EI_isnanf'
aliased to external symbol 'GI_isnanf' make[2]:…
user2173955
1
vote
1 answer
How do I compile a SPEC CPU 2006 benchmark with older glibc version?
Can somebody please help me out with making the SPEC benchmark choose glibc version 2.6.1 that is present on my system other than the default one gcc takes? primary glibc version is below
ldd --version
ldd (Ubuntu EGLIBC 2.15-0ubuntu10.3) 2.15
The…

akhil28288
- 182
- 1
- 2
- 14
1
vote
1 answer
Linux from scratch, Glibc-2.16 make error
I've been closely following commands from 'Linux from scratch' book version 7.2, and as usual everything was fine until i've reached chapter 6.9, and the problem is when I try to install glibc by 'make' command it throws following error at me.…

5m0k3
- 65
- 1
- 9
1
vote
2 answers
Varying behavior of "%s" in wprintf() in different libc implementations
I've noticed that while
#include
wprintf( L"Hello, %s\n", "world" );
works with standard glibc under Linux, the same thing does not work the same way with newlib. It seems newlib expects wide string for "%s" there, so the following works…

dragonroot
- 5,653
- 3
- 38
- 63