[JDEV] Jabberd 1.4.2 - Memory Leak !
Asif Ahsan
aahsan at actiontec.com
Mon May 5 17:42:49 CDT 2003
Hi All,
Denying registration from XDB FILE causes memory leak ! I am running
Jabberd
1.4.2 with some modification to allow only certain users to the system.
However
I've found out denying registration is causing accumulating memory leak
To validate me experiment, I've done some testing with original Jabber
source code.
(1.4.2) without any modification elsewhere except xdb_file.c
To reproduce the bug please follow the instructions below (I've used
RedHat 7.2).
1) Return NULL from function : xdb_file_full and return r_ERR from
xbd_file_phandler
(I've commented out the functions and added the returns)
2) Rebuild Jabberd
3) Run process viewer and see the memory usage of jabberd.
4) Now try to register for a new account - Make sure the account doesn't
exist.
5) Keep trying and you will see the memory utilization is going up slowly.
It took me a lot (Few thousands) of login attempt to consume 512 MB of
my systems memory completely.
Then Jabberd crashed.
Anyone has any idea ! It is very critical for me since my setup will get
few thousand failed
login attempts everyday. Any help will be appreciated.
Thank you,
Asif Ahsan
More information about the JDev
mailing list