From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,90412519ad661ddc X-Google-Attributes: gidfee84,public X-Google-Thread: 1164f8,90412519ad661ddc X-Google-Attributes: gid1164f8,public From: Greg Sylvain Subject: Re: DU 4.0: difference between nlist(3) vs. knlist(3) Date: 1998/12/17 Message-ID: <36791D4E.3E962B0C@mindspring.com>#1/1 X-Deja-AN: 423271430 Distribution: all Content-Transfer-Encoding: 7bit References: <36791131.D4DC1F64@mindspring.com> To: Greg Sylvain X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Landmark Systems Mime-Version: 1.0 Newsgroups: comp.sys.dec,comp.unix.osf.osf1 Hello again, To follow-up: I only crash when I'm running knlist() as root and it crashes when exiting main at the symbol cma_reinit_malloc. (Originally, I was running as root to open /dev/kmem, but I comment that out and root privaledge isn't neccessary just to get the name list, but I receive a SIGSEGV from the OS ??) Greg Sylvain wrote: > Hi, > > Could someone tell me the difference between these two libc calls, other > than the parametric difference ? > > I have a C++ program (compiled with gcc 2.7.2.1) which, when compiled > with knlist() it crashes after three calls to knlist(), but when > compiled with nlist() it runs fine. > > Thanks in advance for any suggestions, > greg