Path: utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request From: mferrare@adelphi.ua.oz.au (Mark Ferraretto) Newsgroups: comp.sys.sun Subject: Segmentation fault from getpwnam (& assorted routines) Keywords: SunOS Message-ID: <493@brchh104.bnr.ca> Date: 28 Nov 90 17:45:45 GMT Sender: news@brchh104.bnr.ca Organization: Sun-Spots Lines: 13 Approved: Sun-Spots@rice.edu X-Original-Date: 21 Nov 90 06:42:02 GMT X-Sun-Spots-Digest: Volume 9, Issue 376, message 13 X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu Are there any special quirks associated with the getpwent(3) routines? I'm running SunOS 4.0.3 on a 4/280. I need to call getpwnam() repeatedly from a function. But this is done at random intervals between other functions as demanded by the user. If the function with getpwnam() is called first, it works fine. If anything else is called and then getpwnam() is called I get a segmentation fault. If I call the function repeatedly it works fine. xdbx says there is some problem with malloc in the routine. Any Ideas? _ Name : Mark Ferraretto \ \ Place : Department of Physics and Mathematical Physics || \ \ University of Adelaide ==========>==>==-- Aarnet: mferrare@physics.adelaide.edu.au