Date: Wed, 30 Jan 2002 17:13:13 -0600 From: "Scot W. Hetzel" <hetzels@westbend.net> To: "Robin P. Blanchard" <Robin_Blanchard@gactr.uga.edu> Cc: <stable@FreeBSD.ORG> Subject: Re: cyrus question Message-ID: <018801c1a9e3$b39b1500$1afd2fd8@westbend.net> References: <3C585BAD.537E280E@gactr.uga.edu> <00c101c1a9d2$f7218540$1afd2fd8@westbend.net> <3C58669B.B8477E25@gactr.uga.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
From: "Robin P. Blanchard" <Robin_Blanchard@gactr.uga.edu>
> # 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?018801c1a9e3$b39b1500$1afd2fd8>
