glibc

glibc under windows

Is it (or would it) be possible to use glibc under windows (as a replacement of msvcrt)? I knwo this is a stupid question, and answers like cygwin will pop up, but I am really asking: is it possible to link to glibc on windows and use all library functions like with msvcrt? ...

What is the version number field in the output of the linux file command

If I do the following command on my executable called "version", compiled on Fedora Core 11, I get this output file version version: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped What's the significance of the 2.6.18 number towards the end, and is it...

exception generated with qtconcurrent and calling QTime:currentTime

I seem to be getting an exception generated only with a thread created with Qtconcurrent::run I have a class named FPSengine which has a method named FPSengine::getData() that is called by the main thread and 3 other threads (2 QThreads and 1 made with QtConcurrent::run()). Inside FPSengine::getData() I call QTime::currentTime(). If I c...

*** glibc detected *** double free or corruption (fasttop):

A call to clear on a QByteArray generates the following exception: * glibc detected * /home/yan/FPS2/FPS2: double free or corruption (fasttop): 0 ?? 1 ?? 2 free 3 QByteArray::clear() 4 FPSengine::getDatagrams 5 FPSengine::xmitData 6 FPSengine::getData 7 threadDatalog::run 8 ?? 9 start_thread 10 clone 11 ?? 0 is this a qt ...

Will malloc implementations return free-ed memory back to the system?

Will malloc implementations return free-ed memory back to the system? I have a long-living application with active memory allocation-deallocation. What behavior have ptmalloc 1-2-3, dlmalloc (glibc default), tcmalloc (google threaded malloc), solaris 10-11 default malloc and mtmalloc, FreeBSD 8 default malloc (jemalloc), Hoard malloc? ...

Ruby/Glibc coredump (double free or corruption)

I am using a distributed continuous integration tool which I have written by myself in Ruby. It uses a fork of Mike Perham's "politics" for distribution of the tasks. The "politics" module is using threads for the mDNS part. Every now and then I encounter a core dump which I don't understand: *** glibc detected *** ruby: double free or...

pthread functions "_np" suffix

What does "_np" suffix mean here: pthread_mutex_timedlock_np or in macros PTHREAD_MUTEX_TIMED_NP Upd: From glibc2.2 enum { PTHREAD_MUTEX_TIMED_NP, PTHREAD_MUTEX_RECURSIVE_NP, PTHREAD_MUTEX_ERRORCHECK_NP, PTHREAD_MUTEX_ADAPTIVE_NP #ifdef __USE_UNIX98 , PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP, PTHREAD_M...

Can I mix futex-based mutexes with glibc-2.2 linuxthreads mutexes?

Hello If you don't know what is futex and linuxthreads-0.9, please, don't reply. Can I mix in one program futex-based mutex with mutex from linuxthreads-0.8 or -0.9 (which was used in all glibc <=2.2 and in all uClibc) ? I need interprocess mutex (pshared one, PTHREAD_PROCESS_SHARED). So, If threads are started and managed by linuxth...

glibc, glib and gnulib

what are differences in the strength and features in gnulib glib and glibc Thanks! ...

File descriptor leak in nftw(FTW_CHDIR) ?

I am using the POSIX call nftw() for traversing a directory structure. The directory structure is flat - only 4 files and no subdirectories. However when I call nftw() a lot of times on this flat directory then I get an error message after a while: "too many open file handles". It turned out that this happens when the flag FTW_CHDIR ...

glibc detected error

Hey, Can anybody please help me make sense of this error message? *** glibc detected *** ./kprank_new3_norm: munmap_chunk(): invalid pointer: 0x00000000096912d0 *** ======= Backtrace: ========= /lib64/libc.so.6(cfree+0x1b6)[0x3df6e75a36] ./kprank_new3_norm[0x409277] ./kprank_new3_norm[0x4092a9] ./kprank_new3_norm[0x4092ea] ./kprank_new3...

how do I use a QObject in both qthread and mainthread so as to avoid "glibc detected double free or corruption (fasttop):"?

I have a qthread that uses a udp socket to write and read datagrams in a loop. the QUDPSocket is created in the mainthread. How do I handle QObjects that I will use in both the QThread and mainthread. Also is it ok to have the UDP socket in the mainthread and use it in the qthread? ...

pthread_cleanup_pop_restore - what is it?

Hello pthread_cleanup_pop_restore - what is it? It is from glibc. And it is called too often and eats a lot of cpu time. The program uses a lot of getc() calls. I can't change the program (it is the benchmark with fixed source), but want to make it run faster. ...

How can I link glibc statically with qt

I have built a static version of qt and download a static version of glibc. Now I would like to link glibc statically to my qt application. I know about going into the .pro and adding the line LIBS += -L path/to/static_lib but I am wondering if these that is enough? Will it still link glibc statically even though the OS I am building...

what is the oldest glib version that a qt 4.6 application can run with

I am trying to build a standalone qt application (built on ubuntu and deployed on Red Hat 5.3, both 64 bits) after building a qt application that is statically linked to the qt library I tried to run the program on red hat and got an error saying libc.so.6 was not found and that GLIBC_2.9 or GLIBC_2.10 is not installed and needed. I tr...

Vala vapi files documentation

Hi there, I'd like to hack on an existing GLib based C project using vala. Basically what I'm doing is, at the beginning of my build process, using valac to generate .c and .h files from my .vala files and then just compiling the generated files the way I would any .c or .h file. This is probably not the best way, but seems to be workin...

Compiling without libc

I want to compile my C-code without the (g)libc. How can I deactivate it and which functions depend on it? I tried -nostdlib but it doesn't help: The code is compilable and runs, but I can still find the name of the libc in the hexdump of my executable. ...

Enable mtrace (MALLOC_TRACE) for binary program

Hello How can I enable mtrace() (and MALLOC_TRACE env) for a binary program without sources? Thanks ...

mtrace + MALLOC_TRACE - disable buffering

Hello how can I disable buffering on mtrace and output file with name from MALLOC_TRACE ?? ...

overload glibc function, called from glibc.

Hello I can overload some functions from the shared library, with LD_PRELOAD. But this overloading work only for calls from process itself or from other libraries (?). How can I overload function a, with effect on library internal calls? ...