All of lore.kernel.org
 help / color / mirror / Atom feed
* Python auparse bindings memory leak
@ 2016-04-14 21:37 Santosh Ananthakrishnan
  2016-04-21 19:16 ` Steve Grubb
  0 siblings, 1 reply; 2+ messages in thread
From: Santosh Ananthakrishnan @ 2016-04-14 21:37 UTC (permalink / raw)
  To: linux-audit


[-- Attachment #1.1: Type: text/plain, Size: 421 bytes --]

Hi list

The get_timestamp function in the auparse extension module seems to have an
extra Py_INCREF. There's already a #FIXME at the line:
https://fedorahosted.org/audit/browser/tags/audit-2.5.1/bindings/python/auparse_python.c#L1090
.

Has this been investigated before? Rebuilding the package with that
increment removed resolved our memory usage issues, so I'm hoping this
doesn't silently break something.

-Santosh

[-- Attachment #1.2: Type: text/html, Size: 651 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Python auparse bindings memory leak
  2016-04-14 21:37 Python auparse bindings memory leak Santosh Ananthakrishnan
@ 2016-04-21 19:16 ` Steve Grubb
  0 siblings, 0 replies; 2+ messages in thread
From: Steve Grubb @ 2016-04-21 19:16 UTC (permalink / raw)
  To: linux-audit

Hello,

On Thursday, April 14, 2016 02:37:19 PM Santosh Ananthakrishnan wrote:
> The get_timestamp function in the auparse extension module seems to have an
> extra Py_INCREF. There's already a #FIXME at the line:
> https://fedorahosted.org/audit/browser/tags/audit-2.5.1/bindings/python/aupa
> rse_python.c#L1090 .
> 
> Has this been investigated before?

I was able to confirm this is leaking memory.

> Rebuilding the package with that increment removed resolved our memory usage
> issues, so I'm hoping this doesn't silently break something.

That appears to be the fix. Thanks for reporting the issue.

-Steve

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-04-21 19:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-14 21:37 Python auparse bindings memory leak Santosh Ananthakrishnan
2016-04-21 19:16 ` Steve Grubb

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.