Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!jhunix!barrett From: barrett@jhunix.HCF.JHU.EDU (Dan Barrett) Newsgroups: comp.unix.ultrix Subject: getpwuid() dumps core on *our* DECsystem 5400 Keywords: hard Message-ID: <8523@jhunix.HCF.JHU.EDU> Date: 1 Jun 91 01:49:35 GMT Organization: The Johns Hopkins University - HCF Lines: 52 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.... Dan //////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ | Dan Barrett, Department of Computer Science Johns Hopkins University | | INTERNET: barrett@cs.jhu.edu | | | COMPUSERVE: >internet:barrett@cs.jhu.edu | UUCP: barrett@jhunix.UUCP | \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/////////////////////////////////////