[OpenAFS] fetchmail / afs / segfault revisited

Charles Clancy security@xauth.net
Fri, 15 Mar 2002 21:17:07 -0600 (CST)


Is fetchmail setuid for some reason?  If it's switching to a different uid
before running, then that uid may not have a token.  Try doing a pagsh,
klog, and then run fetchmail.

[ t charles clancy ]--[ tclancy@uiuc.edu ]--[ www.uiuc.edu/~tclancy ]

On Fri, 15 Mar 2002, Johnny B . wrote:

> Hello All
>
> I'm trying to run fetchmail from my AFS account and it segfaults
> immediately. I mentioned this before but couldn't find anyone having
> similar failures :-(
>
> This time, I may have found the fault using strace, but I'm not sure
> how to interpret it. It looks like fetchmail may not be running with
> my token, even though it's running from my ~/bin. Here is the end of
> the strace output:
>
> <...>
> umask(077)                              = 02
> rt_sigaction(SIGABRT, {0x8053a40, [ABRT], SA_RESTART|0x4000000},
>    {SIG_DFL}, 8) = 0
> rt_sigaction(SIGINT, {0x8053a40, [INT], SA_RESTART|0x4000000},
>    {SIG_DFL}, 8) = 0
> rt_sigaction(SIGTERM, {0x8053a40, [TERM], SA_RESTART|0x4000000},
>    {SIG_DFL}, 8) = 0
> rt_sigaction(SIGALRM, {0x8053a40, [ALRM], SA_RESTART|0x4000000},
>    {SIG_DFL}, 8) = 0
> rt_sigaction(SIGPIPE, {0x8053a40, [PIPE], SA_RESTART|0x4000000},
>    {SIG_DFL}, 8) = 0
> rt_sigaction(SIGQUIT, {0x8053a40, [QUIT], SA_RESTART|0x4000000},
>    {SIG_DFL}, 8) = 0
> open("/afs/vonbek.dhs.org/usr/johnnyb/.fetchmail.pid",
>       O_WRONLY|O_CREAT|O_EXCL|O_SYNC, 0666) = 3
> getpid()                                = 7695
> write(3, "7695", 4 <unfinished ...>
> +++ killed by SIGSEGV +++
>
>
> I've cleaned it up a little to deal with the hard wrap I use in mutt.
> It doesn't seem like write() is failing, it seems like write() doesn't
> even get to run. It looks like it's being interrupted, correct ?
>
> Any insight would be appreciated!
>
> JB
>
> +---------------------------------
> | John Bleichert
> | syborg@stny.rr.com
> | http://vonbek.dhs.org/latest.jpg
>
> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-info
>