ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@turbinal.org>
To: sisyphus@altlinux.ru
Subject: [sisyphus] Re: fetchmail
Date: Tue, 17 Sep 2002 19:15:02 +0400
Message-ID: <20020917151502.GA12819@ungrund> (raw)
In-Reply-To: <20020917142204.GB5071@basalt.office.altlinux.ru>

On Tue, Sep 17, 2002 at 06:22:04PM +0400, Dmitry V. Levin wrote:
> $ fetchmail 
> fetchmail: no mailservers have been specified.

У меня как раз всё настроено. Проблема появилась после некорректной
перезагрузки. Как удалось выяснить, fetchmail некорректно реагирует на
мусор в конфигурационных файлах, в данном случае в ~/.fetchids.

Проблема воспроизводится так:

$ cat /usr/bin/perl > .fetchids
$ chmod 0700 .fetchids
$ fetchmail
Segmentation fault
$

(gdb) r
Starting program: /home/at/RPM/BUILD/fetchmail-5.9.12/./fetchmail
Program received signal SIGSEGV, Segmentation fault.
0x2ac854c1 in strchr () from /lib/libc.so.6
(gdb) bt
#0  0x2ac854c1 in strchr () from /lib/libc.so.6
#1  0x7ffff398 in ?? ()
#2  0x08056686 in load_params (argc=1, argv=0x7ffff6f4, optind=1) at fetchmail.c:1159
#3  0x08053a74 in main (argc=1, argv=0x7ffff6f4) at fetchmail.c:235
#4  0x2ac1e727 in __libc_start_main (main=0x8053800 <main>, argc=1, ubp_av=0x7ffff6f4,
    init=0x8049f90 <_init>, fini=0x8070870 <_fini>, rtld_fini=0x2aab5f04 <_dl_fini>,
    stack_end=0x7ffff6ec) at ../sysdeps/generic/libc-start.c:129

(gdb) b fetchmail.c:1159
Breakpoint 2 at 0x8056672: file fetchmail.c, line 1159.
(gdb) b uid.c:145
Breakpoint 1 at 0x8064d4f: file uid.c, line 145.
(gdb) r
Starting program: /home/at/RPM/BUILD/fetchmail-5.9.12/./fetchmail
Breakpoint 2, load_params (argc=1, argv=0x7ffff6f4, optind=1) at fetchmail.c:1159
1159            initialize_saved_lists(querylist, run.idfile);
(gdb) c
Continuing.
Breakpoint 1, initialize_saved_lists (hostlist=0x8091390, idfile=0x808cf20 "/home/at/.fetchids")
    at uid.c:145
145                     delimp1 = strchr(user, '@');
(gdb) n
146                     id = strchr(delimp1,' ');
(gdb) p user
$1 = 0x7ffff110 "\230УR+\206#ТFґ\215 Мs3"
(gdb) p delimp1
$2 = 0x0
(gdb) n
Program received signal SIGSEGV, Segmentation fault.
0x2ac854c1 in strchr () from /lib/libc.so.6
(gdb)


--- uid.c~	Fri Sep 28 18:31:13 2001
+++ uid.c	Tue Sep 17 18:59:19 2002
@@ -143,6 +143,8 @@
 	       * host will follow with the ' ' seperator finaly id.
 	       */
 	        delimp1 = strchr(user, '@');
+		if (!delimp1)
+			continue;
 	        id = strchr(delimp1,' ');
 	        for (delimp1 = id; delimp1 >= user; delimp1--)
 		    if ((*delimp1 != ' ') && (*delimp1 != '\t'))



      reply	other threads:[~2002-09-17 15:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-17 13:56 [sisyphus] fetchmail Alexey Tourbin
2002-09-17 14:22 ` Dmitry V. Levin
2002-09-17 15:15   ` Alexey Tourbin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020917151502.GA12819@ungrund \
    --to=at@turbinal.org \
    --cc=sisyphus@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git