[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: heimdal 0.6.2 coredumps



Love Hörnquist Åstrand wrote:
> fandino <fandino@ng.fadesa.es> writes:
> 
> 
>>Hello list,
>>
>>  I finally got ldap(+smbk5pwd)+samba+heimdal working but I still
>>get a coredump while listing users on the ldap database, perhaps
>>I'm missing something but kadmin coredumps each time I requests
>>a full list of users, the weird is that I can list individual
>>users but not the complete list.
> 
> 
> I've not seen the error before, can you change if you see the of you try it
> with current heimdal.

I still get a coredump with 0.6.3. This time I simplify the configuration,
the kerberos database is very simple, only administrative principals
and two test principals are stored and the ldap server has an acl of
"access to * by * write" so problems with DIT permissions are improbable.


do you think I must try to run a snapshot?


# rpm -qa | grep heimdal
heimdal-lib-0.6.3-1
heimdal-x11-0.6.3-1
heimdal-tools-0.6.3-1
heimdal-0.6.3-1

# rpm -qa | grep openldap
openldap2-client-2.2.24-1
openldap2-back-ldap-2.2.24-1
openldap2-back-monitor-2.2.24-1
openldap2-2.2.24-1
openldap2-back-meta-2.2.24-1
openldap2-back-perl-2.2.24-1


# kadmin -l
kadmin> get usuario1
                Principal: usuario1@FADESA.ES
        Principal expires: never
         Password expires: never
     Last password change: never
          Max ticket life: unlimited
       Max renewable life: unlimited
                     Kvno: 79
                    Mkvno: 0
                   Policy: none
    Last successful login: never
        Last failed login: never
       Failed login count: 0
            Last modified: 2005-03-23 17:18:49 UTC
               Attributes:
Keytypes(salttype[(salt-value)]): des3-cbc-sha1(pw-salt), des-cbc-md5(pw-salt), des-cbc-md4(pw-salt), des-cbc-crc(pw-salt)

kadmin> list usuario1
   usuario1@FADESA.ES
kadmin> list *
Segmentation fault (core dumped)

# gdb /usr/sbin/kadmin ./core
GNU gdb 6.2.1
Copyright 2004 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 "i586-suse-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

Core was generated by `kadmin -l'.
Program terminated with signal 11, Segmentation fault.

warning: current_sos: Can't read pathname for load map: Input/output error

Reading symbols from /usr/lib/libkadm5clnt.so.4...done.
Loaded symbols for /usr/lib/libkadm5clnt.so.4
Reading symbols from /usr/lib/libkadm5srv.so.7...done.
Loaded symbols for /usr/lib/libkadm5srv.so.7
Reading symbols from /usr/lib/libhdb.so.7...done.
Loaded symbols for /usr/lib/libhdb.so.7
Reading symbols from /usr/lib/libsl.so.0...done.
Loaded symbols for /usr/lib/libsl.so.0
Reading symbols from /lib/libreadline.so.5...done.
Loaded symbols for /lib/libreadline.so.5
Reading symbols from /usr/lib/libkrb5.so.17...done.
Loaded symbols for /usr/lib/libkrb5.so.17
Reading symbols from /usr/lib/libldap-2.2.so.7...done.
Loaded symbols for /usr/lib/libldap-2.2.so.7
Reading symbols from /usr/lib/libsasl2.so.2...done.
Loaded symbols for /usr/lib/libsasl2.so.2
Reading symbols from /usr/lib/libssl.so.0.9.7...done.
Loaded symbols for /usr/lib/libssl.so.0.9.7
Reading symbols from /usr/lib/liblber-2.2.so.7...done.
Loaded symbols for /usr/lib/liblber-2.2.so.7
Reading symbols from /usr/lib/libasn1.so.6...done.
Loaded symbols for /usr/lib/libasn1.so.6
Reading symbols from /usr/lib/libroken.so.16...done.
Loaded symbols for /usr/lib/libroken.so.16
Reading symbols from /usr/lib/libcrypto.so.0.9.7...done.
Loaded symbols for /usr/lib/libcrypto.so.0.9.7
Reading symbols from /lib/libcom_err.so.2...done.
Loaded symbols for /lib/libcom_err.so.2
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /usr/lib/tls/libdb-4.2.so...done.
Loaded symbols for /usr/lib/tls/libdb-4.2.so
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /lib/tls/libc.so.6...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/libncurses.so.5...done.
Loaded symbols for /lib/libncurses.so.5
Reading symbols from /lib/tls/libpthread.so.0...done.
Loaded symbols for /lib/tls/libpthread.so.0
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
#0  0x400b88d8 in try_read1msg (ld=0x806fa18, msgid=5, all=1, sb=0x806fd20, lcp=0xbfffd81c, result=0xbfffd894) at result.c:1002
1002    result.c: No such file or directory.
         in result.c
(gdb) bt
#0  0x400b88d8 in try_read1msg (ld=0x806fa18, msgid=5, all=1, sb=0x806fd20, lcp=0xbfffd81c, result=0xbfffd894) at result.c:1002
#1  0x400b8f6f in ldap_result (ld=0x806fa18, msgid=5, all=1, timeout=0x0, result=0xbfffd894) at result.c:390
#2  0x400ba2df in ldap_search_s (ld=0x806fa18, base=0x0, scope=0, filter=0x0, attrs=0x0, attrsonly=0, res=0xbfffd894) at search.c:364
#3  0x40036d50 in LDAP_dn2principal (context=0x8052008, db=0x8052998, dn=0x806fd40 "cn=jefazo,dc=fadesa,dc=es", principal=0x0) at hdb-ldap.c:530
#4  0x40037430 in LDAP_message2entry (context=0x8052008, db=0x8052998, msg=0x806fde8, ent=0xbfffd960) at hdb-ldap.c:701
#5  0x40037628 in LDAP_seq (context=0x8052008, db=0x8052998, flags=0, entry=0xbfffd960) at hdb-ldap.c:880
#6  0x40038f0b in hdb_foreach (context=0x8052008, db=0x8052998, flags=0, func=0x4002b610 <foreach>, data=0xbfffd9f0) at hdb.c:157
#7  0x4002b591 in kadm5_s_get_principals (server_handle=0x80528a0, exp=0x805d93d "*", princs=0x0, count=0x0) at get_princs_s.c:102
#8  0x4001fbe4 in kadm5_get_principals (server_handle=0x80701e8, exp=0x0, princs=0x0, count=0x0) at common_glue.c:126
#9  0x0804e73f in foreach_principal (exp=0x805d93d "*", func=0x804b9c0 <do_get_entry>, funcname=0x804fc1c "get", data=0xbfffdaa8) at util.c:503
#10 0x0804b8a5 in getit (name=0x804f87d "list", terse_flag=Variable "terse_flag" is not available.
) at get.c:273
#11 0x400420de in sl_command (cmds=0x0, argc=0, argv=0x806ecf0) at sl.c:234
#12 0x4004215b in sl_command_loop (cmds=0x0, prompt=0x0, data=0xbfffdb98) at sl.c:319
#13 0x40042233 in sl_loop (cmds=0x80515e0, prompt=0x804fd8b "kadmin> ") at sl.c:335
#14 0x0804cb29 in main (argc=0, argv=0xbfffdcbc) at kadmin.c:316