[Samba] ADS Problem : segmentation fault

djamel boussebha dboussebha at yahoo.fr
Tue Nov 22 03:45:07 MST 2011


See the results of the command :
 
# valgrind --tool=memcheck net ads join -S CINVW067 -U administrateur%laposte+1
==9483== Memcheck, a memory error detector
==9483== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==9483== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==9483== Command: net ads join -S CINVW067 -U administrateur%laposte+1
==9483==
==9483== Syscall param socketcall.sendto(msg) points to uninitialised byte(s)
==9483==    at 0x5D98B63: __sendto_nocancel (in /lib64/libc-2.4.so)
==9483==    by 0x5DB4333: __netlink_request (in /lib64/libc-2.4.so)
==9483==    by 0x5DB45EC: getifaddrs (in /lib64/libc-2.4.so)
==9483==    by 0x33ABC9: get_interfaces (in /usr/bin/net)
==9483==    by 0x348FEF: load_interfaces (in /usr/bin/net)
==9483==    by 0x1E3415: main (in /usr/bin/net)
==9483==  Address 0x7feffeae1 is on thread 1's stack
==9483==
==9483== Syscall param socketcall.sendto(msg) points to uninitialised byte(s)
==9483==    at 0x5D98B63: __sendto_nocancel (in /lib64/libc-2.4.so)
==9483==    by 0x5DB4333: __netlink_request (in /lib64/libc-2.4.so)
==9483==    by 0x5DB4609: getifaddrs (in /lib64/libc-2.4.so)
==9483==    by 0x33ABC9: get_interfaces (in /usr/bin/net)
==9483==    by 0x348FEF: load_interfaces (in /usr/bin/net)
==9483==    by 0x1E3415: main (in /usr/bin/net)
==9483==  Address 0x7feffeae1 is on thread 1's stack
==9483==
==9483== Invalid read of size 8
==9483==    at 0x51B74DD: krb5_ktfile_get_next (in /usr/lib64/libkrb5.so.3.2)
==9483==    by 0x5EECB9: smb_krb5_kt_add_entry_ext (in /usr/bin/net)
==9483==    by 0x5EEFA2: smb_krb5_kt_add_entry (in /usr/bin/net)
==9483==    by 0x5EF63E: ads_keytab_add_entry (in /usr/bin/net)
==9483==    by 0x5EF85A: ads_keytab_create_default (in /usr/bin/net)
==9483==    by 0x62B7DA: libnet_Join (in /usr/bin/net)
==9483==    by 0x1E5C3A: net_ads_join (in /usr/bin/net)
==9483==    by 0x213A92: net_run_function (in /usr/bin/net)
==9483==    by 0x1E435F: net_ads (in /usr/bin/net)
==9483==    by 0x213A92: net_run_function (in /usr/bin/net)
==9483==    by 0x1E3460: main (in /usr/bin/net)
==9483==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9483==
==9483==
==9483== Process terminating with default action of signal 11 (SIGSEGV)
==9483==  Access not within mapped region at address 0x0
==9483==    at 0x51B74DD: krb5_ktfile_get_next (in /usr/lib64/libkrb5.so.3.2)
==9483==    by 0x5EECB9: smb_krb5_kt_add_entry_ext (in /usr/bin/net)
==9483==    by 0x5EEFA2: smb_krb5_kt_add_entry (in /usr/bin/net)
==9483==    by 0x5EF63E: ads_keytab_add_entry (in /usr/bin/net)
==9483==    by 0x5EF85A: ads_keytab_create_default (in /usr/bin/net)
==9483==    by 0x62B7DA: libnet_Join (in /usr/bin/net)
==9483==    by 0x1E5C3A: net_ads_join (in /usr/bin/net)
==9483==    by 0x213A92: net_run_function (in /usr/bin/net)
==9483==    by 0x1E435F: net_ads (in /usr/bin/net)
==9483==    by 0x213A92: net_run_function (in /usr/bin/net)
==9483==    by 0x1E3460: main (in /usr/bin/net)
==9483==  If you believe this happened as a result of a stack
==9483==  overflow in your program's main thread (unlikely but
==9483==  possible), you can try to increase the size of the
==9483==  main thread stack using the --main-stacksize= flag.
==9483==  The main thread stack size used in this run was 8388608.
==9483==
==9483== HEAP SUMMARY:
==9483==     in use at exit: 472,560 bytes in 625 blocks
==9483==   total heap usage: 30,060 allocs, 29,435 frees, 2,791,523 bytes allocated
==9483==
==9483== LEAK SUMMARY:
==9483==    definitely lost: 25 bytes in 1 blocks
==9483==    indirectly lost: 0 bytes in 0 blocks
==9483==      possibly lost: 14,254 bytes in 138 blocks
==9483==    still reachable: 458,281 bytes in 486 blocks
==9483==         suppressed: 0 bytes in 0 blocks
==9483== Rerun with --leak-check=full to see details of leaked memory
==9483==
==9483== For counts of detected and suppressed errors, rerun with: -v
==9483== Use --track-origins=yes to see where uninitialised values come from
==9483== ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 3 from 3)
Segmentation fault

A idea on this crash ?
 
Regards

--- En date de : Mar 22.11.11, Volker Lendecke <Volker.Lendecke at SerNet.DE> a écrit :


De: Volker Lendecke <Volker.Lendecke at SerNet.DE>
Objet: Re: [Samba] ADS Problem : segmentation fault
À: "djamel boussebha" <dboussebha at yahoo.fr>
Cc: samba at lists.samba.org
Date: Mardi 22 novembre 2011, 10h50


On Tue, Nov 22, 2011 at 09:42:20AM +0000, djamel boussebha wrote:
>  
> I have installed vamgrind but I don't know how to use ? 
> Its the command "net ads join -S CINVW067 -U administrateur%laposte+1" which generated the segmentation fault.
> 
> I have tried :
>  
> #vamgrind --tool=memcheck net ads join -S CINVW067 -U administrateur%laposte+1
> -bash: vamgrind: command not found
> 
> How to use vamgrid to identify the error ?

It's valgrind, not vamgrind.

Volker


More information about the samba mailing list