Bash crashes when completing ~ (home dir)

Bug #235552 reported by Nicolás Lichtmaier
6
Affects Status Importance Assigned to Milestone
libnss-ldap (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Binary package hint: libnss-ldap

I'm using Ubuntu 8.04, with libnss-ldap version 258-1ubuntu3.

Stack trace:

#0 0x00007f3e8d1b5095 in *__GI_raise (sig=<value optimized out>)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1 0x00007f3e8d1b6af0 in *__GI_abort () at abort.c:88
#2 0x0000000000435624 in programming_error ()
#3 0x000000000048f9f5 in ?? ()
#4 0x00007f3e8cd5ee45 in _nss_ldap_ent_context_release (ctx=0x8b8608)
    at ldap-nss.c:2057
#5 0x00007f3e8cd5f795 in _nss_ldap_endpwent () at ldap-pwd.c:260
#6 0x00007f3e8d26c04d in __nss_endent (func_name=0x7f3e8d2a874e "endpwent",
    lookup_fct=0x7f3e8d26cfd0 <*__GI___nss_passwd_lookup>, nip=0x7f3e8d4e18e0,
    startp=0x7f3e8d4e18f0, last_nip=0x7f3e8d4e18e8, res=<value optimized out>)
    at getnssent_r.c:117
#7 0x00007f3e8d21f79a in endpwent () at ../nss/getXXent_r.c:144
#8 0x0000000000478321 in rl_username_completion_function ()
#9 0x000000000047838a in rl_completion_matches ()
#10 0x0000000000454013 in bash_default_completion ()

more info:

(gdb) fr 4
#4 0x00007f3e8cd5ee45 in _nss_ldap_ent_context_release (ctx=0x8b8608)
    at ldap-nss.c:2057
2057 ber_bvfree (ctx->ec_cookie);
(gdb) p *ctx
$3 = {ec_state = {ls_type = 1, ls_retry = 0, ls_info = {
      ls_key = 0xdfdfdfdfffffffff <Address 0xdfdfdfdfffffffff out of bounds>,
      ls_index = -1}}, ec_msgid = -1, ec_res = 0x0, ec_sd = 0x0,
  ec_cookie = 0x8bbde8}

Revision history for this message
Chuck Short (zulcss) wrote :

Hi,

Thanks for the bug report I have reported it upstream at:

http://bugzilla.padl.com/show_bug.cgi?id=406

Regards
chuck

Changed in libnss-ldap (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
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.