Your message dated Sat, 08 Jul 2006 23:02:31 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#377449: fixed in swapspace 1.6-2
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: swapspace
Version: 1.6-1
Severity: important
Tags: patch
Installed the swapspace package but it failed to start, complaining of a
parse error in /proc/meminfo. After examining the situation, I
discovered that one of the entries in my /proc/meminfo had an embedded
space in the entry name. The attached patch fixes the problem by
modifying the sscanf call to look for "%[^:]: " instead of "%s " for the
first field in each /proc/meminfo line.
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-mm4
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ANSI_X3.4-1968) (ignored: LC_ALL
set to C)
Versions of packages swapspace depends on:
ii libc6 2.3.6-15 GNU C Library: Shared libraries
swapspace recommends no packages.
-- no debconf information
diff -ur swapspace-1.6/src/memory.c swapspace-1.6-patched/src/memory.c
--- swapspace-1.6/src/memory.c 2006-06-15 05:01:50.000000000 -0400
+++ swapspace-1.6-patched/src/memory.c 2006-07-08 23:32:27.000000000 -0400
@@ -115,7 +115,7 @@
char fact[20];
const int x = sscanf(localbuf,
- "%s %lld %19s",
+ "%[^:]: %lld %19s",
result->entry,
&result->value,
fact);
@@ -212,31 +212,31 @@
switch (inf->entry[0])
{
case 'B':
- if (strcmp(inf->entry, "Buffers:")==0) st->Buffers = inf->value;
+ if (strcmp(inf->entry, "Buffers")==0) st->Buffers = inf->value;
break;
case 'C':
- if (strcmp(inf->entry, "Cached:")==0) st->Cached = inf->value;
+ if (strcmp(inf->entry, "Cached")==0) st->Cached = inf->value;
break;
case 'D':
- if (strcmp(inf->entry, "Dirty:")==0) st->Dirty = inf->value;
+ if (strcmp(inf->entry, "Dirty")==0) st->Dirty = inf->value;
break;
case 'M':
if (strncmp(inf->entry,"Mem",3) == 0)
{
- if (strcmp(inf->entry+3, "Total:")==0) st->MemTotal = inf->value;
- else if (strcmp(inf->entry+3, "Free:")==0) st->MemFree = inf->value;
+ if (strcmp(inf->entry+3, "Total")==0) st->MemTotal = inf->value;
+ else if (strcmp(inf->entry+3, "Free")==0) st->MemFree = inf->value;
}
break;
case 'S':
if (strncmp(inf->entry,"Swap",4) == 0)
{
- if (strcmp(inf->entry+4, "Total:")==0) st->SwapTotal = inf->value;
- else if (strcmp(inf->entry+4, "Free:")==0) st->SwapFree = inf->value;
- else if (strcmp(inf->entry+4, "Cached:")==0) st->SwapCached = inf->value;
+ if (strcmp(inf->entry+4, "Total")==0) st->SwapTotal = inf->value;
+ else if (strcmp(inf->entry+4, "Free")==0) st->SwapFree = inf->value;
+ else if (strcmp(inf->entry+4, "Cached")==0) st->SwapCached = inf->value;
}
break;
case 'W':
- if (strcmp(inf->entry,"Writeback:")==0) st->Writeback = inf->value;
+ if (strcmp(inf->entry,"Writeback")==0) st->Writeback = inf->value;
break;
}
}
--- End Message ---
--- Begin Message ---
Source: swapspace
Source-Version: 1.6-2
We believe that the bug you reported is fixed in the latest version of
swapspace, which is due to be installed in the Debian FTP archive:
swapspace_1.6-2.diff.gz
to pool/main/s/swapspace/swapspace_1.6-2.diff.gz
swapspace_1.6-2.dsc
to pool/main/s/swapspace/swapspace_1.6-2.dsc
swapspace_1.6-2_i386.deb
to pool/main/s/swapspace/swapspace_1.6-2_i386.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.
Anibal Monsalve Salazar <[EMAIL PROTECTED]> (supplier of updated swapspace
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.7
Date: Sun, 09 Jul 2006 15:26:27 +1000
Source: swapspace
Binary: swapspace
Architecture: source i386
Version: 1.6-2
Distribution: unstable
Urgency: high
Maintainer: Anibal Monsalve Salazar <[EMAIL PROTECTED]>
Changed-By: Anibal Monsalve Salazar <[EMAIL PROTECTED]>
Description:
swapspace - Dynamic swap space manager
Closes: 377449
Changes:
swapspace (1.6-2) unstable; urgency=high
.
* Fixed "Fails to start with /proc/meminfo parse error", closes: #377449.
Patch by Robert August Vincent II <[EMAIL PROTECTED]>.
Files:
100609d0c9b2c15bb83891b2a2ef762f 568 admin optional swapspace_1.6-2.dsc
1df919a3f55e8c1a0a902ca18f45d0c0 4327 admin optional swapspace_1.6-2.diff.gz
ac73dee52a79e3b1a2b7d0585842b7c8 27698 admin optional swapspace_1.6-2_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
iD8DBQFEsJqripBneRiAKDwRAuL3AKC3iBxn2lPNhdaPVL0xXtwMJ8t92gCaA2xm
k6SXxCNmvdWKwAcpKqyxzcE=
=LNZM
-----END PGP SIGNATURE-----
--- End Message ---