Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: segfault in opensuse-11.2 latest CVS sources



On 2009-12-10 at 20:39 -0500, Vin Shelton wrote:
> It looks like it's crashing in setpwent(). ÂThe code in hashtable.c
> seems pretty straightforward. ÂHave I misconfigured my system somehow?

Yes.  Or your vendor provided a buggy system.

Look at /etc/nsswitch.conf.

Are you using NIS or something, so that you need libnss_compat?  If not,
I'd change s/compat/files/g in the values in /etc/nsswitch.conf and
remove the _compat entries.  One less library probed in every binary
doing any kind of name resolution, one less thing to go wrong.

If you're getting an abort() call inside free() then free() has been
passed a bad memory location, so if this is happening inside setpwent()
then something's very wrong down there.  Perhaps you've removed
nsswitch.conf or you've removed some of its contents.  Perhaps there's a
major platform bug.

But this is almost certainly not a zsh issue.

> Anyway, here's the backtrace:
> 
> #0 Â0x00007fd7890b04e5 in raise () from /lib64/libc.so.6
> (gdb) bt
> #0 Â0x00007fd7890b04e5 in raise () from /lib64/libc.so.6
> #1 Â0x00007fd7890b19b0 in abort () from /lib64/libc.so.6
> #2 Â0x00007fd7890eb66d in ?? () from /lib64/libc.so.6
> #3 Â0x00007fd7890f0c76 in ?? () from /lib64/libc.so.6
> #4 Â0x00007fd7890f596c in free () from /lib64/libc.so.6
> #5 Â0x00007fd788c6dc2a in ?? () from /lib64/libnsl.so.1
> #6 Â0x00007fd788c6dd5a in _nsl_default_nss () from /lib64/libnsl.so.1
> #7 Â0x00007fd788a58b61 in _nss_nis_setpwent () from
> /lib64/libnss_nis.so.2
> #8 Â0x00007fd788e78514 in ?? () from /lib64/libnss_compat.so.2
> #9 Â0x00007fd788e78686 in _nss_compat_setpwent () from
> /lib64/libnss_compat.so.2
> #10 0x00007fd789160850 in ?? () from /lib64/libc.so.6
> #11 0x00007fd78911d3fc in setpwent () from /lib64/libc.so.6

Regards,
-Phil



Messages sorted by: Reverse Date, Date, Thread, Author