[Samba] Core dump trying to join domain on FreeBSD

Christian Ullrich chris at chrullrich.net
Mon Dec 31 05:16:14 MST 2012


* Andrew Bartlett wrote:

> The error certainly does seem to be coming from Heimdal - that error
> string only exists in Heimdal, not in Samba.

I thought so, too, but I hoped there might have been other instances of 
this in connection with Samba.

> If you can run it under valgrind, we might get more of a hint as to why
> there is invalid memory (I can't think of any other reason why this
> might fail - a checksum doesn't really fail like this even in 'failure'
> modes).

The attached log is from valgrind without any options. I find it 
interesting that valgrind produces a valid backtrace, but even the core 
dump it wrote shows only as garbage in gdb.

As usually happens to me, I found a workaround immediately after asking 
for help, so this is not as terribly important to me anymore as it was 
yesterday. I had the problem in an x86 environment; it turns out that it 
works fine on an amd64 system.

Anyway, thanks a lot for your help, and if you want to look into this 
further, I will be glad to provide any information you want.

-- 
Christian
-------------- next part --------------
==99579== Memcheck, a memory error detector
==99579== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==99579== Using Valgrind-3.8.0 and LibVEX; rerun with -h for copyright info
==99579== Command: net ads join -U Administrator at XXXMYREALMX.XX
==99579== Parent PID: 74522
==99579== 
==99579== Conditional jump or move depends on uninitialised value(s)
==99579==    at 0x14D4A73: _tdb_store (in /usr/local/lib/libtdb.so.1)
==99579==    by 0x14D50ED: tdb_store (in /usr/local/lib/libtdb.so.1)
==99579==    by 0x3D6F81: db_tdb_store (in /usr/local/bin/net)
==99579==    by 0x3F5A25: dbwrap_store_action (in /usr/local/bin/net)
==99579==    by 0x3F50F0: dbwrap_trans_do (in /usr/local/bin/net)
==99579==    by 0x3F522A: dbwrap_trans_store (in /usr/local/bin/net)
==99579==    by 0x2EF5FC: secrets_store (in /usr/local/bin/net)
==99579==    by 0x2F0FA0: secrets_store_domain_sid (in /usr/local/bin/net)
==99579==    by 0x66FC05: libnet_DomainJoin (in /usr/local/bin/net)
==99579==    by 0x670471: libnet_Join (in /usr/local/bin/net)
==99579==    by 0x1ACB93: net_ads_join (in /usr/local/bin/net)
==99579==    by 0x1DE1D7: net_run_function (in /usr/local/bin/net)
==99579== 
==99579== Conditional jump or move depends on uninitialised value(s)
==99579==    at 0x14D4A7D: _tdb_store (in /usr/local/lib/libtdb.so.1)
==99579==    by 0x14D50ED: tdb_store (in /usr/local/lib/libtdb.so.1)
==99579==    by 0x3D6F81: db_tdb_store (in /usr/local/bin/net)
==99579==    by 0x3F5A25: dbwrap_store_action (in /usr/local/bin/net)
==99579==    by 0x3F50F0: dbwrap_trans_do (in /usr/local/bin/net)
==99579==    by 0x3F522A: dbwrap_trans_store (in /usr/local/bin/net)
==99579==    by 0x2EF5FC: secrets_store (in /usr/local/bin/net)
==99579==    by 0x2F0FA0: secrets_store_domain_sid (in /usr/local/bin/net)
==99579==    by 0x66FC05: libnet_DomainJoin (in /usr/local/bin/net)
==99579==    by 0x670471: libnet_Join (in /usr/local/bin/net)
==99579==    by 0x1ACB93: net_ads_join (in /usr/local/bin/net)
==99579==    by 0x1DE1D7: net_run_function (in /usr/local/bin/net)
==99579== 
==99579== 
==99579== Process terminating with default action of signal 6 (SIGABRT): dumping core
==99579==    at 0x15FA2FF: __sys_kill (in /lib/libc.so.7)
==99579==    by 0x15F909B: abort (in /lib/libc.so.7)
==99579==    by 0x11BA9FD: krb5_abortx (in /usr/local/lib/libkrb5.so.26)
==99579==    by 0x1181E53: SHA1_checksum (in /usr/local/lib/libkrb5.so.26)
==99579==    by 0x118295C: _krb5_internal_hmac (in /usr/local/lib/libkrb5.so.26)
==99579==    by 0x1182A72: _krb5_SP_HMAC_SHA1_checksum (in /usr/local/lib/libkrb5.so.26)
==99579==    by 0x118496B: create_checksum (in /usr/local/lib/libkrb5.so.26)
==99579==    by 0x1184F93: krb5_encrypt_ivec (in /usr/local/lib/libkrb5.so.26)
==99579==    by 0x118540F: krb5_encrypt (in /usr/local/lib/libkrb5.so.26)
==99579==    by 0x118548C: krb5_encrypt_EncryptedData (in /usr/local/lib/libkrb5.so.26)
==99579==    by 0x11950B2: add_enc_ts_padata (in /usr/local/lib/libkrb5.so.26)
==99579==    by 0x1196098: krb5_init_creds_step (in /usr/local/lib/libkrb5.so.26)
==99579== 
==99579== HEAP SUMMARY:
==99579==     in use at exit: 172,298 bytes in 1,082 blocks
==99579==   total heap usage: 29,953 allocs, 28,871 frees, 4,528,138 bytes allocated
==99579== 
==99579== LEAK SUMMARY:
==99579==    definitely lost: 79 bytes in 3 blocks
==99579==    indirectly lost: 75 bytes in 1 blocks
==99579==      possibly lost: 19,768 bytes in 194 blocks
==99579==    still reachable: 152,376 bytes in 884 blocks
==99579==         suppressed: 0 bytes in 0 blocks
==99579== Rerun with --leak-check=full to see details of leaked memory
==99579== 
==99579== For counts of detected and suppressed errors, rerun with: -v
==99579== Use --track-origins=yes to see where uninitialised values come from
==99579== ERROR SUMMARY: 45 errors from 2 contexts (suppressed: 0 from 0)


More information about the samba mailing list