HDTenEightyP/NetNews huggingface dataset:
From: jzwiebel@pgl-devsvr.den.mmc.com (John Zwiebel 303-977-1480 jzwiebel@pgl-devsvr.den.mmc.com)
Newsgroups: comp.unix.aix
Subject: NFS file corruption
Date: 19 Aug 92 23:48:35 GMT
Organization: PAGE @ Martin-Marietta

For historical reasons I am running SNAP (802.3) on the RS6000.  I have cisco routers in the network.  When I went to the new OS on the cisco's I started getting all kinds of data corruption.  Portions of some individual's files would show up in another user's files.  

Although initial impression is that it is all cisco's fault, I've retreated to an older cisco OS and discovered that we have been haveing the problem all along it just wasn't noticed because the higher network layers were covering the problem.  

Part of the problem is because the RS6000 doesn't provide UDP checksums for the RPC packets (which are used by NIS/NFS)  Part of the problem is the translation between my 802.3 nets and my standard DIX nets (which points at the cisco's).

We verified there is a problem by 'summing' several remotely mounted large files.  The whole file has to be transported across the net to be summed.  You have to use several to make sure the buffer spaces are emptied.  Well, the result is that the sum varies so the file is being corrupted.  I'd like some
confirmation from other system administrators that they also see the problem.  This is the csh script we were using.  

while (1)
        set cksum = "`sum /home/page/bin/ngrph | cut -d' ' -f1`"
        if ($cksum != 62684) then
                echo ERROR: Checksum $cksum does not equal 62684
        else
                echo Checksum for ngrph is $cksum
        endif
        set cksum = "`sum /home/page/utils/xloadimage | cut -d' ' -f1`"
        if ($cksum != 45172) then
                echo ERROR: Checksum $cksum for xloadimage does not equal 45172
        else
                echo Checksum for xloadimage is $cksum
        endif
        set cksum = "`sum /home/page/bin/ntst | cut -d' ' -f1`"
        if ($cksum != 00725) then
                echo ERROR: Checksum $cksum for ntst does not equal 00725
        else
                echo Checksum for ntst is $cksum
        endif
end


Any data will be appreciated.  Also Email is preferred.
Thanks
John Zwiebel
From: pavel@pixel.SLAC.Stanford.EDU (Tom Pavel)
Newsgroups: comp.unix.aix
Subject: Help with nlist(), XCOFF, and memory architecture...
Date: 16 Aug 92 01:04:02 GMT
Organization: Stanford Linear Accelerator Center


I'm trying to implement a dynamic function call mechanism (you find
out the name of the function at run-time, look it up in the symbol
table, and call the right address).  On my Sun, this worked very
trivially: an nlist() call returns the symbol table value for the
function, which happened to be the C-callable address of the function.
Of course, this is not quite so trivial on an RS/6000....

I've scoured the available documentation around here, and I've learned
a bit, although I must say I still don't understand XCOFF completely
(I don't understand COFF either, so that's ok).  I have verified that
nlist() does return the number that's in the symbol table.
Unfortunately, that number is not the "address of the function" in the
sense that I'm interested in.

Ok.  So I learned about the memory segments, and understand that all
the text symbols start with 0x10000000.  I'm still off by a little
bit.  I thought of using _text for the offset; still no good.  I even
thought I'd be real clever and figure out the offset by comparing the
nlist value for .main with &main; that still didn't work.

Anyone with any suggestions?  I know there's some segment offset, if
only I could find the value of it...   What good is an nlist() that
doesn't really return the address of the symbol?

While I'm on a roll....  How come all the global symbols start with
"." instead of "_"?  Any earthly reason?

Thanks for any leads...


Tom Pavel

Stanford Linear Accelerator Center
pavel@pixel.slac.stanford.edu
Newsgroups: comp.unix.aix
From: davidw@vista.atmos.uiuc.edu (David Wojtowicz)
Subject: Re: Debuging Segmentation Violation Fault
Organization: Atmospheric Science at Univ of Ill at Urbana-Champaign
Date: Fri, 14 Aug 1992 15:21:30 GMT
Keywords: Segmentation Violation

In article <1992Aug14.121619.26071@watson.ibm.com> lpickup@vnet.ibm.com writes:
>In article <1992Aug14.040021.25316@mcs.kent.edu>, jhuang@Chaos.mcs.kent.edu (Jing Huang) writes:
> [.stuff deleted.]
>|>
>|> segmentation violation in malloc_y at 0xd00d43f0
>|> 0xd00d43f0 (malloc_y+0x2a8) 7c7c45aa       stsi   r3,r28,0x8
>|>
>|>      From these two lines, all I can guess is that the fault is related to
>|> "malloc". But "malloc" is used more than dozens of times throughout the
>|> program, how am I supposed to know "who steps on whose toe and where".
>|>
>
> [.stuff deleted.]
>
>  Usually malloc fails when it can't honor your request for storage.
>i.e. you've requested a huge amount of memory (or even worse, a
>negative amount--which I believe translates into a huge amount as
>well!).
>--


Its even worse than this.  Malloc is not failing,(i.e. returning a NULL)
it is seg faulting!  This is a far more serious problem.  The classic
thing that causes seg faults inside a malloc is overwriting some previously
malloc'ed area.  For example if you malloc an array of size 80 and then
write to array location 81 you've overwritten your malloc'ed space.
This causes serious problems.  Malloc places indexes and pointers in the
space around the area you malloc.  It uses these pointers to help it
keep track of what's malloc'ed and what's not.  If one of these pointers
is trashed it might send malloc on a wild goose chase and cause it to
eventually seg fault.   Unfortunately it is over very difficult to
detect the exact location of these types of errors, especially if
the program is large and does lots of mallocs.  

The first thing would be to look at the new code added of course to
see if the error is obvious there.  Then check writing to memory areas
(assigning values to an array, etc.) that occurred not long before the
seg fault happened.  If this fails you need a debugging malloc (a
special malloc that helps to catch these kinds of errors)
Unfortunately IBM provides no such beast but there are ones available
though not readily.  Finally, a program like CodeCenter from
Centerline software is very likely to help but unfortunately costs
$3000/1 user license!  (Every time I say this a CenterLine employee
responds justifying the cost...I guess it is a free market and they
can charge whatever they want)

---------------------------------------------------------------------
David Wojtowicz, meteorological research programmer
Atmospheric Sciences Dept, University of Illinois at Urbana-Champaign
d-wojtowicz@uiuc.edu, davidw@vista.atmos.uiuc.edu
---------------------------------------------------------------------


Newsgroups: comp.unix.aix
From: rice@rab.enet.dec.com ()
Subject: More shared library questions (sounds like FAQ material)
Reply-To: rice@rab.enet.dec.com ()
Organization: Digital Equipment Corporation
Date: Thu, 13 Aug 1992 19:33:01 GMT


1. How do you tell a shared library from a static one?

2. How do you debug the shared code, library and dynamically loaded.
From: peter@ski.austin.ibm.com (Peter Jeffe 512.838.4019)
Newsgroups: comp.unix.aix
Subject: Re: SUMMARY:  Automounted Mail Spool
Date: 19 Aug 92 00:19:25 GMT
Organization: The Kernel Group, Inc.

In article <tkevans.713448637@eplrx7.es.dupont.com> tkevans@eplrx7.es.dupont.com writes:
>Placing an /etc/aliases file on the RS/6000's with everyone aliased
>to the mailhost resolved my problem.  However, since we're running
>NIS, it seems curious that the local /etc/aliases file allows
>delivery which the NIS aliases map with the *same* content fails
>with the same can't-write-to-/var/spool/mail error.

If you want sendmail to use NIS aliases you have to have the p option
defined.  Make sure that your Op line in /etc/sendmail.cf looks like:

Opmail.aliases

If you're using a Sun NIS server, you should get ix26266, shipped in
ptf U405801.

-- 
peter jeffe  peter@aixwiz.austin.ibm.com
From: mycroft@hal.gnu.ai.mit.edu (Charles Hannum)
Newsgroups: comp.unix.aix
Subject: Re: Shared libraries sharing from main app?
Date: 21 Aug 92 20:08:31 GMT
Organization: /etc/organization


In article <1992Aug21.173329.1517@mintaka.lcs.mit.edu>
mycroft@hal.gnu.ai.mit.edu (Charles Hannum) writes:
>
> Xmain (int argc, char **argv, char **envp)
> X{
> X  loadbind (0, main, foo);

I find it very distressing that I have to do this from within the main
executable.  (It can't be done within the shared library, because you
can't get the pointer to main() that you need without using loadquery()
and knowing the name of the executable otherwise.  Make sense?  Oh
well.)

This really *bites*.  A large part of the reason I even cared about
shared libraries was that I had the (now shattered) fantasy that I
could make various libraries used to link multiple programs shared,
without making modifications to the programs using them.

It turns out that, in general, I can't.  I don't see why the system
fundamentally can't do this sort of reverse-linking at run time; it has
all the mechanism to do it, but it simply doesn't.

-- 
 \   Charles Hannum, mycroft@ai.mit.edu
 /\  White heterosexual atheist male (WHAM) pride!
From: dla@se05.wg2.waii.com (Doug Acker)
Newsgroups: comp.unix.aix
Subject: amd on aix 3.2.2
Date: 13 Aug 92 20:08:29 GMT
Reply-To: acker@se01.wg2.waii.com
Organization: Western Geophysical Exploration Products

...anyone have experience running amd on AIX .. 3.2/3.2.2 .... I'm having 
a dickens of a problem in trying to get it registered with portmap .. and
if I do .. it "dies" a few minutes later causing df to hang.

-- 
Douglas L. Acker

Western Geophysical Exploration Products
Systems Engineer

Email (internal):  acker                Phone:  713-964-6128
      (Internet):  acker@wg2.waii.com
From: probe@mit.edu (Richard Basch)
Newsgroups: comp.unix.aix
Subject: libs.a: group caching
Date: 16 Aug 92 03:30:33 GMT
Distribution: comp.unix.aix
Organization: Massachusetts Institute of Technology


At MIT/Athena, we have a variant of the standard login program... it
looks up the users from a central database and adds the user temporarily
to the workstation's /etc/passwd file (and all the other files
associated with the RISC/6000).  It also looks up the user's groups and
adds those, also (primarily for the benefit of NFS).

What I have discovered is that adding a user using the calls:

	setuserdb(S_WRITE|S_READ);
	setpwdb(S_WRITE|S_READ);
	...
	putuserattr(...);
	...
	putgroupattr(...);
	...
	endpwdb();
	enduserdb();
	...
	setpcred(user,0);
	setpenv(...);

does not properly initialize the user's grouplist... The user's
grouplist will be a RANDOM subset of what is in /etc/group, even though
the user appears to be in all of the groups according to /etc/group and
the groups seem to be correctly listed in /etc/security/*.

I am assuming the internals of setpcred() are something like the
following... I used something like the following in my own testing and
found that the grouptoID() calls were failing even though all the
various entries appeared to be in the files...  (Actually, my testing
included some extra features such as eliminating duplicate gids, but
I am not sure if the AIX internal routines do that, though it would be
easy enough to test).

	char *group;
	gid_t gid, gids[NGROUPS];
	int groups=0, i;

	if (getuserattr(user, S_GROUPS, (void *)&group, SEC_LIST)==0) {
		while (*group && groups<NGROUPS) {
			if (grouptoID(group, &gid))
				gids[groups++] = gid;
			while (*group++) ;
		}
		setgroups(groups,gids);
	}

Anyway, after nm'ing the library and doing some more testing, I was
guessing that various old data may have been cached by the library
routines and not updated properly with putgroupattr() calls.

The only solution to the problem that I found was to use the following
code prior to calling setpcred():

	/* Make sure there are no dangling references to userdb/pwdb */
	i = chksessions();
	while (i--) enduserdb();
	i = chkpsessions();
	while (i--) endpwdb();

	/* Clear cache of group entries */
	endgroups();

Does anyone know what is going on, and if this is truly a bug... it
appears to be a bug in 3.1.6 and 3.1.8.  I have not yet tested 3.2.

The only reason I do the multiple enduserdb()/endpwdb() is to ensure
everything is properly flushed before doing endgroups().  The structure
of our login program was such that the reference count on the
userdb/pwdb was already 0, but I tend to have a paranoid programming
style...

Also, am I using these routines correctly?  Obviously, I could refer to
source code, but it seems like such a waste to taint myself if I can
find out the information with "nm" and black-box testing.  I wouldn't
need to use these routines if libs.a caching worked properly...

-Richard
From: johnson@austin.ibm.com (Fred L. Johnson)
Newsgroups: comp.unix.aix
Subject: Re: Logical Volume Groups
Date: 12 Aug 92 14:22:19 GMT
Organization: IBM
Originator: johnson@tanstaafl.austin.ibm.com


In article <5684@hq.hq.af.mil>, rknowles@postmaster@hq.af.mil (Rick Knowles) writes:
> Howdy,
>    Me and a couple of other guys are about to set up a 530H.  Everything was
> going fine until we got into an argument on logical volume groups.  Currently
> we are divided into at least two camps.  One guy wants to have just rootvg,
> another wants at least two volume groups, and one weenie refused to vote.
>    Obviously there are pros and cons to both setups.  With one vol grp, we put
> the entire system on an image backup.  On the other, we have greater control
> on the location of our data.
>    Does anybody have any good stories/experiences/suggestions out there?  Are
> there any pitfalls we need to be aware of?

My recommendation would be to at least put your user data in a separate volume
group.  This way your user data is not exposed to update problems or, heaven
forbid, reinstallations of the OS.  If you had to reinstall for some reason you
would just install on the non-user data disks and then import the user data
volume group.  If your user data is on /u or /home or another filesystem that
is created by default during installation then you should remove the one in the
rootvg before importing the user data volume group.

So I would definitely recommend at least two volume groups, one for the rootvg
and one for user data.  I personally keep my page space in its own vg.  It is
possible in a multi-disk volume group to specify which logical volumes go on
which disks, but I find it simpler just to create another volume group since
I dedicate one disk to my paging space.

- Fred
 ______________________________________________________________________________
|                                    |                                         |
| Fred L. Johnson                    | inet: johnson@tanstaafl.austin.ibm.com  |
| IBM Advanced Workstation Division  | vnet: FJOHNSON at AUSVMQ                |
| AIX BOS Development                | Internet: johnson@aixwiz.austin.ibm.com |
| 11400 Burnet Road,  9540           | phone: (512) 838-2682                   |
| Austin, TX  78758-3493             | tie line: 678-2682                      |
|____________________________________|_________________________________________|
-- 

- Fred
 ______________________________________________________________________________
|                                    |                                         |
From: claudius@zeus.calpoly.edu (King_Claudius (Chris Knight))
Newsgroups: comp.unix.aix
Subject: Re: Window based editor for AIX/6000
Date: 19 Aug 92 18:08:04 GMT
Organization: California Polytechnic State University, San Luis Obispo

vivanco@eeserv.ee.umanitoba.ca (Rodrigo Vivanco) says:
>HELP! Please, can anybody tell me where I can get a half decent window/mouse
>based text editor like the one on a Sun's. I have xedit but it lacks, or
>I don't know how to do it, the following: CUT & PASTE, I can select and
>paste but I cant cut out a chunk of text. SCROLLABLE cut & paste. I can
>only select what's visible on the screen. A decent editor should scroll
>down/up to select more text. HORIZONTAL SCROLLBAR! It doesn't have one.
>FIND & REPLACE: xedit is supposed to do it but when I try it doesn't
>find anything, much less replace it. GO TO A LINE NUMBER. It's useful to
>jump to a line number, when the compiler gives you the line number of the
>error.

Try aXe, available via anonymous ftp from export.lcs.mit.edu.
-- 
---King Claudius---                                   claudius@zeus.calpoly.edu
Newsgroups: comp.unix.aix,comp.protools.tcp-ip
From: wieder@interlan.Interlan.COM (Scott Wieder)
Subject: HELP with tftpd daemon on AIX, please
Organization: Racal InterLan, Inc., Boxborough, MA (1-800-LAN-TALK)
Date: Thu, 20 Aug 92 19:17:04 GMT

I need help configuring the tftpd daemon on an RS6000 running
AIX.  According to someone from IBM, AIX does not support a
default directory.

Can someone tell me how to set up tftp boot on an RS6000 running
AIX?  I am specifically interested in knowing what is the default
directory or how to specify a home directory for the tftpd
daemon.


Thanks in advance for you help.


Scott Wieder
wieders@rimail.interlan.com
508.263.9929, extension 464
From: rudy@chukran.austin.ibm.com
Newsgroups: comp.unix.aix
Subject: Re: How Much Real Memory Is being Used?
Keywords: ps, RSS, TSIZE, TRS, size
Date: 12 Aug 92 23:22:05 GMT
Reply-To: chukran@austin.vnet.ibm.com(Rudy Chukran)
Organization: IBM Advanced Workstation Division

In article <214@edi386.huber.com>, eddjp@edi386.huber.com ( Dewey Paciaffi ) writes:
|> 
|> Is there an easy way to determine how much memory a user is using, not
|> counting paged out blocks, and to determine how much of that memory
|> is shared or sharable?
|> 
Rather than walk you thru brain damaged ps memory stats, which even
after explanation, leaves you with this empty feeling, Id suggested
trying the svmon command, which will answer all your questions.
You must have applied the AIX 3.2.1 selective fix that gives you 
the enhanced performance tool set to use svmon.
-- 
*********************************************************************
Rudy Chukran                |       EMAIL:            
IBM AIX Technical Consulting| RSCS: CHUKRAN at AUSTIN 
11400 Burnet Rd.            | AWDnet:rudy@chukran.austin.ibm.com    
Internal ZIP 2830           | internet: chukran@austin.vnet.ibm.com
Austin, Texas 78758         |
*********************************************************************
From: joann@ariadne.SLAC.Stanford.EDU (Jo Ann Malina)
Newsgroups: comp.unix.aix
Subject: Re: networking software on RS/6000?
Date: 19 Aug 92 00:14:53 GMT
Reply-To: joann@unixhub.slac.stanford.edu
Organization: SLAC (Stanford Linear Accelerator Center)

In article <1992Aug13.124313.25835@rdg.dec.com>, frank@poiro.enet.dec.com (Frank O'Neill) writes: 
|> We've just installed an RS6000 running AIX 3.2.  Does the networking software 
|> come preinstalled or do we need to get additional software for TCP-IP, NFS ...
|> anything else?
|> 
|> We can't seem to find any relevant files and listing the installed software
|> via SMIT doesn't seem to indicate that these are installed.  If I'm missing
|> something, can someone please tell me how these can be set up?

The command:

smit nfs

will get you to a menu that lets you configure tcp/ip, nfs and nis.

If you'd rather go in through the front door, enter smit, from the top
menu choose "Communications Applications and Services" and from the
next menu choose "NFS" and it will get you to the same place.

*) *) *) *) *) *) *) *) *) *) *)!(* (* (* (* (* (* (* (* (* (* (* (* (*
Jo Ann Malina, Stanford Linear Accelerator Center
joann@unixhub.slac.stanford.edu  -or-  415/926-2846
Neither Stanford nor the DOE would be caught dead with these opinions.
Nor do they consult me when formulating theirs.
Newsgroups: comp.unix.aix
From: greg@godzilla.quotron.com (Greg "Maddog" Knauss)
Subject: Reducing filesystem size
Organization: Quotron Systems, Inc.
Date: Wed, 19 Aug 1992 20:36:58 GMT

How, exactly, do you reducing the size of /usr?  The normal method of
shrinking a filesystem is to copy it to tape, remove it, re-create it at
the new size and move the files back.  But /usr has libc.a and if you
remove that, the machine staggers around a little and then dies.  Anybody
have any ideas?  (THAT'S the last time I do a full installation of Info
Explorer...)
-- 
 ------------------------------------------------------------------------------
 Greg "Maddog" Knauss                      My boss doesn't know I'm doing this,
 greg@{duke|godzilla}.quotron.com                so I doubt he'd agree with me.
 ------------------------------------------------------------------------------
From: trt@duke.cs.duke.edu (Tom Truscott)
Newsgroups: comp.unix.aix
Subject: Re: documentation on getpriv/setpriv?
Date: 13 Aug 92 00:32:53 GMT
Organization: IBM RTP

>It is quite easy to write
>code which uses the access() and other functions.

But access() cannot be used to provide security, because of
race problems for example.
Several CERT advisories have been due to use of this call.
Indeed there are virtually no reasonable correct uses of this call.
I have a thorough discussion of this, send mail if you want a copy.

The man page for access() should discourage its use.
There are other calls and programming practices that should be avoided
as well.  A "SPECIAL CONSIDERATIONS" section of the man page
could do this for access(), gets(), O_NSHARE and O_RSHARE, and so on
(setpriv/getpriv?).  It is important to be able to take this first step,
because without it no "feature" can ever be eliminated.
From: nlane@well.sf.ca.us (Nathan D. Lane)
Newsgroups: comp.unix.aix
Subject: Re: Memory for RS/6000 220
Keywords: memory rs/6000 220
Date: 18 Aug 92 00:07:44 GMT
Organization: Whole Earth 'Lectronic Link

Just about any 3rd party supplier worth their salt ought to have that 
memory.  It's just that the part numbers for the 220 are different from
the part numbers for the normal PS/2 RAM that the 220 can use.  I bought
4MB simms for $190 each for a generic PS/2.  I found later some 8MB simms
for <$300.00 for the Model 90/Model 95 machines - reputed to work in
220's.  I can followup next week after my Simm's come in (should be here
day after tomorrow.).  The 300 price is less than half of IBM's price.
It's even $200.00 cheaper than their 50% discount price.

-Nathan Lane
Trico Title Company, Santa Barbara, CA
Newsgroups: comp.unix.aix
From: fred@dickens.com (Fred R Stearns)
Subject: C Compilers for Risc System/6000
Date: Wed, 19 Aug 1992 17:37:17 GMT
Organization: Dickens Data Systems, Inc.

Are there any C compilers for this architecture other than
xlc and gcc?
-- 
Fred R. Stearns -- fred@dickens.com
Everything's a kludge!
Newsgroups: comp.unix.aix,comp.windows.x
From: scotte@cdsac.uucp (L. Scott Emmons)
Subject: Re: Hanging X11R4 server under AIX3.2.1
Date: Wed, 19 Aug 1992 22:39:45 GMT
Organization: Cable Data (U.S. Computer Services), Sacramento, CA

In article <1992Aug19.181555.25881@newssrv.edvz.univie.ac.at> tom@bim.itc.univie.ac.at (Tom Kovar) writes:
>  I am running AIX3.2.1 on more RS6000's (550's and 220's). In some cases
>(not quite reproducible), when the Xserver exits, the console keeps hanging.
>That means, that the Xserver process really exits, but the background with
>traces of some of the windows stays on the screen, and the console + keyboard
>are dead. The only help I know is reboot :(

When this happens on our HFT's, the only way I know to unhang it
(without rebooting) is to log in to another tty as root, then cat some
junk to /dev/hft/1. The cat will hang for a few minutes, then it will
return, and voila, the hft will be freed... Can anyone explain why
this works? I'd guess it has something to do with forcing a
screen-mode switch at the next timeout period (I'm not sure WHAT times
out)...

-- 
			   L. Scott Emmons
		     csusac.csus.edu!cdsac!scotte