Package: masqmail
Version: 0.2.21-6
Severity: important

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

After upgrading masqmail 0.2.21-5 to 0.2.21-6, masqmail segfaults when trying to
deliver queued mails:

Jun 13 19:33:05 manetheren masqmail[16167]: Starting queue run.
Jun 13 19:33:05 manetheren kernel: [ 1983.224568] masqmail[16167]: segfault at 
0 ip 805706d sp ff965910 error 4 in masqmail[8048000+1c000]
Jun 13 19:33:05 manetheren masqmail[16166]: process with pid 16167 got signal: 
11

Reverting to 0.2.21-5 resolves the problem, as well as rebuilding 0.2.21-6 with
the 0.2.21-5 version of file online.c.  When looking at the changes between -5
and -6 for this file, it seems that masqmail tries to determine the length of an
uninitialized string (l.39):

    25  static
    26  gchar *detect_online_pipe(const gchar *pipe)
    27  {
    28    pid_t pid;
    29    void (*old_signal)(int);
    30    int status;
    31    FILE *in;
    32    gchar *name = NULL;

    33    old_signal = signal(SIGCHLD, SIG_DFL);

    34    in = peopen(pipe, "r", environ, &pid);
    35    if(in != NULL){
    36      gchar output[256];
    37      if(fgets(output, 255, in)){
    38        g_strchomp(g_strchug(output));
    39        if (strlen(name) == 0) {  /* <- !!! SUSPICIOUS !!! */
    40      logwrite(LOG_ALERT, "only whitespace connection name\n");
    41      name = NULL;
    42        } else {
    43      name = g_strdup(output);
    44        }
    45      } else {
    46        logwrite(LOG_ALERT, "nothing read from pipe %s\n", pipe);
    47        name = NULL;
    48      }

Classifying this as important, as I'm unable to send any mails with the current
version, and I assume this applies to all other users with connection method
pipe, too.

- -- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (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/bash

Versions of packages masqmail depends on:
ii  debconf [debconf-2.0]         1.5.26     Debian configuration management sy
ii  libc6                         2.9-12     GNU C Library: Shared libraries
ii  libglib2.0-0                  2.20.1-2   The GLib library of C routines
ii  libident                      0.22-3     simple RFC1413 client library - ru
ii  liblockfile1                  1.08-3     NFS-safe locking library, includes
ii  netbase                       4.34       Basic TCP/IP networking system
ii  update-inetd                  4.31       inetd configuration file updater

masqmail recommends no packages.

Versions of packages masqmail suggests:
ii  emacs22 [mail-reader]         22.3+1-1   The GNU Emacs editor
ii  logrotate                     3.7.7-3    Log rotation utility
ii  nmh [mail-reader]             1.3-1      A set of electronic mail handling 

- -- debconf information:
* masqmail/ipup_fetch: false
* masqmail/mda: sudo -u ah /usr/bin/maildrop
* masqmail/online_file: /var/run/masqmail-route
* masqmail/mbox_default: mbox
* masqmail/init_smtp_daemon: false
* masqmail/ipup_runqueue: true
* masqmail/online_detect: pipe
* masqmail/local_hosts: localhost;manetheren
* masqmail/queue_daemon_ival: -q10m
* masqmail/host_name: manetheren
* masqmail/alias_local_caseless: false
* masqmail/manage_config_with_debconf: true
* masqmail/use_syslog: true
* masqmail/listen_addresses: localhost:25
* masqmail/init_fetch_daemon: false
  masqmail/move_existing_nondebconf_config: true
* masqmail/ifup_ifaces: eth1
* masqmail/online_pipe: /local/bin/masqmail_online_pipe
* masqmail/init_queue_daemon: true
  masqmail/fetch_daemon_ival: -go5m
* masqmail/local_nets:

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkoz6GMACgkQco2LfriI0s6B+gCfVksS3kQ+RTkK1OaleyEp9kVe
wnYAnj+zqPi3CGfJ0qQxhPpy/hSAX306
=56gy
-----END PGP SIGNATURE-----



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to