shell dumps core while accessing libnss-ldap

Bug #64318 reported by Tapio Heiskanen
2
Affects Status Importance Assigned to Milestone
zsh (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: libnss-ldap

If one presses TAB to expand relative directories/files on command line zsh fails with:
ldap-nss.c:1323: do_init: Assertion `cfg->ldc_uris[__session.ls_current_uri] != ((void *)0)' failed.
and dumps core. First path component is ok, but second TAB fails.

It seems to dump core on the same error when a directory contains nodes which are owned by groups that are in ldap and does not exist in /etc/group. If node is owned by a user that is in ldap but access is restricted and name for UID is not available zsh doesn't crash on it.

Clearly this seems to be ACL problem on ldap side but still an issue for zsh.

Additionally this only happens with user credentials and not as root. Seems to be permission related.

This was experienced on zsh 4.3.2-13ubuntu1 and libnss-ldap 251-5.2 in edgy:
Linux bewdley 2.6.15.7-ubuntu1 #1 SMP PREEMPT Fri Sep 1 15:40:48 EEST 2006 x86_64 GNU/Linux

description: updated
description: updated
description: updated
description: updated
description: updated
Revision history for this message
Tapio Heiskanen (hessu-iki) wrote :

moved this to a bug report #64318 as for libnss-ldap as it seems that it is not directly related to zsh but is indeed repeatable also on bash.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.