* [sisyphus] fetchmail
@ 2002-09-17 13:56 Alexey Tourbin
2002-09-17 14:22 ` Dmitry V. Levin
0 siblings, 1 reply; 3+ messages in thread
From: Alexey Tourbin @ 2002-09-17 13:56 UTC (permalink / raw)
To: sisyphus
Вы будете смеяться, но...
$ /usr/bin/fetchmail
zsh: segmentation fault /usr/bin/fetchmail
$
Это уже на другой машине, на которой ничего не удалялось...
Везёт мне на это дело. :)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [sisyphus] fetchmail
2002-09-17 13:56 [sisyphus] fetchmail Alexey Tourbin
@ 2002-09-17 14:22 ` Dmitry V. Levin
2002-09-17 15:15 ` [sisyphus] fetchmail Alexey Tourbin
0 siblings, 1 reply; 3+ messages in thread
From: Dmitry V. Levin @ 2002-09-17 14:22 UTC (permalink / raw)
To: ALT Linux Sisyphus mailing list
[-- Attachment #1: Type: text/plain, Size: 259 bytes --]
On Tue, Sep 17, 2002 at 05:56:11PM +0400, Alexey Tourbin wrote:
> Вы будете смеяться, но...
>
> $ /usr/bin/fetchmail
> zsh: segmentation fault /usr/bin/fetchmail
Есть другая информация:
$ fetchmail
fetchmail: no mailservers have been specified.
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [sisyphus] Re: fetchmail
2002-09-17 14:22 ` Dmitry V. Levin
@ 2002-09-17 15:15 ` Alexey Tourbin
0 siblings, 0 replies; 3+ messages in thread
From: Alexey Tourbin @ 2002-09-17 15:15 UTC (permalink / raw)
To: sisyphus
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'))
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-09-17 15:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-17 13:56 [sisyphus] fetchmail Alexey Tourbin
2002-09-17 14:22 ` Dmitry V. Levin
2002-09-17 15:15 ` [sisyphus] fetchmail Alexey Tourbin
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