[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gluster-devel] pthread_*_init return values
From: |
Emmanuel Dreyfus |
Subject: |
[Gluster-devel] pthread_*_init return values |
Date: |
Sat, 4 Feb 2012 03:57:21 +0100 |
User-agent: |
MacSOUP/2.7 (unregistered for 1841 days) |
Hi
I just tracked down a SIGSEGV in glusterfsd 3.2.5 due to the failure of
checking pthread_mutex_init() return value. Most likely it goe ENOMEM
but carried on, and it crashed later on a pthread_mutex_lock()
A quick inspection of the latest code shows that none of pthread_*_init
is checked for failure. This would be a large change, but it might help
a bit getting relevant error reports, as memory shortage would be
reported as such, instead of generating random SIGSEGV later.
Anyway, the problem suggests glusterfsd runs out of memory. The core
file is 236 MB large. I wonder if this could be a memory leak, or if it
is a regular usage pattern of glusterfsd to eat that much memory. What
reasonable ressource limits should be set for glusterfsd?
--
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
address@hidden
- [Gluster-devel] pthread_*_init return values,
Emmanuel Dreyfus <=
- Re: [Gluster-devel] pthread_*_init return values, Anand Avati, 2012/02/05
- Re: [Gluster-devel] pthread_*_init return values, Emmanuel Dreyfus, 2012/02/05
- Re: [Gluster-devel] pthread_*_init return values, Vijay Bellur, 2012/02/05
- Re: [Gluster-devel] pthread_*_init return values, Emmanuel Dreyfus, 2012/02/06
- Re: [Gluster-devel] pthread_*_init return values, Emmanuel Dreyfus, 2012/02/07
- Re: [Gluster-devel] pthread_*_init return values, Vijay Bellur, 2012/02/07
- Re: [Gluster-devel] pthread_*_init return values, Emmanuel Dreyfus, 2012/02/10