kauth broken - problem with IOMGR in lwp?
Ben Huntsman <[email protected]> Mon, 11 Nov 2024 20:26:59 +0000
| Newsgroups | gmane.comp.file-systems.openafs.devel |
|---|---|
| Message-ID | <BYAPR07MB5879E2CED4267CE6EB6DA8E8A7582@BYAPR07MB5879.namprd07.prod.outlook.com> |
Hi everyone-
First of all, please don't laugh, but I do have an older test cell that runs kauth instead of krb5. This is at home, not for anything production, so don't worry.
That being said, is kauth currently broken? A colleague of mine tried it on Linux and gets a segfault when running klog, and I get the same behavior on AIX:
$ dbx /usr/afs/bin/klog core
Type 'help' for help.
[using memory image in core]
reading symbolic information ...
Segmentation fault in unnamed block in IOMGR at line 362 in file "iomgr.c"
362 FD_ZERO(&IOMGR_writefds);
(dbx) where
libdebug assertion "(framep->getGpr(STKP, &addr) == DB_SUCCESS && *nextStkpp == addr)" failed at line 1418 in file ../../../../../../../../../../../src/bos/usr/ccs/lib/libdbx/libdebug/modules/stackdebug/POWER/stackdb_FrameProgress.C
unnamed block in IOMGR(dummy = (nil)), line 362 in "iomgr.c"
(dbx)
And here's a blurb from around that line in src/lwp/iomgr.c:
...
/* These are not declared in IOMGR so that they don't use up 6K of stack. */
static fd_set IOMGR_readfds, IOMGR_writefds, IOMGR_exceptfds;
static int IOMGR_nfds = 0;
static void *IOMGR(void *dummy)
{
for (;;) {
int code;
struct TM_Elem *earliest;
struct timeval timeout, junk;
bool woke_someone;
FD_ZERO(&IOMGR_readfds);
FD_ZERO(&IOMGR_writefds);
FD_ZERO(&IOMGR_exceptfds);
IOMGR_nfds = 0;
...
I did the compile with the ./configure --enable-debug and -enable-debug-lwp options specified. Can someone help explain how this code works, and what might done to fix it? I'm a little fuzzy on the *IOMGR piece and I don't see that anyone calls IOMGR() directly in the code...
Thank you!
-Ben