Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am developing a deamon for my VPS. The program works perfectly in local (that has but in the vps (witch have it have a memory leak related to threads (each thread uses too much memory and that memory isn't free after thread termination), a know bug in old pthreads versions.

But CentOS repositories haven't updated their pthread version.

What is the best way of upgrade my to version 2.11?


EDIT: Really it isn't a memory leak but it simply use too much more memory in 2.5 than in 2.11 (but when the thread is created its memory use is stable).

Sorry for my bad English.

share|improve this question
How many threads are you suing and how much memory are you talking about? It's possible the issue is as simple as a missing pthread_join or pthread_attr_setstacksize. – David Schwartz Aug 27 '11 at 18:47
up vote 2 down vote accepted

The version of pthreads is closely related to the version of glibc on the system, and updating glibc on CentOS is infeasible. You may be able to rebuild a pthreads from a newer version of glibc, but I cannot recommend this.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.