Bug#373975: mailutils-mh: send segfaults sending to Debian BTS

2007-11-07 Thread Tim Bagot
Found the bug:

mh_whom.c:65: warning: passing argument 4 of 'mu_argcv_get' from
incompatible pointer type

Specifically, this warning refers to the call:

  mu_argcv_get (str, ,, NULL, argc, argv);

in mh_alias_expand(), where argc is declared thus:

  size_t argc;

but mu_argcv_get() expects it to be an int:

extern int mu_argcv_get(const char *command, const char *delim,
 const char* cmnt,
 int *argc, char ***argv);

That explains why I only saw the bug on a 64-bit system. I guess the
other addresses I tried just were just luckier in terms of what ended
up in the top 32 bits.

The obvious patch seems to fix it:

=
--- mh/mh_whom.c
+++ mh/mh_whom.c
@@ -54,9 +54,9 @@
 int
 mh_alias_expand (char *str, mu_address_t *paddr, int *incl)
 {
-  size_t argc;
+  int argc;
   char **argv;
-  size_t i;
+  int i;
   char *buf;
   mu_address_t exaddr = NULL;
 
=

-- 
Tim Bagot, BlueArc Engineering




Bug#373975: mailutils-mh: send segfaults sending to Debian BTS

2006-06-16 Thread Tim Bagot
Package: mailutils-mh
Version: 1:0.6.94-1
Severity: normal

/usr/bin/mu-mh/send segfaults trying to send the attached message. I
could send the same message to different recipients, but not to
[EMAIL PROTECTED]. Imagine the fun I had working that out :-)

dust:~$ /usr/bin/mu-mh/send -watch -nopush -nodraftfolder -verbose ~/Mail/draft
Getting message
Segmentation fault

gdb didn't find any symbols, but I'm attaching the output of ltrace in
case that's helpful.

The problem appears to be architecture-dependent, as I was able to
send the message by invoking send on a 32-bit (x86) host.

... and it looks like I'm about to have to do the same with this bug report.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-amd64-k8-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages mailutils-mh depends on:
ii  libc62.3.6-15GNU C Library: Shared libraries
ii  libcomerr2   1.39-1  common error description library
ii  libgcrypt11  1.2.2-1 LGPL Crypto library - runtime libr
ii  libgdbm3 1.8.3-3 GNU dbm database routines (runtime
ii  libgnutls13  1.3.5-1.1   the GNU TLS library - runtime libr
ii  libgpg-error01.2-1   library for common error values an
ii  libgsasl70.2.12-1+b1 GNU SASL library
ii  libidn11 0.5.18-2GNU libidn library, implementation
ii  libkrb53 1.4.3-7 MIT Kerberos runtime libraries
ii  libmailutils11:0.6.94-1  GNU Mail abstraction library
ii  libmysqlclient15off  5.0.22-2mysql database client library
ii  libncurses5  5.5-2   Shared libraries for terminal hand
ii  libpam0g 0.79-3.1Pluggable Authentication Modules l
ii  zlib1g   1:1.2.3-11  compression library - runtime

mailutils-mh recommends no packages.

-- no debconf information
To: Debian Bug Tracking System [EMAIL PROTECTED]
X-Debbugs-CC: Tim Bagot [EMAIL PROTECTED]
Subject: munin-node: Overly restrictive regexps in sensors plugin
Content-Type: multipart/mixed; boundary=1804289383-1150467570=:17247
MIME-Version: 1.0

--1804289383-1150467570=:17247
Content-ID: [EMAIL PROTECTED]
Content-Type: text/plain

Package: munin-node
Version: 1.2.4-1
Severity: normal

The sensors plugin incorrectly assumes that in the output of sensors(1)
there will always be whitespace after the colon separating label from
value. This can cause it to ignore some items. Patch attached.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-amd64-k8-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages munin-node depends on:
ii  adduser  3.87Add and remove users and groups
ii  libnet-server-perl   0.90-1  An extensible, general perl server
ii  lsb-base 3.1-10  Linux Standard Base 3.1 init scrip
ii  perl 5.8.8-6 Larry Wall's Practical Extraction 
ii  procps   1:3.2.6-2.2 /proc file system utilities

Versions of packages munin-node recommends:
pn  libnet-snmp-perl  none (no description available)

-- no debconf information

--1804289383-1150467570=:17247
Content-transfer-encoding: quoted-printable
Content-Description: sensors_.patch
Content-ID: [EMAIL PROTECTED]
Content-Type: text/x-patch; name=sensors_.patch

--- /usr/share/munin/plugins/sensors_
+++ /usr/share/munin/plugins/sensors_
@@ -64,21 +64,21 @@
 my $SENSORS =3D $ENV{'sensors'} || 'sensors';
 my %config =3D (
   fan =3D {
-regex =3D qr/^(\S[^:]*)\s*:\s+\+?(\d+) RPM.*?(\d+) 
RPM/m,
+regex =3D qr/^(\S[^:]*)\s*:\s*\+?(\d+) RPM.*?(\d+) 
RPM/m,
 title =3D 'Fans',
 vtitle =3D 'RPM',
 print_threshold =3D \fan_threshold,
 graph_args =3D '--base 1000 -l 0'
   },
   temp =3D {
-regex =3D qr/^(\S[^:]*)\s*:\s+\+?(\d+(?:\.\d+)?)[=B0 
]C(?:\s+\((?:high=
|limit)\s*=3D\s*\+?(\d+(?:\.\d+)?)[=B0 ]C,\s*hyst(?:eresis)?\s*=3D\s*\+?(\d+=
(?:\.\d+)?)[=B0 ]C\))?/m,
+regex =3D qr/^(\S[^:]*)\s*:\s*\+?(\d+(?:\.\d+)?)[=B0 
]C(?:\s+\((?:high=
|limit)\s*=3D\s*\+?(\d+(?:\.\d+)?)[=B0 ]C,\s*hyst(?:eresis)?\s*=3D\s*\+?(\d+=
(?:\.\d+)?)[=B0 ]C\))?/m,
 title =3D 'Temperatures',
 vtitle =3D 'Celsius',
 print_threshold =3D