Memoryleak in python module?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ADCH++ |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I have been doing some testing with the adchpp python module (for adchppgui). I noticed that after a while the memory usage started rising rapidly. I had about 500 users in the hub and got up to 450mb of memory usage about an hour after start.
I thought it might be someting with my code at first, so tested without handeling any commands, by returning ok as soon as i got a command. This did not help, still had memory increasing.
I used this method to see increasing reference counts: http://
These are 2 examples of the output (removed some stuff that wasn't increasing)
Reference counts by name:
-------
510 users in hub
dict 252297
tuple 162306
Entity 121184
AdcCommand 118484
Bot 3218
-------
514 users in hub
dict 312796
tuple 193050
Entity 151088
AdcCommand 148219
Bot 4058
-------
Changed in adchpp: | |
status: | New → Fix Committed |
build\release- mingw\swig\ python_ wrap.cc: 1545: warning: dereferencing pointer 're
s' does break strict-aliasing rules
Could these warnings be the cause of the memory leak? stackoverflow. com/questions/ 98650/what- is-the- strict- aliasing- rule
I googled it, and found this:
http://