getpwuid() dumps core on *our* DECsystem 5400

Dan Barrett barrett at jhunix.HCF.JHU.EDU
Sat Jun 1 11:49:35 AEST 1991


	Here's one for the gurus in the audience.  ULTRIX Software
Support is currently stumped.

	Any program compiled and run on our DECsystem 5400 dumps core
if it calls getpwuid() (or other getpw???() function).  However, the SAME
BINARY runs fine on a DECstation 3100.
	If we compile the program on a DECstation 3100, it runs fine on
either the DS3100 oir the DS5400.
	Now the weird part:  both the DS5400 and the DS3100 are physically
using the SAME COMPILER and SAME LIBRARIES.  (The 3100 mounts them by NFS.)
	OS ==  Ultrix 4.0, rev 179.

	Here is a minimal example.  Yes, it still dumps core if I add
the usual #include lines.

	$ cat foo.c
	main()
	{
		getpwuid(getuid());
	}

	$ cc -g foo.c
	$ a.out
	Segmentation fault (core dumped)

	$ dbx a.out core
	dbx version 2.0
	Type 'help' for help.
	Corefile produced from file "a.out"
	Child died at pc 0x10016140 of signal : Segmentation fault
	reading symbolic information ...
	[using memory image in core]
	(dbx) where
	>  0 ntohl.ntohl(0x0, 0x0, 0x0, 0x0, 0x0) [0x1001613c]
	(dbx)

	The only lead I have is that the 5400 is acting as Hesiod server
for the 3100.  /etc/svc.conf looks fine:  passwd is "local" on the 5400
and "local,bind" on the 3100.  Security level is plain old BSD.

	ULTRIX software support has been "unable to reproduce" the problem.
Of course, they haven't actually tried it on the same setup, which might
be why....  <mild sarcasm and mild sigh>

                                                        Dan

 //////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
| Dan Barrett, Department of Computer Science      Johns Hopkins University |
| INTERNET:   barrett at cs.jhu.edu           |                                |
| COMPUSERVE: >internet:barrett at cs.jhu.edu | UUCP:   barrett at jhunix.UUCP    |
 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/////////////////////////////////////



More information about the Comp.unix.ultrix mailing list