[4876] in Athena Bugs

home help back first fref pref prev next nref lref last post

ps l and AFS

daemon@ATHENA.MIT.EDU (John Carr)
Sat May 5 21:56:18 1990

To: bugs@ATHENA.MIT.EDU, bug-afs@ATHENA.MIT.EDU
Date: Sat, 05 May 90 21:56:02 EDT
From: John Carr <jfc@ATHENA.MIT.EDU>

ps ignores static symbols when creating the list of symbols in the
psdatabase.  Since AFS sleeps on the addresses of some static variables, ps
gets the wchan field wrong in its output.  There are two possible fixes:


	1. Add the following 2 lines near line 1915 in the function
	   "nlist()" in ps.c

			    && type != (N_EXT | N_BSS)
+			    && type != N_DATA
+			    && type != N_BSS)
				continue;

	(this makes it include static symbols, at the cost of a larger
	psdatabase and possibly slower searches through it in normal use)


	2. Make any symbols that AFS might use as an address for sleep() on
	   global.  For example "waitV" in afs_osinet.c.


home help back first fref pref prev next nref lref last post