[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1031423: marked as done (rocminfo: rocm_agent_enumerator PermissionError in readFromKFD)



Your message dated Fri, 03 Mar 2023 10:20:33 +0000
with message-id <E1pY2Wf-0080OB-St@fasolo.debian.org>
and subject line Bug#1031423: fixed in rocminfo 5.2.3-3
has caused the Debian Bug report #1031423,
regarding rocminfo: rocm_agent_enumerator PermissionError in readFromKFD
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 owner@bugs.debian.org
immediately.)


-- 
1031423: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1031423
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: rocminfo
Version: 5.2.3-2
Severity: normal
X-Debbugs-Cc: cgmb@slerp.xyz

Dear Maintainer,

When a user invokes rocm_agent_enumerator but does not have sufficient
permissions to read /sys/class/kfd/kfd/topology/nodes/*/properties,
the program will crash with the error

    Traceback (most recent call last):
      File "/usr/bin/rocm_agent_enumerator", line 257, in <module>
        main()
      File "/usr/bin/rocm_agent_enumerator", line 241, in main
        target_list = readFromKFD()
                      ^^^^^^^^^^^^^
      File "/usr/bin/rocm_agent_enumerator", line 200, in readFromKFD
        line = f.readline()
               ^^^^^^^^^^^^
    PermissionError: [Errno 1] Operation not permitted

I tried adding a try/except for OSError exceptions around the file
open/read in readFromKFD and this allowed the script to continue. It
then attempted to identify the GPU using fallback methods (lspci and
rocminfo). In my case, the fallbacks were successful.

Perhaps this condition should not be a fatal error?

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-3-amd64 (SMP w/32 CPU threads; PREEMPT)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages rocminfo depends on:
ii  kmod                30+20221128-1
ii  libc6               2.36-8
ii  libgcc-s1           12.2.0-14
ii  libhsa-runtime64-1  5.2.3-2
ii  libstdc++6          12.2.0-14
ii  pciutils            1:3.9.0-4
ii  python3             3.11.2-1

rocminfo recommends no packages.

rocminfo suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: rocminfo
Source-Version: 5.2.3-3
Done: Cordell Bloor <cgmb@slerp.xyz>

We believe that the bug you reported is fixed in the latest version of
rocminfo, 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 1031423@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Cordell Bloor <cgmb@slerp.xyz> (supplier of updated rocminfo 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 ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 02 Mar 2023 21:36:26 -0700
Source: rocminfo
Architecture: source
Version: 5.2.3-3
Distribution: unstable
Urgency: medium
Maintainer: ROCm Team <debian-ai@lists.debian.org>
Changed-By: Cordell Bloor <cgmb@slerp.xyz>
Closes: 1031423
Changes:
 rocminfo (5.2.3-3) unstable; urgency=medium
 .
   * Team upload.
 .
   * add d/p/fix-crash-on-kfd-permission-error.patch (Closes: #1031423)
   * d/control: update standards version to 4.6.2
   * d/copyright: update for debian files
Checksums-Sha1:
 b6a69719b374ca93bfa829d67e89fa5c9e4ee411 2065 rocminfo_5.2.3-3.dsc
 56c01407fe5a3f790aba4dc349c25e1234b85cfd 5460 rocminfo_5.2.3-3.debian.tar.xz
 1c2d5227c90c190bd88fa64d4ddf74f932cbef34 5760 rocminfo_5.2.3-3_source.buildinfo
Checksums-Sha256:
 3d5da39d3e9e0d09d21d9d682726addec7997fa73b9a64d8c6c0d51741ed98f8 2065 rocminfo_5.2.3-3.dsc
 215a26be6afad7a6a7f746b2a402dea25ab34a60b3c27280e2496c6b33eb61ba 5460 rocminfo_5.2.3-3.debian.tar.xz
 889d67cfe347fa7853bcdcdcda9562d2228788f1870dc3bc3064063c828041c1 5760 rocminfo_5.2.3-3_source.buildinfo
Files:
 62cc30646d7fb9092221756cad5dd41d 2065 devel optional rocminfo_5.2.3-3.dsc
 86b0437fe7e842afc79c4bb2ab011c50 5460 devel optional rocminfo_5.2.3-3.debian.tar.xz
 1372373bd8aba147979fe7efac5109e8 5760 devel optional rocminfo_5.2.3-3_source.buildinfo

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

iQIzBAEBCgAdFiEEQZ9+mkfDq5UZ8bCjOZU6N95Os2sFAmQBxbEACgkQOZU6N95O
s2tBhBAAu5SZNeMrHslTINM1t+/yTb61txkffZbbkZNLQH4wUL5z0YNASQgYFjva
L7lxmtfAPB/Awk1V1m7omBraGlmIEtv2dkfRk57tkoMw33zLQQ/jsJ97PpN8cBB6
P0rOy7IpuBAxskHvrKkoijrFFVhKVPZfHSvQ3PQZFhlX+f8afiu3AAIiyRrtYxfM
Y+OI/284nMJOG5T1qsWd0sZf3kOep/O4t1fEgaG/mhUPyLJ8rumnkSsrrW+NETvP
P6SXMyJcyMXiT+UvHU17ZZD/2lFfkcVIip8d44aLJ9VsBmGtaKRX0cU4ndqh38G9
umPEs8tdVLJwSAO+K5XznAxXP7VHJfCHYJW/X3ics7IEmdS3F/YxAdNRTqIAp3GG
9oNl0PqiypaFWBSbZwNT2a7KjjltThXy0A2NTa2/ZytYdwnZfTPzueZySkaJUmWg
GoUs4X+vUnY1Tt6gmo50n/4gHb7fglPc78/VGLPiHhOAzRLGvSovwUP7EPWfeaE+
c+y5TrHaNoREt+52wwskCzbiZljwqu1JG1crFqU47BfQKy2lp4paVmXzZRJjUW2E
UpEugZtePvKTGuRx8ewmV2btXGAV8r4ma3TtLDjKk2b34npjpowwLAKIo/jAwWa3
0WT+eNOtDSbz0xkuLi3wsQ4GAWaV2F0qfrXFiqBfRc7oJt7DkpA=
=OI2h
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: