Suspected memory leak in PCU

Harald Welte laforge at
Tue Jan 15 16:42:58 UTC 2013

Hi all,

while running osmo-pcu, it appears that it is leaking memory.   At
startup time it consumes 4188 kBytes of virtual memory (on sysmobts-v2),
while after about 8MBytes of data transfer of a single GPRS-MS over 48
hours, the virtual size has expanded to 8584 kBytes.

Now I know that VSS is not RSS, etc. - but the fact that it always only
increasees, and increases with traffic is a clear indication of some
leakage somewehere.

Unfortunately it also seems talloc is not used correctly in osmo-pcu, as
a USR1 signal doesn't really show any allocated objects beyond two.  So
somehow either not all allocations are done with talloc, or the
allocation hierarchy does not link the objects to the root talloc


- Harald Welte <laforge at> 
"Privacy in residential applications is a desirable marketing option."
                                                  (ETSI EN 300 175-7 Ch. A6)

More information about the osmocom-net-gprs mailing list