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.

2271 questions
1
vote
0 answers

iconv does not convert bosnian literals on CentOS, but works on Windows

CentOS Case: When on http://urloment.com/ I post a code snippet of: "ćććć" I will get an output: Ä Like this: http://urloment.com/TG5vg1eC However, when I try the same thing on Windows, it will store the full value in my database table: "ćććć". On…
user1386320
1
vote
1 answer

What are the pros and cons of collecting libc backtrace always?

As the question states, is it useful to always collect a software-based backtrace (like using libc backtrace http://www.gnu.org/software/libc/manual/html_node/Backtraces.html ) in all error functions and signal handlers ? Would it not be very…
user655617
  • 318
  • 3
  • 13
1
vote
1 answer

glibc detected: realloc(): invalid next size

I'm trying to create a dynamic array which stores the words of a given sentence in a dynamic 2-D array using a double pointer, but whenever I give more than three words, I get the following error: *** glibc detected *** ./a.out: realloc(): invalid…
SGuard
  • 23
  • 1
  • 5
1
vote
1 answer

Valgrind 2.20 to be used but requires glibc 2.1 - 2.3 version

I want to install valgrind 2.20. It requires glibc 2.1-2.3 version. I am having glibc2.11? What can i change in configure file to solve the problem? I tried this link valgrind doesn't accept newest version of glibc And pasted this { $as_echo…
Sagar Shah
  • 123
  • 1
  • 5
1
vote
1 answer

SublimeText always crash after start

Sublime suddenly began to fall always after start. *** glibc detected *** sublime: free(): invalid pointer: 0x42197460 *** full: https://gist.github.com/4321825 I have already tried to delete config and rerun sublime and reinstall it but it hadn't…
freemanoid
  • 14,592
  • 6
  • 54
  • 77
1
vote
1 answer

What might be the possible reason for causing if_nametoindex() slow?

On my testing regular linux box(kernel 3.4), it runs very fast. But when I move my program to another linux box(kernel 3.0), this function runs very slow, it takes about 2.5ms to return, this is like 500x slower, which causes a big performance…
wei
  • 6,629
  • 7
  • 40
  • 52
1
vote
2 answers

glibc detected - double free or corruption

I am writing a simple stack program in C that has a flexible array of void*'s at the end. When more elements are needed to push into the array, I am using realloc() to make a new stack, free the old one and assign the new to the old one.(I don't…
Andariel
  • 133
  • 4
  • 9
1
vote
1 answer

Google NaCl get IP and system information

Beginner question Problem Function calls gethostbyname, getifaddrs, uname, system always fails. I guess that the Native Client runtime system prevents executing considering it as unsafe activity? If that's true, what is an alternative? On…
1
vote
1 answer

glibc detected free() while using posix threads in C

I keep getting this "glibc detected free(): invalid next size (fast)" error but dont know exactly why. I read it is because of an out of bounds error but dont see anywhere in my code where this could be happening, does anyone see anything I…
kdhalljr
  • 21
  • 1
1
vote
1 answer

A Strange Error Caused By "arm-linux-gcc" And "sim-panalyzer" Locates In Glibc Function "dl_aux_init"

I write a simplist c-language program which has no extra functional code and library dependency: void main() { } Save it as "Test.c" and I compile it with "arm-linux-gcc" for arm architect and ouput an elf format file "Test", the command is…
Florian
  • 45
  • 4
1
vote
1 answer

libspotify and glibc versions

I would like to develop a Linux application that uses libspotify (latest and greatest libspotify-12.1.51-Linux-armv6). The problem I'm facing is that my target system uses an older version (2.3.6) of glibc compared to the one used by current…
1
vote
1 answer

Update glibc in Cygwin

I just wanted to make use of the Cygwin x server, but when trying to start a program I am told that glibc is too old. I have version 2.3.2 but would need version 2.3.6. Is there any easy way to update this? Cant find this package in the cygwin setup…
Paul Stam
1
vote
0 answers

compile glibc without indirect functions

I am using PIN to instrument malloc/free from within glibc. PIN cannot instrument indirect functions and as in glibc ver 2.15+ malloc is defined as an ifunct. I believe reverting to an older ver of glibc (Ubuntu 12.04 uses 2.15) is close to…
hlitz
  • 635
  • 6
  • 24
1
vote
3 answers

glibc detected double free or corruption

What is wrong with the code below.It runs Perfectly fine for some inputs and crashes for some special inputs? #include #include #include using namespace std; struct event { string date,time,content; bool…
nikel
  • 3,402
  • 11
  • 45
  • 71
1
vote
1 answer

c++ boost thread glibc detected invalid pointer

I am trying out the boost thread library with the following piece of code. #include #include class TestSource{ private: void workerFunc(int x){ int p = 0; for (int i = 0; i < 100000; ++i){ p += 1; …
Aditya Sihag
  • 5,057
  • 4
  • 32
  • 43
1 2 3
99
100