Program info:  monitor 1.6
System info:   Dec Alpha 8400, 10GB memory, disks attached via StorageWorks
800 cabinet using raid, HSZ40, AdvFS.
I have compiled and successfully run monitor 1.6 on both a DecAlpha 2100A
(2GB Memory) and DecAlpha 4100 (2GB Memory), also using SW300 and SW800
cabinets.
Below is output from dbx.  Before I delve further into this and attempt to
figure out what's wrong, I'm hoping that someone has already "been there,
done that".  Right off-hand, I'd guess that one of the pointers is NULL,
but I'd be totally clueless as to why.  I'm not (yet) a "real" dbx user,
but I've used debuggers before and shouldn't have problems using dbx.  I'm
open to suggestions as to which direction to proceed.
# dbx monitor
dbx version 3.11.10
Type 'help' for help.
main:  93  parse(argc, argv, &option);          /* parse arguments */
warning: Files compiled -g3: parameter values probably wrong
(dbx) r
monitor: curses: Window size is 0 x 0.
signal Segmentation fault at   [get_queue:311 +0x8,0x12001aafc]
offset      = (off_t)target_list[target] ;
(dbx) list 300
   300          bytes  = copy.max_targets * sizeof(NEXUS ***) ;
   301
   302          /*
   303           *      Read the target list.
   304           */
   305          readk(offset, (char *)pointers, bytes) ;
   306
   307          /*
   308           *      Now get the offset of the LUN list.
   309           */
   310          target_list = (NEXUS ***)pointers ;
>* 311          offset      = (off_t)target_list[target] ;
   312          bytes       = copy.max_luns * sizeof(NEXUS **) ;
   313
   314          /*
   315           *      Read the LUN list.
   316           */
   317          readk(offset, (char *)pointers, bytes) ;
   318
   319          /*
   320           *      And finally, the address of the NEXUS for this LUN.
   321           */
   322          lun_list = (NEXUS **)pointers ;
   323          offset   = (off_t)lun_list[lun];
   324
(dbx) tstack
Thread 0x3:
>  0 get_queue(bus = 6) ["read_kernel.c":311, 0x12001aafc]
   1 collect_disk() ["disk.c":556, 0x12001d888]
   2 live(op = 0x14001eb60) ["live.c":307, 0x12000f5b0]
   3 main(argc = 6, argv = (nil)) ["monitor.c":131, 0x12000ee3c]
(dbx) quit
Sample compiler extracted lines list below:
/usr/bin/cc -DNO_TABLE_CPU -DCCHAR_T -DPLATFORM_NAME -DTERMIOS -DNEXUS_LIST
-DDISK_QUEUE -O -g3 -c monitor.c
/usr/bin/cc -DARCH='"Alpha"' -DUNIX='"V4.0"' -DVERSION='"V1.6"'
-DNO_TABLE_CPU -DCCHAR_T -DPLATFORM_NAME -DTERMIOS -DNEXUS_LIST -DDI
SK_QUEUE -O -g3 -c version.c
  .
  .
  .
..cal
Cal Mercer, University of Alaska, Statewide Office of Information Services
mailto:sxclm_at_ts.sois.alaska.edu   Voice: (907)474-6268  Fax: (907)474-7127
Received on Wed Sep 09 1998 - 01:42:14 NZST