Your message dated Mon, 11 Apr 2016 13:35:19 +0000 with message-id <[email protected]> and subject line Bug#578588: fixed in spu-tools 2.3.0.136-2 has caused the Debian Bug report #578588, regarding spu-tools: spu-top segfaults when /spu directory doesn't exist 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.) -- 578588: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=578588 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: spu-tools Version: 2.3.0.136-1 Severity: normal Tags: patch upstream The spu-top program will segfault if the system doesn't have a /spu directory. Also if the directory is removed while spu-top is running it will segfault. A simple fix is attached that just checks if the call to read info from /spu fails and exits the program if it does. A better fix would probably involve informing the user somehow but this patch at least shows the problem area. --- src/spu-top.c 2008-06-05 09:22:49.000000000 -0500 +++ src/spu-top.c 2010-04-20 18:48:45.000000000 -0500 @@ -424,6 +424,9 @@ /* Providing a valid time range for the first measure (0.055 sec) */ spus = get_spus(); ctxs = get_spu_contexts(refresh_delay); + if (ctxs == NULL) { + quit(); + } procs = get_procs(ctxs); usleep(55000); @@ -442,6 +445,9 @@ if (min_time_has_passed) { spus = get_spus(); ctxs = get_spu_contexts(period); + if (ctxs == NULL) { + quit(); + } procs = get_procs(ctxs); fill_spus_tids(spus, ctxs); last_time = current_time; -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: powerpc (ppc64) Kernel: Linux 2.6.34-rc4--20100417-02-00115-gdc57da3 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages spu-tools depends on: ii libc6 2.10.2-6 Embedded GNU C Library: Shared lib ii libncurses5 5.7+20100313-2 shared libraries for terminal hand spu-tools recommends no packages. spu-tools suggests no packages. -- no debconf information
--- End Message ---
--- Begin Message ---Source: spu-tools Source-Version: 2.3.0.136-2 We believe that the bug you reported is fixed in the latest version of spu-tools, 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. Mathieu Malaterre <[email protected]> (supplier of updated spu-tools 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: Mon, 11 Apr 2016 13:03:25 +0000 Source: spu-tools Binary: spu-tools Architecture: source Version: 2.3.0.136-2 Distribution: unstable Urgency: medium Maintainer: Mathieu Malaterre <[email protected]> Changed-By: Mathieu Malaterre <[email protected]> Description: spu-tools - user space tools for the Cell broadband engine Closes: 578588 739232 808173 Changes: spu-tools (2.3.0.136-2) unstable; urgency=medium . * Adopt package. Closes: #739232 * Fix compilation issue. Closes: #808173 * spu-top segfaults when /spu directory doesn't exist. Closes: #578588 * Bump Std-Vers to 3.9.7 Checksums-Sha1: 23ee97221799aa989370d364b0f780d36e3485ff 1819 spu-tools_2.3.0.136-2.dsc 468f1a5fbb0a3e9e345079aadc8b50beeb7af3b7 2952 spu-tools_2.3.0.136-2.debian.tar.xz Checksums-Sha256: 4aecb58ca8828a84a383c7b3c106cffadc308b9be6d084a0d70372e5f6a8ece1 1819 spu-tools_2.3.0.136-2.dsc 9708e84261ceb9ce63c7c75ba03981a2afff5055206e98e3b7b3c4bcd7963547 2952 spu-tools_2.3.0.136-2.debian.tar.xz Files: 0723f0986e67fb1fb4c83404105faed2 1819 misc extra spu-tools_2.3.0.136-2.dsc 914bb4b573b2bdf3b93ef75f5901feec 2952 misc extra spu-tools_2.3.0.136-2.debian.tar.xz -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJXC6YIAAoJEAFx4YKK4JNFFQkP/Alk1Qrdwzv/ggXGf0Lfy9a9 b2WndbVIEMe6CeEVL8C5uRSujSlIUVG3YpVk3S7s0x7MtQEwVb0CuklwQxnSby/j av0PsMzYnQK7IqB6nzgY0flfvKQJBJQ1zg8CBY3hhOiCSYa/enR1EDJMHlbVISY/ EZ3vXiQr/ABDhvD62m0zbUJiglh7idApGrRfTHsHJ9ho2KNXVlFXVIUM+1ijbc78 acH1lu81wOegNgMqptL2XI7VII1Ts5dEe97X6mtr5gpzDDi7ajudWSf3uhTHBkBX nI/Z4dM2XwXz+OIB0sTW5tnaDMBRa7cWWotMRXxX45qwRy9Z4MbpmfBpzJJDgAGX 6o4rilwx9Kdweqp0TQH2tR0B0PtEg17o0lpswRB/USOiO9MfomrOvA5jXBOiayci 3jf0FVaQAyFM1LBKrlqcgQoWwGed/V9fIGFMFjkNU6AZURuus0Z1ZI+Yz0uVgLdy SOgDSwwwkx3FKB/zo9sUy5BOhmHlFcNQTs4fPW8wtWAPN4hRR/e7JPUjfQgrE+JF KoPAj2VAT7ODMsUnEuiMr15NO5E8A4Eu9Hp68rJf0NhO4haJ58WWbws5dya2aOtK dkMdmW8e7XqL0P+wFX8AyLmqAr8w+K3+xprIEzxutIqw24HaiGrXcJZBAEo12AzI HwXm6WItpK/QuuvE5zNp =Q4hC -----END PGP SIGNATURE-----
--- End Message ---

