On centos 5.5/x64 (but i this also happens on solaris and probably everything else too.) ./configure --prefix=/usr/local/samba --with-pam --without-ldap --without-krb5 [root@localhost source3]# smbclient //localhost/homes -U omalleys Enter omalleys's password: Invalid packet length! (96361 bytes). Receiving SMB: Server stopped responding session request to LOCALHOST failed (Read error: Success) Invalid packet length! (96361 bytes). Receiving SMB: Server stopped responding session request to *SMBSERVER failed (Read error: Success) [root@localhost source3]# I think it has to do with the large readx and writex and the packet checking not returning the correct error.
I forgot to add I was running this on port 139 via xinetd.
Not seeing this with smbd run normally (no xinetd). Can you test your binary run without xinetd and see if you still get the problem ? Jeremy.
Sorry for the delay. It didnt crash but it had permission denied when I ran it as a server. This maybe a configuration on my end. I swear I had this working earlier but it may have been the 3.4 series. I also noticed I forgot to take --interactive out when I was running with xinetd, and it still didnt work after I removed it. It may also be a 64-bit issue, i noticed a cast to (unsigned long)len)); in NTSTATUS receive_smb_raw() in "lib/util_sock.c" line 789 and in static bool valid_packet_size() "smbd/process.c" line 131 I'm on vacation next week with extremely limited network connectivity.
Alright I got back to this. :) i think this might be a 64-bit error. I need to check a couple of more things, but i compiled 3.4.15 on a centos6 i686 machine and it seemed to work just fine without crashing with initial testing. On the 64-bit centos6 3.4.15 I am getting: <snip> [2011/09/08 16:11:39, 10] lib/system_smbd.c:122(sys_getgrouplist) sys_getgrouplist: user [omalleys] [2011/09/08 16:11:39, 10] lib/gencache.c:194(gencache_get) Cache entry with key = IDMAP/GID2SID/500 couldn't be found [2011/09/08 16:11:39, 5] passdb/lookup_sid.c:1378(gid_to_sid) gid_to_sid: winbind failed to find a sid for gid 500 [2011/09/08 16:11:39, 3] smbd/sec_ctx.c:210(push_sec_ctx) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 [2011/09/08 16:11:39, 3] smbd/uid.c:428(push_conn_ctx) push_conn_ctx(0) : conn_ctx_stack_ndx = 0 [2011/09/08 16:11:39, 3] smbd/sec_ctx.c:310(set_sec_ctx) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2011/09/08 16:11:39, 5] auth/token_util.c:522(debug_nt_user_token) NT user token: (NULL) [2011/09/08 16:11:39, 5] auth/token_util.c:548(debug_unix_user_token) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2011/09/08 16:11:39, 3] smbd/sec_ctx.c:418(pop_sec_ctx) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 [2011/09/08 16:11:39, 10] passdb/lookup_sid.c:1173(legacy_gid_to_sid) LEGACY: gid 500 -> sid S-1-22-2-500 [2011/09/08 16:11:39, 10] passdb/lookup_sid.c:69(lookup_name) lookup_name: Unix User\omalleys => Unix User (domain), omalleys (name) [2011/09/08 16:11:39, 10] passdb/lookup_sid.c:70(lookup_name) lookup_name: flags = 0x073 [2011/09/08 16:11:39, 3] auth/auth.c:271(check_ntlm_password) check_ntlm_password: unix authentication for user [omalleys] succeeded [2011/09/08 16:11:39, 5] auth/auth.c:284(check_ntlm_password) [2011/09/08 16:11:39, 0] lib/fault.c:46(fault_report) =============================================================== [2011/09/08 16:11:39, 0] lib/fault.c:47(fault_report) INTERNAL ERROR: Signal 11 in pid 27107 (3.4.15) Please read the Trouble-Shooting section of the Samba3-HOWTO [2011/09/08 16:11:39, 0] lib/fault.c:49(fault_report) From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf [2011/09/08 16:11:39, 0] lib/fault.c:50(fault_report) =============================================================== [2011/09/08 16:11:39, 0] lib/util.c:1480(smb_panic) PANIC (pid 27107): internal error [2011/09/08 16:11:39, 0] lib/util.c:1584(log_stack_trace) BACKTRACE: 17 stack frames: #0 smbd(log_stack_trace+0x1c) [0x7f016c9dd54f] #1 smbd(smb_panic+0x55) [0x7f016c9dd651] #2 smbd(+0x2ad839) [0x7f016c9ce839] #3 /lib64/libc.so.6(+0x32a20) [0x7f016b116a20] #4 /lib64/libc.so.6(_IO_vfprintf+0x3cf7) [0x7f016b12bff7] #5 /lib64/libc.so.6(vasprintf+0xba) [0x7f016b152c3a] #6 smbd(dbgtext+0xa2) [0x7f016c9cd0f0] #7 smbd(+0x2f97bc) [0x7f016ca1a7bc] #8 smbd(reply_sesssetup_and_X+0xc6b) [0x7f016c804a41] #9 smbd(+0x11253f) [0x7f016c83353f] #10 smbd(+0x114564) [0x7f016c835564] #11 smbd(+0x114cca) [0x7f016c835cca] #12 smbd(run_events+0x132) [0x7f016c9ebc35] #13 smbd(smbd_process+0x76d) [0x7f016c83531b] #14 smbd(main+0xa86) [0x7f016cc34c9d] #15 /lib64/libc.so.6(__libc_start_main+0xfd) [0x7f016b102c5d] #16 smbd(+0xa3f09) [0x7f016c7c4f09] [2011/09/08 16:11:39, 0] lib/fault.c:326(dump_core) dumping core in /usr/local/samba/var/cores/smbd
Created attachment 6870 [details] the core file for the last message from centos6 x64