Your message dated Fri, 17 Feb 2012 12:19:24 +0000
with message-id <[email protected]>
and subject line Bug#428560: fixed in pystatgrab 0.5-1
has caused the Debian Bug report #428560,
regarding pystatgrab: statgrab.sg_get_process_stats() crashes python
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
428560: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=428560
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: pystatgrab
Severity: normal
Tags: patch
Calling statgrab.sg_get_process_stats() more than once will crash the
python interpreter. This was fixed back in 2005 and is detailed here:
http://cvs.i-scream.org/viewvc.cgi/projects/pystatgrab/_statgrab.pyx?r1=1.17&r2=1.18
Patch below:
--- _statgrab.pyx 2005-07-30 14:16:14.000000000 -0400
+++ ../_statgrab.pyx 2007-06-12 12:00:51.000000000 -0400
@@ -597,13 +597,20 @@
raise StatgrabException, 'sg_get_process_stats() returned NULL'
list = []
for i from 0 <= i < entries:
- if s.process_name == NULL:
- s.process_name = ''
- if s.proctitle == NULL:
- s.proctitle = ''
+
+ if s.process_name is NULL:
+ process_name = ''
+ else:
+ process_name = s.process_name
+
+ if s.proctitle is NULL:
+ proctitle = ''
+ else:
+ proctitle = s.proctitle
+
list.append(Result(
- {'process_name': s.process_name,
- 'proctitle' : s.proctitle,
+ {'process_name': process_name,
+ 'proctitle' : proctitle,
'pid' : s.pid,
'parent' : s.parent,
'pgid' : s.pgid,
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (700, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.20.1
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
--- End Message ---
--- Begin Message ---
Source: pystatgrab
Source-Version: 0.5-1
We believe that the bug you reported is fixed in the latest version of
pystatgrab, which is due to be installed in the Debian FTP archive:
pystatgrab_0.5-1.debian.tar.gz
to main/p/pystatgrab/pystatgrab_0.5-1.debian.tar.gz
pystatgrab_0.5-1.dsc
to main/p/pystatgrab/pystatgrab_0.5-1.dsc
pystatgrab_0.5.orig.tar.gz
to main/p/pystatgrab/pystatgrab_0.5.orig.tar.gz
python-statgrab_0.5-1_amd64.deb
to main/p/pystatgrab/python-statgrab_0.5-1_amd64.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Bartosz Fenski <[email protected]> (supplier of updated pystatgrab package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Fri, 17 Feb 2012 12:13:05 +0100
Source: pystatgrab
Binary: python-statgrab
Architecture: source amd64
Version: 0.5-1
Distribution: unstable
Urgency: low
Maintainer: Bartosz Fenski <[email protected]>
Changed-By: Bartosz Fenski <[email protected]>
Description:
python-statgrab - interface to the libstatgrab library for Python
Closes: 353816 428560 575430 615437
Changes:
pystatgrab (0.5-1) unstable; urgency=low
.
* New upstream version (Closes: #575430)
- fixes crash of python when running statgrab.sg_get_process_stats()
more than once (Closes: #428560)
* Repackaged from scratch, new Standards-Version, new source format,
debhelper compatibility set to 8.
* Fixed dependencies (Closes: #353816)
* Uses Homepage header (Closes: #615437)
Checksums-Sha1:
217b3c72f5dbb118d5b87b4eb2c8dab91c0a7e36 1136 pystatgrab_0.5-1.dsc
e886963ab5036850e987fbea5411a543e2939531 26867 pystatgrab_0.5.orig.tar.gz
cd244c306aa862971bc7298567050e976a14fad4 1762 pystatgrab_0.5-1.debian.tar.gz
9affdcd3d75813e55b400056416bca979686406a 5548 python-statgrab_0.5-1_amd64.deb
Checksums-Sha256:
56b044296aad0115c4007ce56676048891ba656a4d2bc2cb87855534bf2be5c1 1136
pystatgrab_0.5-1.dsc
f6a0b4a2dca70f346b8bbbd705b8dc772dc4e8c7cde2b2b83c85eb65c4cfe1d8 26867
pystatgrab_0.5.orig.tar.gz
fb9917dfeebe9563b36e5bbaf8adc880f19b81064981cec79637724f2a00ffc3 1762
pystatgrab_0.5-1.debian.tar.gz
992d0586e7a3599e540196e9aa3a317ef445e8ac6eff616150c44357f3ec23c0 5548
python-statgrab_0.5-1_amd64.deb
Files:
45c53c8082af53ef6e57134309c3d359 1136 python optional pystatgrab_0.5-1.dsc
b7a3451ba682ebf167fcb43f1769a121 26867 python optional
pystatgrab_0.5.orig.tar.gz
56037e6ce2c44b4c5f8ea3b664366f96 1762 python optional
pystatgrab_0.5-1.debian.tar.gz
aff51d4737aab8d1252b803fd0655b8f 5548 python optional
python-statgrab_0.5-1_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iEYEARECAAYFAk8+QO8ACgkQhQui3hP+/EBwgwCguDvzwHXJS0APNoqomGzb/6y4
MZ8AoK4aVBfQR5aGmwiw81RBB23jia3n
=A4Pd
-----END PGP SIGNATURE-----
--- End Message ---