Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am developing a deamon for my VPS. The program works perfectly in local (that has pthread-2.11.so) but in the vps (witch have pthread-2.5.so) 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 pthread.so to version 2.11?

Thanks.

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

1 Answer 1

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

 
discard

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.