[OpenAFS-devel] Re: Weird interaction between libnss-afs and aklog

Andrew Deason adeason@sinenomine.net
Tue, 24 Nov 2009 09:08:15 -0500


On Tue, 24 Nov 2009 14:19:43 +0100
Jakub Witkowski <jpw@wszib.edu.pl> wrote:

> After some hunting, I narrowed the problem down to this line in
> aklog_main.c:
> 
>  if ((pwd = getpwuid(getuid())) != NULL)

This specific line is where the crash occurred? Do you still have the
core, and can you give the backtrace?

> My question is, is this a sign of some bug lurking in libnss-afs? 
> If not, can this code be made optional or reworked to something a
> little more robust?

If getpwuid() were segfaulting, my guess is you would see a lot more
segfaults/aborts than in just aklog. We're not testing pwd->pw_dir for
NULL in aklog, but I'm not sure if it's possible for it to be.

You may want to continue this in a bug report (by sending something to
openafs-bugs@openafs.org), though it may not be a bug in aklog.

-- 
Andrew Deason
adeason@sinenomine.net