whenever I try to map to my home share, using my userid and password, I get: *** glibc detected *** /usr/sbin/smbd: free(): invalid pointer: 0xb7fcb540 *** ======= Backtrace: ========= /lib/libc.so.6[0xb74affc4] /lib/libc.so.6(cfree+0x9c)[0xb74b195c] /usr/sbin/smbd(str_list_substitute+0x13c)[0xb7c40c8c] /usr/sbin/smbd[0xb7a3a8d6] /usr/sbin/smbd(authorise_login+0xca)[0xb7a3aaaa] /usr/sbin/smbd[0xb7aa6d6b] /usr/sbin/smbd(make_connection+0x26c)[0xb7aa7d2c] /usr/sbin/smbd(reply_tcon_and_X+0x21b)[0xb7a5e51b] /usr/sbin/smbd[0xb7aa1137] /usr/sbin/smbd(chain_reply+0x226)[0xb7aa3d76] /usr/sbin/smbd(reply_sesssetup_and_X+0xcef)[0xb7a6a8df] /usr/sbin/smbd[0xb7aa1137] /usr/sbin/smbd(smbd_process+0x2b2)[0xb7aa3722] /usr/sbin/smbd(main+0x1052)[0xb7e8bb62] /lib/libc.so.6(__libc_start_main+0xe5)[0xb745a5f5] /usr/sbin/smbd[0xb7a1edd1] mapping to a different share as guest works fine. running on opensuse 11.0. Problem exists with the samba 3.2.0 shipped with opensuse, and also with the 3.2.1 from http://us5.samba.org/samba/ftp/Binary_Packages/SuSE/STABLE/11.0/ i will attach log output as attachments.
Created attachment 3486 [details] log.smbd output when error occurs there were two connections made during this session; a successful one to \\unladen-swallow\dist as guest, and a failed one to \\unladen-swallow\wegscd as wegscd. in spite of the comment at the bottom of the log, there was no core dump to attach.
Can you run this under valgrind and try and reproduce the problem ? If you don't have valgrind try setting the glibc environment variable : MALLOC_CHECK_=2 and re-running. Jeremy,
Created attachment 3492 [details] output from valgrind (incorrect, had a null smbpasswd file) as requested by Jeremy
Created attachment 3493 [details] valgrind output
Tried to reproduce the crash, but failed. Your latest attachement is not valgrind output. Can you run valgrind --tool=memcheck --log-file=/tmp/valgrind-log smbd and send /tmp/valgrind-log. Please also compile smbd with -g so that we can see the line numbers of the crash. Thanks, Volker
Created attachment 3499 [details] valgrind output. from 3.2.2 build, with -g. core file available. note that this was built from 3.2.2 source!!!!!!
Ah, ok, thanks! We're trying to free() something that was allocated with talloc. Looking.
(In reply to comment #7) > Ah, ok, thanks! We're trying to free() something that was allocated with > talloc. Looking. > good. I have the 3.2.2 tree out there and ready to test; am willing to patch and retest.
Ok, spotted the problem here. Will have a fix shortly. Jeremy.
Created attachment 3501 [details] Patch Patch for mixup of TALLOC/malloc. Please let me know if this fixes the problem. Jeremy.
this indeed fixes the problem! do I mark the bug as resolved, or do you?
I will. Fixed post 3.2.2. Thanks a lot for your help in tracking this down ! Jeremy.