Tests failing kdb5_util create apparently broken on the trunk

Sam Hartman hartmans at MIT.EDU
Wed Oct 4 17:45:30 EDT 2006


>>>>> "Will" == Will Fiveash <William.Fiveash at sun.com> writes:

    Will> On Wed, Oct 04, 2006 at 05:15:03PM -0400, Ken Raeburn wrote:
    >> On Oct 4, 2006, at 13:33, Will Fiveash wrote: >and plain.length
    >> is ending up with a huge value (4294967294) so >malloc() >blows
    >> up.  Ken tells me that this is very likely a ASN.1 bug he is
    >> >working on.
    >> 
    >> The ASN.1 problem is in the LDAP-specific code, which I assume
    >> was not what Sam was testing.

    Will> Ah, I forgot that.  Hmmm, I wonder if Sam's problem is the
    Will> same as the one I reported?  If so, then perhaps there is


ltrace suggests there is a good chance that it is the same problem
Will reported.

Here's the valgrind output, which seems mostly unrelated.

==23975== Memcheck, a memory error detector.
==23975== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et al.
==23975== Using LibVEX rev 1606, a library for dynamic binary translation.
==23975== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP.
==23975== Using valgrind-3.2.0-Debian, a dynamic binary instrumentation framework.
==23975== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et al.
==23975== For more details, rerun with: -v
==23975== 
==23975== My PID = 23975, parent PID = 23954.  Prog and args are:
==23975==    ../../../kadmin/dbutil/kdb5_util
==23975==    create
==23975== 
--23975-- DWARF2 CFI reader: unhandled CFI instruction 0:50
--23975-- DWARF2 CFI reader: unhandled CFI instruction 0:50
--23975-- DWARF2 CFI reader: unhandled CFI instruction 0:50
--23975-- DWARF2 CFI reader: unhandled CFI instruction 0:50
==23975== Invalid read of size 4
==23975==    at 0x4111351: (within /lib/ld-2.3.6.so)
==23975==    by 0x4106ACE: (within /lib/ld-2.3.6.so)
==23975==    by 0x46C9B9F: (within /lib/tls/libc-2.3.6.so)
==23975==    by 0x410BA5E: (within /lib/ld-2.3.6.so)
==23975==    by 0x46CA55A: _dl_open (in /lib/tls/libc-2.3.6.so)
==23975==    by 0x4479D22: (within /lib/tls/libdl-2.3.6.so)
==23975==    by 0x410BA5E: (within /lib/ld-2.3.6.so)
==23975==    by 0x447A476: (within /lib/tls/libdl-2.3.6.so)
==23975==    by 0x4479DA0: dlopen (in /lib/tls/libdl-2.3.6.so)
==23975==    by 0x458B57A: krb5int_open_plugin (plugins.c:105)
==23975==    by 0x458BC96: krb5int_open_plugin_dirs (plugins.c:447)
==23975==    by 0x4403052: kdb_load_library (kdb5.c:363)
==23975==  Address 0x6347E6C is 116 bytes inside a block of size 119 alloc'd
==23975==    at 0x43D84A1: malloc (vg_replace_malloc.c:149)
==23975==    by 0x458BC30: krb5int_open_plugin_dirs (plugins.c:439)
==23975==    by 0x4403052: kdb_load_library (kdb5.c:363)
==23975==    by 0x44032C8: kdb_find_library (kdb5.c:445)
==23975==    by 0x44034C7: kdb_setup_lib_handle (kdb5.c:537)
==23975==    by 0x4403865: krb5_db_create (kdb5.c:666)
==23975==    by 0x804BBB9: kdb5_create (kdb5_create.c:262)
==23975==    by 0x804AC6E: main (kdb5_util.c:311)
==23975== 
==23975== Invalid read of size 4
==23975==    at 0x41114B9: (within /lib/ld-2.3.6.so)
==23975==    by 0x4106ACE: (within /lib/ld-2.3.6.so)
==23975==    by 0x46C9B9F: (within /lib/tls/libc-2.3.6.so)
==23975==    by 0x410BA5E: (within /lib/ld-2.3.6.so)
==23975==    by 0x46CA55A: _dl_open (in /lib/tls/libc-2.3.6.so)
==23975==    by 0x4479D22: (within /lib/tls/libdl-2.3.6.so)
==23975==    by 0x410BA5E: (within /lib/ld-2.3.6.so)
==23975==    by 0x447A476: (within /lib/tls/libdl-2.3.6.so)
==23975==    by 0x4479DA0: dlopen (in /lib/tls/libdl-2.3.6.so)
==23975==    by 0x458B57A: krb5int_open_plugin (plugins.c:105)
==23975==    by 0x458BC96: krb5int_open_plugin_dirs (plugins.c:447)
==23975==    by 0x4403052: kdb_load_library (kdb5.c:363)
==23975==  Address 0x6347E6C is 116 bytes inside a block of size 119 alloc'd
==23975==    at 0x43D84A1: malloc (vg_replace_malloc.c:149)
==23975==    by 0x458BC30: krb5int_open_plugin_dirs (plugins.c:439)
==23975==    by 0x4403052: kdb_load_library (kdb5.c:363)
==23975==    by 0x44032C8: kdb_find_library (kdb5.c:445)
==23975==    by 0x44034C7: kdb_setup_lib_handle (kdb5.c:537)
==23975==    by 0x4403865: krb5_db_create (kdb5.c:666)
==23975==    by 0x804BBB9: kdb5_create (kdb5_create.c:262)
==23975==    by 0x804AC6E: main (kdb5_util.c:311)
==23975== 
==23975== Invalid read of size 4
==23975==    at 0x41114B9: (within /lib/ld-2.3.6.so)
==23975==    by 0x4104E29: (within /lib/ld-2.3.6.so)
==23975==    by 0x4106B55: (within /lib/ld-2.3.6.so)
==23975==    by 0x46C9B9F: (within /lib/tls/libc-2.3.6.so)
==23975==    by 0x410BA5E: (within /lib/ld-2.3.6.so)
==23975==    by 0x46CA55A: _dl_open (in /lib/tls/libc-2.3.6.so)
==23975==    by 0x4479D22: (within /lib/tls/libdl-2.3.6.so)
==23975==    by 0x410BA5E: (within /lib/ld-2.3.6.so)
==23975==    by 0x447A476: (within /lib/tls/libdl-2.3.6.so)
==23975==    by 0x4479DA0: dlopen (in /lib/tls/libdl-2.3.6.so)
==23975==    by 0x458B57A: krb5int_open_plugin (plugins.c:105)
==23975==    by 0x458BC96: krb5int_open_plugin_dirs (plugins.c:447)
==23975==  Address 0x6347E6C is 116 bytes inside a block of size 119 alloc'd
==23975==    at 0x43D84A1: malloc (vg_replace_malloc.c:149)
==23975==    by 0x458BC30: krb5int_open_plugin_dirs (plugins.c:439)
==23975==    by 0x4403052: kdb_load_library (kdb5.c:363)
==23975==    by 0x44032C8: kdb_find_library (kdb5.c:445)
==23975==    by 0x44034C7: kdb_setup_lib_handle (kdb5.c:537)
==23975==    by 0x4403865: krb5_db_create (kdb5.c:666)
==23975==    by 0x804BBB9: kdb5_create (kdb5_create.c:262)
==23975==    by 0x804AC6E: main (kdb5_util.c:311)
==23975== 
==23975== Conditional jump or move depends on uninitialised value(s)
==23975==    at 0x4108EA1: (within /lib/ld-2.3.6.so)
==23975==    by 0x46C9EA9: (within /lib/tls/libc-2.3.6.so)
==23975==    by 0x410BA5E: (within /lib/ld-2.3.6.so)
==23975==    by 0x46CA55A: _dl_open (in /lib/tls/libc-2.3.6.so)
==23975==    by 0x4479D22: (within /lib/tls/libdl-2.3.6.so)
==23975==    by 0x410BA5E: (within /lib/ld-2.3.6.so)
==23975==    by 0x447A476: (within /lib/tls/libdl-2.3.6.so)
==23975==    by 0x4479DA0: dlopen (in /lib/tls/libdl-2.3.6.so)
==23975==    by 0x458B57A: krb5int_open_plugin (plugins.c:105)
==23975==    by 0x458BC96: krb5int_open_plugin_dirs (plugins.c:447)
==23975==    by 0x4403052: kdb_load_library (kdb5.c:363)
==23975==    by 0x44032C8: kdb_find_library (kdb5.c:445)
==23975== 
==23975== Conditional jump or move depends on uninitialised value(s)
==23975==    at 0x4109135: (within /lib/ld-2.3.6.so)
==23975==    by 0x46C9EA9: (within /lib/tls/libc-2.3.6.so)
==23975==    by 0x410BA5E: (within /lib/ld-2.3.6.so)
==23975==    by 0x46CA55A: _dl_open (in /lib/tls/libc-2.3.6.so)
==23975==    by 0x4479D22: (within /lib/tls/libdl-2.3.6.so)
==23975==    by 0x410BA5E: (within /lib/ld-2.3.6.so)
==23975==    by 0x447A476: (within /lib/tls/libdl-2.3.6.so)
==23975==    by 0x4479DA0: dlopen (in /lib/tls/libdl-2.3.6.so)
==23975==    by 0x458B57A: krb5int_open_plugin (plugins.c:105)
==23975==    by 0x458BC96: krb5int_open_plugin_dirs (plugins.c:447)
==23975==    by 0x4403052: kdb_load_library (kdb5.c:363)
==23975==    by 0x44032C8: kdb_find_library (kdb5.c:445)
==23975== 
==23975== Conditional jump or move depends on uninitialised value(s)
==23975==    at 0x41092E6: (within /lib/ld-2.3.6.so)
==23975==    by 0x46C9EA9: (within /lib/tls/libc-2.3.6.so)
==23975==    by 0x410BA5E: (within /lib/ld-2.3.6.so)
==23975==    by 0x46CA55A: _dl_open (in /lib/tls/libc-2.3.6.so)
==23975==    by 0x4479D22: (within /lib/tls/libdl-2.3.6.so)
==23975==    by 0x410BA5E: (within /lib/ld-2.3.6.so)
==23975==    by 0x447A476: (within /lib/tls/libdl-2.3.6.so)
==23975==    by 0x4479DA0: dlopen (in /lib/tls/libdl-2.3.6.so)
==23975==    by 0x458B57A: krb5int_open_plugin (plugins.c:105)
==23975==    by 0x458BC96: krb5int_open_plugin_dirs (plugins.c:447)
==23975==    by 0x4403052: kdb_load_library (kdb5.c:363)
==23975==    by 0x44032C8: kdb_find_library (kdb5.c:445)
==23975== 
==23975== Conditional jump or move depends on uninitialised value(s)
==23975==    at 0x4109313: (within /lib/ld-2.3.6.so)
==23975==    by 0x46C9EA9: (within /lib/tls/libc-2.3.6.so)
==23975==    by 0x410BA5E: (within /lib/ld-2.3.6.so)
==23975==    by 0x46CA55A: _dl_open (in /lib/tls/libc-2.3.6.so)
==23975==    by 0x4479D22: (within /lib/tls/libdl-2.3.6.so)
==23975==    by 0x410BA5E: (within /lib/ld-2.3.6.so)
==23975==    by 0x447A476: (within /lib/tls/libdl-2.3.6.so)
==23975==    by 0x4479DA0: dlopen (in /lib/tls/libdl-2.3.6.so)
==23975==    by 0x458B57A: krb5int_open_plugin (plugins.c:105)
==23975==    by 0x458BC96: krb5int_open_plugin_dirs (plugins.c:447)
==23975==    by 0x4403052: kdb_load_library (kdb5.c:363)
==23975==    by 0x44032C8: kdb_find_library (kdb5.c:445)
==23975== 
==23975== Conditional jump or move depends on uninitialised value(s)
==23975==    at 0x4108FB0: (within /lib/ld-2.3.6.so)
==23975==    by 0x46C9EA9: (within /lib/tls/libc-2.3.6.so)
==23975==    by 0x410BA5E: (within /lib/ld-2.3.6.so)
==23975==    by 0x46CA55A: _dl_open (in /lib/tls/libc-2.3.6.so)
==23975==    by 0x4479D22: (within /lib/tls/libdl-2.3.6.so)
==23975==    by 0x410BA5E: (within /lib/ld-2.3.6.so)
==23975==    by 0x447A476: (within /lib/tls/libdl-2.3.6.so)
==23975==    by 0x4479DA0: dlopen (in /lib/tls/libdl-2.3.6.so)
==23975==    by 0x458B57A: krb5int_open_plugin (plugins.c:105)
==23975==    by 0x458BC96: krb5int_open_plugin_dirs (plugins.c:447)
==23975==    by 0x4403052: kdb_load_library (kdb5.c:363)
==23975==    by 0x44032C8: kdb_find_library (kdb5.c:445)
==23975== 
==23975== Syscall param write(buf) points to uninitialised byte(s)
==23975==    at 0x45B737E: __write_nocancel (in /lib/tls/libpthread-2.3.6.so)
==23975==    by 0x6456790: kdb2_mpool_sync (mpool.c:337)
==23975==    by 0x644E13F: __kdb2_bt_sync (bt_close.c:147)
==23975==    by 0x644DF58: __kdb2_bt_close (bt_close.c:79)
==23975==    by 0x6444C90: krb5_db2_db_create (kdb_db2.c:711)
==23975==    by 0x64462D3: krb5_db2_create (kdb_db2.c:1396)
==23975==    by 0x6446CCA: wrap_krb5_db2_create (db2_exp.c:101)
==23975==    by 0x44038A6: krb5_db_create (kdb5.c:678)
==23975==    by 0x804BBB9: kdb5_create (kdb5_create.c:262)
==23975==    by 0x804AC6E: main (kdb5_util.c:311)
==23975==  Address 0x634B8F8 is 48 bytes inside a block of size 4,124 alloc'd
==23975==    at 0x43D84A1: malloc (vg_replace_malloc.c:149)
==23975==    by 0x6456955: mpool_bkt (mpool.c:391)
==23975==    by 0x64560C8: kdb2_mpool_new (mpool.c:135)
==23975==    by 0x64512D4: nroot (bt_open.c:377)
==23975==    by 0x64510C6: __kdb2_bt_open (bt_open.c:314)
==23975==    by 0x6455E0C: kdb2_dbopen (db.c:63)
==23975==    by 0x6443FDC: k5db2_dbopen (kdb_db2.c:265)
==23975==    by 0x6444C6A: krb5_db2_db_create (kdb_db2.c:707)
==23975==    by 0x64462D3: krb5_db2_create (kdb_db2.c:1396)
==23975==    by 0x6446CCA: wrap_krb5_db2_create (db2_exp.c:101)
==23975==    by 0x44038A6: krb5_db_create (kdb5.c:678)
==23975==    by 0x804BBB9: kdb5_create (kdb5_create.c:262)
==23975== 
==23975== ERROR SUMMARY: 16 errors from 9 contexts (suppressed: 37 from 1)
==23975== malloc/free: in use at exit: 2,425 bytes in 18 blocks.
==23975== malloc/free: 359 allocs, 341 frees, 59,520 bytes allocated.
==23975== For counts of detected errors, rerun with: -v
==23975== searching for pointers to 18 not-freed blocks.
==23975== checked 223,992 bytes.
==23975== 
==23975== LEAK SUMMARY:
==23975==    definitely lost: 242 bytes in 7 blocks.
==23975==      possibly lost: 0 bytes in 0 blocks.
==23975==    still reachable: 2,183 bytes in 11 blocks.
==23975==         suppressed: 0 bytes in 0 blocks.
==23975== Use --leak-check=full to see details of leaked memory.



More information about the krbdev mailing list