[comp.sys.sun] Segmentation fault from getpwnam

mferrare@adelphi.ua.oz.au (Mark Ferraretto) (11/29/90)

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