[New-bugs-announce] [issue36279] os.wait3() leaks some uninitialized stack when no processes exist

David Wilson report at bugs.python.org
Tue Mar 12 23:27:40 EDT 2019


New submission from David Wilson <dw at botanicus.net>:

Not sure if this is worth reporting..

p = os.popen('sleep 1234')
os.wait3(os.WNOHANG)
os.wait3(os.WNOHANG)
os.wait3(os.WNOHANG)

Notice struct rusage return value. When wait3() succeeds on Linux, but no child was waiting to be reaped, &ru is not updated by the kernel, therefore it is passed uninitialized back to the user, essentially leaking a little bit of stack memory

----------
messages: 337833
nosy: dw
priority: normal
severity: normal
status: open
title: os.wait3() leaks some uninitialized stack when no processes exist

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36279>
_______________________________________


More information about the New-bugs-announce mailing list