Your message dated Mon, 19 Jul 2021 15:48:46 +0000
with message-id <[email protected]>
and subject line Bug#958129: fixed in smem 1.5-1.1
has caused the Debian Bug report #958129,
regarding smem: Program crashes when attempting to generate a bar graph
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.)


-- 
958129: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=958129
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: smem
Version: 1.5-1
Severity: important
Tags: patch

Hello,

Attempts to generate bar graph (option --bar) cause smem to crash with a
traceback:

Traceback (most recent call last):
  File "/usr/bin/smem", line 727, in <module>
    showpids()
  File "/usr/bin/smem", line 299, in showpids
    showtable(pt.keys(), fields, columns.split(), options.sort or 'pss')
  File "/usr/bin/smem", line 558, in showtable
    showbar(l, columns, sort)
  File "/usr/bin/smem", line 649, in showbar
    for n in xrange(len(rc)):
NameError: name 'xrange' is not defined

This happens because the Debian version of smem uses Python 3, which
deprecated the xrange() function.

Patch attached.

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (200, 'testing'), (150, 'stable'), (90, 'unstable'), (70, 
'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-8-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages smem depends on:
ii  python3  3.8.2-2

Versions of packages smem recommends:
ii  python3-matplotlib  3.1.2-2

smem suggests no packages.

-- no debconf information
--- original/smem       2020-04-18 12:20:22.524849106 -0700
+++ fixed/smem  2020-04-18 12:19:24.912251338 -0700
@@ -646,7 +646,7 @@
 
     pl = []
     ind = numpy.arange(len(l))
-    for n in xrange(len(rc)):
+    for n in range(len(rc)):
         pl.append(pylab.bar(ind + offset + width * n,
                              [x[1][rc[n]] for x in l], width, color=gc(n)))
 

--- End Message ---
--- Begin Message ---
Source: smem
Source-Version: 1.5-1.1
Done: Adrian Bunk <[email protected]>

We believe that the bug you reported is fixed in the latest version of
smem, which is due to be installed in the Debian FTP archive.

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.
Adrian Bunk <[email protected]> (supplier of updated smem 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: SHA512

Format: 1.8
Date: Sat, 17 Jul 2021 22:47:50 +0300
Source: smem
Architecture: source
Version: 1.5-1.1
Distribution: unstable
Urgency: medium
Maintainer: Michal Čihař <[email protected]>
Changed-By: Adrian Bunk <[email protected]>
Closes: 958129
Changes:
 smem (1.5-1.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Add patch from Marco Paganini for Python 3 incompatibility
     in "smem --bar". (Closes: #958129)
Checksums-Sha1:
 c779fcebb058ab586499074fa1054c77c7c471fa 1980 smem_1.5-1.1.dsc
 826e0bb68b0352759d5e9d7661ace308613f7f31 4280 smem_1.5-1.1.debian.tar.xz
Checksums-Sha256:
 a0830ffbe69baa35c5912425510185b93bca1fa4144a59abb9c322b62de906d6 1980 
smem_1.5-1.1.dsc
 626e992ce191e0a9cb9cbbbf4b8ac961fa47bd66469896a578eac2a64f7d9474 4280 
smem_1.5-1.1.debian.tar.xz
Files:
 90ed5797b38bd730b6b96de6a0d69695 1980 utils optional smem_1.5-1.1.dsc
 af747989462ae270f4e6a85a47cb0717 4280 utils optional smem_1.5-1.1.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEOvp1f6xuoR0v9F3wiNJCh6LYmLEFAmDzNGYACgkQiNJCh6LY
mLFSnA//Ru586fnmlW2cy8F/qIfUiQ7OHHnhalVqNDkrwSbwbcgpcnCfkOnSDb6k
9ioTnhFowXgCY6TuVjXnlqDyn8BAYe8xdX777ToLUocmQ6zNsrm7QG0bRrPlW4SH
rInT0TcBv+sgzDXMqiCxNKMeItAjql4s8DBg2lslVh1ZOz1a25UsWeVwjeo8eN7A
T7+cpACmklyUqWGF0IAqlGRBQvJ10hNNXaswFWQTOKsyXQM4zrlDLsZIxJJA8aWG
j/F37jK2QITjbZh87Vx70WhOXGPiHuXHfg5Jo4pyoezCaaMI9eOJ2CqEQmC2GQN7
1kFI2XAPVZQKAoL4SOB6unwrPfvmKS6tp1yy7WJHcal7g6ZEDpMO7AyIpBrow5pp
jxQu//MSh4cE3GbP1pJEv6PuDwdf0RQsXu2waN3DrnuqWNj7wBHX3XNTyfFVrQhr
6Uv3sGlGA6MVUorPF3DDp3J9Z2UYIMS7Ex7uu66p3GKwnQbyQCKjU2rXKVW/R69c
tSLD+wUvx/lyYJgcTk+DrIxepRq7IFUPyNBrrf3QoBqoMy0N5lTSJc1q1Uc5aIex
Hogf3z7myy6njVNxcghrHALIej3A/HpQl1Qk498D0gmy7fXQSlcU5W/15yWyy/t4
L6KDCLvnDL9NCtWjZ15ZRi8M1Tlb8bLT8tM9MpKoqFSdGUB//rU=
=ZyBf
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to