<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/psutil.git/psutil/_psutil_bsd.c, branch proc-iter-fix</title>
<subtitle>github.com: giampaolo/psutil.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psutil.git/'/>
<entry>
<title>Properly handle PID type in C (#1672)</title>
<updated>2020-01-28T23:08:14+00:00</updated>
<author>
<name>Giampaolo Rodola</name>
<email>g.rodola@gmail.com</email>
</author>
<published>2020-01-28T23:08:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psutil.git/commit/?id=994c429c010049a6a0556ce3b0d1af1f86f27867'/>
<id>994c429c010049a6a0556ce3b0d1af1f86f27867</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>OpenBSD fixes (#1673)</title>
<updated>2020-01-27T00:20:51+00:00</updated>
<author>
<name>Giampaolo Rodola</name>
<email>g.rodola@gmail.com</email>
</author>
<published>2020-01-27T00:20:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psutil.git/commit/?id=0e8e5a983ac7e346224cfaa45856738628c1bdc5'/>
<id>0e8e5a983ac7e346224cfaa45856738628c1bdc5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>get rid of globals.c; move stuff in _psutil_common.c</title>
<updated>2020-01-06T23:28:58+00:00</updated>
<author>
<name>Giampaolo Rodola</name>
<email>g.rodola@gmail.com</email>
</author>
<published>2020-01-06T23:28:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psutil.git/commit/?id=d7476f05a73a25faf4a4aea1ac9ad7bec9879c33'/>
<id>d7476f05a73a25faf4a4aea1ac9ad7bec9879c33</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix Process on FreeBSD 12.0+ i386 (#1646)</title>
<updated>2019-12-21T12:54:54+00:00</updated>
<author>
<name>Po-Chuan Hsieh</name>
<email>sunpoet@sunpoet.net</email>
</author>
<published>2019-12-21T12:54:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psutil.git/commit/?id=a7019f06e1accf6b96ba994dab264b8743f20edd'/>
<id>a7019f06e1accf6b96ba994dab264b8743f20edd</id>
<content type='text'>
FreeBSD 12.0+ change ki_tdev from 32 bits to 64 bits.

Reference:	https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242543</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
FreeBSD 12.0+ change ki_tdev from 32 bits to 64 bits.

Reference:	https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242543</pre>
</div>
</content>
</entry>
<entry>
<title>release gil around users()/BSD (#1425)</title>
<updated>2019-11-20T06:38:07+00:00</updated>
<author>
<name>Giampaolo Rodola</name>
<email>g.rodola@gmail.com</email>
</author>
<published>2019-11-20T06:38:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psutil.git/commit/?id=e6faebcd7adaa327d1ce57385cbebe7724d02350'/>
<id>e6faebcd7adaa327d1ce57385cbebe7724d02350</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use Py_CLEAR instead of Py_DECREF to also set the variable to NULL (#1616)</title>
<updated>2019-11-13T13:54:21+00:00</updated>
<author>
<name>Riccardo Schirone</name>
<email>ret2libc@users.noreply.github.com</email>
</author>
<published>2019-11-13T13:54:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psutil.git/commit/?id=7d512c8e4442a896d56505be3e78f1156f443465'/>
<id>7d512c8e4442a896d56505be3e78f1156f443465</id>
<content type='text'>
These files contain loops that convert system data into python objects
and during the process they create objects and dereference their
refcounts after they have been added to the resulting list.

However, in case of errors during the creation of those python objects,
the refcount to previously allocated objects is dropped again with
Py_XDECREF, which should be a no-op in case the paramater is NULL. Even
so, in most of these loops the variables pointing to the objects are
never set to NULL, even after Py_DECREF is called at the end of the loop
iteration. This means, after the first iteration, if an error occurs
those python objects will get their refcount dropped two times,
resulting in a possible double-free.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These files contain loops that convert system data into python objects
and during the process they create objects and dereference their
refcounts after they have been added to the resulting list.

However, in case of errors during the creation of those python objects,
the refcount to previously allocated objects is dropped again with
Py_XDECREF, which should be a no-op in case the paramater is NULL. Even
so, in most of these loops the variables pointing to the objects are
never set to NULL, even after Py_DECREF is called at the end of the loop
iteration. This means, after the first iteration, if an error occurs
those python objects will get their refcount dropped two times,
resulting in a possible double-free.</pre>
</div>
</content>
</entry>
<entry>
<title>Fix _psutil_bsd.c compile error on OpenBSD (#1619)</title>
<updated>2019-11-12T11:59:49+00:00</updated>
<author>
<name>Nathan Houghton</name>
<email>nathan@brainwerk.org</email>
</author>
<published>2019-11-12T11:59:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psutil.git/commit/?id=ef032158fd72790ab2be14e99c45c32d66d96291'/>
<id>ef032158fd72790ab2be14e99c45c32d66d96291</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refactor C modules init (#1603)</title>
<updated>2019-10-21T06:43:06+00:00</updated>
<author>
<name>Giampaolo Rodola</name>
<email>g.rodola@gmail.com</email>
</author>
<published>2019-10-21T06:43:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psutil.git/commit/?id=2ac1cd40168677bfc550bf34a6f04972ed745374'/>
<id>2ac1cd40168677bfc550bf34a6f04972ed745374</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Implement psutil_proc_cwd for NetBSD (#1530)</title>
<updated>2019-06-12T04:38:40+00:00</updated>
<author>
<name>Kamil Rytarowski</name>
<email>krytarowski@users.noreply.github.com</email>
</author>
<published>2019-06-12T04:38:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psutil.git/commit/?id=c2f30702a4db0f4dfbf88842c07532cc187daf5a'/>
<id>c2f30702a4db0f4dfbf88842c07532cc187daf5a</id>
<content type='text'>
Pick KERN_PROC_CWD that is available in 8.99.43 and fallback for
older versions to readlink("/proc/$PID/cwd").</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Pick KERN_PROC_CWD that is available in 8.99.43 and fallback for
older versions to readlink("/proc/$PID/cwd").</pre>
</div>
</content>
</entry>
<entry>
<title>NetBSD fixes (#1526)</title>
<updated>2019-06-11T04:04:16+00:00</updated>
<author>
<name>Kamil Rytarowski</name>
<email>krytarowski@users.noreply.github.com</email>
</author>
<published>2019-06-11T04:04:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psutil.git/commit/?id=1087e2418a35cccf6cdad6c2207308a915cf8a1a'/>
<id>1087e2418a35cccf6cdad6c2207308a915cf8a1a</id>
<content type='text'>
* Fix psutil_get_cmd_args() for NetBSD

Do not overallocate the buffer prompting for KERN_ARGMAX.
It also fixes the code as KERN_ARGMAX was received into a size_t
type, while kernel returned int. It caused argmax to contain
garbage and allocation was randomly crashing with new jemalloc in
the basesystem.

New code prompts for exact buffer size before allocation and
stores argv[] inside it.

Bug investigated by Leonardo Taccari.

* Stop including sys/user.h for NetBSD

This header was removed from the OS as it was empty.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Fix psutil_get_cmd_args() for NetBSD

Do not overallocate the buffer prompting for KERN_ARGMAX.
It also fixes the code as KERN_ARGMAX was received into a size_t
type, while kernel returned int. It caused argmax to contain
garbage and allocation was randomly crashing with new jemalloc in
the basesystem.

New code prompts for exact buffer size before allocation and
stores argv[] inside it.

Bug investigated by Leonardo Taccari.

* Stop including sys/user.h for NetBSD

This header was removed from the OS as it was empty.
</pre>
</div>
</content>
</entry>
</feed>
