[OpenAFS-devel] Another bosserver crash on Irix 6.5.20 (1.2.10-rc4)

Martin MOKREJŠ mmokrejs@natur.cuni.cz
Tue, 29 Jul 2003 19:23:37 +0200 (CEST)


On Tue, 29 Jul 2003, Martin MOKREJŠ wrote:

> On Tue, 29 Jul 2003, Jim Rees wrote:
>
> > I don't have irix here, but locking seems problematic to me.  Can you try
>
> I defined -DMP in src/config/Makefile.sgi_65 and started recompile. Thanks
> for suggestion.
>
> > building with -DMP?  I don't know how to turn it on but there must be a way.
>
> I remember some warning from compiler warnings about threadsafe
> incomplatibility, but don't know exactly where was it.

in 1.2.10-rc4 I get:

cc -I. -I.. -I/scratch2/openafs-1.2.10-rc4/src/config -I/usr/include/sys/fs -DAFSDEBUG -DKERNEL -DAFS -DVICE -DNFS -DUFS -DINET -DQUOTA -DGETMOUNT -G 0 -I/usr/include -I/usr/include/sys -DSTATIC=static -DAFS_SGIMP_ENV -DMP -D_KERNEL -DMP_STREAMS -D_MP_NETLOCKS -DMRSP_AS_MR -fullwarn -non_shared -G 0 -TENV:kernel -OPT:space -OPT:Olimit=0 -CG:unique_exit=on -TENV:X=1 -OPT:IEEE_arithmetic=1 -OPT:roundoff=0 -OPT:wrap_around_unsafe_opt=off -DIP20 -DR4000 -DJUMP_WAR -DBADVA_WAR -DTRITON -DUSE_PCI_PIO -D_R5000_CVT_WAR=1 -DCKPT -D_MTEXT_VFS -Ofast=ip22_4k -n32 -D_PAGESZ=4096 -mips3 -woff 1209,1196,1496  -g0 -c ../afs/afs_memcache.c;
cc-1035 cc: WARNING File = ../sys/pda.h, Line = 581
  #error directive:  "This code is not mp safe - mutex locking needed to protect

  #error        "This code is not mp safe - mutex locking needed to protect
   ^

cc-1035 cc: WARNING File = ../sys/pda.h, Line = 582
  #error directive:  "the jump_war_pid and jump_war_uthreadid fields

  #error        "the jump_war_pid and jump_war_uthreadid fields
   ^

cc-1047 cc: WARNING File = ../afs/../afs/../afs/../afs/osi_machdep.h, Line = 132
  Macro "_MP_NETLOCKS" has an incompatible redefinition.

  #define _MP_NETLOCKS                  /* to get sblock to work right */
          ^

cc-1233 cc: REMARK File = ../afs/afs_memcache.c, Line = 45
  An explicit type is missing ("int" assumed).

  afs_InitMemCache(size, blkSize, flags)
  ^

cc-1233 cc: REMARK File = ../afs/afs_memcache.c, Line = 95
  An explicit type is missing ("int" assumed).

  afs_MemCacheClose(file)
  ^

cc-3201 cc: REMARK File = ../afs/afs_memcache.c, Line = 96
  The parameter "file" was never referenced.

      char *file;
            ^

cc-1183 cc: WARNING File = ../afs/afs_memcache.c, Line = 105
  An unsigned integer is being compared to zero.

        if (blkno < 0 || blkno > memMaxBlkNumber) {
                  ^

cc-1498 cc: REMARK File = ../afs/afs_memcache.c, Line = 106
  There is no prototype for the call to osi_Panic.

          osi_Panic("afs_MemCacheOpen: invalid block #");
          ^

cc-1233 cc: REMARK File = ../afs/afs_memcache.c, Line = 115
  An explicit type is missing ("int" assumed).

  afs_MemReadBlk(mceP, offset, dest, size)
  ^

cc-1498 cc: REMARK File = ../afs/afs_memcache.c, Line = 134
  There is no prototype for the call to osi_Panic.

          AFS_GUNLOCK();
          ^

cc-1233 cc: REMARK File = ../afs/afs_memcache.c, Line = 148
  An explicit type is missing ("int" assumed).

  afs_MemReadvBlk(mceP, offset, iov, nio, size)
  ^

cc-1498 cc: REMARK File = ../afs/afs_memcache.c, Line = 172
  There is no prototype for the call to osi_Panic.

              AFS_GUNLOCK();
              ^

cc-1233 cc: REMARK File = ../afs/afs_memcache.c, Line = 186
  An explicit type is missing ("int" assumed).

  afs_MemReadUIO(blkno, uioP)
  ^

[...]


I get similar for many/all? files in that source directory(src/afs/).
Should I worry about?

-- 
Martin Mokrejs <mmokrejs@natur.cuni.cz>, <m.mokrejs@gsf.de>
PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs
MIPS / Institute for Bioinformatics <http://mips.gsf.de>
GSF - National Research Center for Environment and Health
Ingolstaedter Landstrasse 1, D-85764 Neuherberg, Germany
tel.: +49-89-3187 3683 , fax: +49-89-3187 3585