From owner-freebsd-stable Wed Jan 30 15:13:25 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mail.westbend.net (ns1.westbend.net [216.47.253.3]) by hub.freebsd.org (Postfix) with ESMTP id 3293537B404 for ; Wed, 30 Jan 2002 15:13:22 -0800 (PST) Received: from WBIW006 (WBIw006.westbend.net [216.47.253.26]) by mail.westbend.net (8.11.6/8.11.6) with SMTP id g0UNDDQ14041; Wed, 30 Jan 2002 17:13:13 -0600 (CST) (envelope-from hetzels@westbend.net) Message-ID: <018801c1a9e3$b39b1500$1afd2fd8@westbend.net> From: "Scot W. Hetzel" To: "Robin P. Blanchard" Cc: References: <3C585BAD.537E280E@gactr.uga.edu> <00c101c1a9d2$f7218540$1afd2fd8@westbend.net> <3C58669B.B8477E25@gactr.uga.edu> Subject: Re: cyrus question Date: Wed, 30 Jan 2002 17:13:13 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG From: "Robin P. Blanchard" > # gdb /usr/local/cyrus/bin/deliver.debug > /nfs/homes/nate/deliver.debug.core > GNU gdb 4.18 > Copyright 1998 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you > are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for > details. > This GDB was configured as "i386-unknown-freebsd"... > Core was generated by `deliver.debug'. > Program terminated with signal 11, Segmentation fault. > Reading symbols from /usr/local/lib/libsasl.so.8...done. > Reading symbols from /usr/lib/libssl.so.2...done. > Reading symbols from /usr/lib/libcrypto.so.2...done. > Reading symbols from /usr/local/lib/libdb3.so.2...done. > Reading symbols from /usr/lib/libc.so.4...done. > Reading symbols from /usr/lib/libcrypt.so.2...done. > Reading symbols from /usr/lib/libkrb.so.3...done. > Reading symbols from /usr/lib/libcom_err.so.2...done. > Reading symbols from /usr/lib/libpam.so.1...done. > Reading symbols from /usr/local/lib/libldap.so.2...done. > Reading symbols from /usr/local/lib/liblber.so.2...done. > Reading symbols from /usr/libexec/ld-elf.so.1...done. > #0 main (argc=4, argv=0xbfbffad8) at deliver.c:276 > 276 return_path = p->pw_name; its failing at line 276 in deliver.c: if (return_path == NULL) { uid_t me = getuid(); struct passwd *p = getpwuid(me); return_path = p->pw_name; } With out the values for 'me', 'p' and 'p->pw_name', I can only guess that getpwuid(me) is returning with a NULL pointer, and at line 276 we are trying to use that pointer to get the pw_name. In gdb try 'p *p' or 'p p'. Scot To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message