I'm not sure if this is a known issue or not. # uname -a Linux XXXXXXXXXXXX 2.4.21-9.ELsmp #1 SMP Thu Jan 8 16:54:23 EST 2004 i686 athlon i386 GNU/Linux # cat /etc/redhat-release Red Hat Enterprise Linux WS release 3 (Taroon Update 1) # vmstat 5 procs memory swap io system cpu r b swpd free buff cache si so bi bo in cs us sy id wa 0 0 56 18936 125016 1846508 0 0 0 4 55 18 0 0 39 0 0 0 56 18936 125016 1846508 0 0 0 6 104 18 0 0 100 0 0 0 56 18936 125016 1846508 0 0 0 0 102 20 0 0 100 0 [2004/01/26 16:30:48, 0] lib/util.c:smb_xmalloc(2055) smb_xmalloc() failed to allocate 3221213488 bytes [2004/01/26 16:30:48, 0] lib/util.c:smb_panic(1400) PANIC: smb_xmalloc: malloc fail. [2004/01/26 16:30:48, 0] lib/util.c:smb_panic(1408) BACKTRACE: 16 stack frames: #0 /opt/samba/sbin/smbd(smb_panic+0x181) [0x8189811] #1 /opt/samba/sbin/smbd(smb_xmalloc+0x83) [0x818ad27] #2 /opt/samba/sbin/smbd(smb_xmemdup+0x11) [0x818ad44] #3 /opt/samba/sbin/smbd(data_blob+0x4e) [0x81873d3] #4 /opt/samba/sbin/smbd [0x811fa10] #5 /opt/samba/sbin/smbd(open_rpc_pipe_p+0x2c2) [0x811f4db] #6 /opt/samba/sbin/smbd [0x809270c] #7 /opt/samba/sbin/smbd [0x80927cd] #8 /opt/samba/sbin/smbd(reply_ntcreate_and_X+0x112) [0x8092985] #9 /opt/samba/sbin/smbd [0x80bbfcc] #10 /opt/samba/sbin/smbd [0x80bc056] #11 /opt/samba/sbin/smbd(process_smb+0x1b9) [0x80bc351] #12 /opt/samba/sbin/smbd(smbd_process+0x153) [0x80bcdac] #13 /opt/samba/sbin/smbd(main+0x6ec) [0x81e2e73] #14 /lib/tls/libc.so.6(__libc_start_main+0xf8) [0xb7250748] #15 /opt/samba/sbin/smbd(chroot+0x31) [0x8077131] --
On Mon, Jan 26, 2004 at 04:51:26PM -0600, Eric Brueggmann wrote:> [2004/01/26 16:30:48, 0] lib/util.c:smb_xmalloc(2055) > smb_xmalloc() failed to allocate 3221213488 bytes > [2004/01/26 16:30:48, 0] lib/util.c:smb_panic(1400) > PANIC: smb_xmalloc: malloc fail. > > [2004/01/26 16:30:48, 0] lib/util.c:smb_panic(1408) > BACKTRACE: 16 stack frames: > #0 /opt/samba/sbin/smbd(smb_panic+0x181) [0x8189811] > #1 /opt/samba/sbin/smbd(smb_xmalloc+0x83) [0x818ad27] > #2 /opt/samba/sbin/smbd(smb_xmemdup+0x11) [0x818ad44] > #3 /opt/samba/sbin/smbd(data_blob+0x4e) [0x81873d3] > #4 /opt/samba/sbin/smbd [0x811fa10] > #5 /opt/samba/sbin/smbd(open_rpc_pipe_p+0x2c2) [0x811f4db] > #6 /opt/samba/sbin/smbd [0x809270c] > #7 /opt/samba/sbin/smbd [0x80927cd] > #8 /opt/samba/sbin/smbd(reply_ntcreate_and_X+0x112) [0x8092985] > #9 /opt/samba/sbin/smbd [0x80bbfcc] > #10 /opt/samba/sbin/smbd [0x80bc056] > #11 /opt/samba/sbin/smbd(process_smb+0x1b9) [0x80bc351] > #12 /opt/samba/sbin/smbd(smbd_process+0x153) [0x80bcdac] > #13 /opt/samba/sbin/smbd(main+0x6ec) [0x81e2e73] > #14 /lib/tls/libc.so.6(__libc_start_main+0xf8) [0xb7250748] > #15 /opt/samba/sbin/smbd(chroot+0x31) [0x8077131]Can you compile with debug symbols please so we can see where in the code the oversized malloc is being requested ? Thanks, Jeremy.
On Tue, 2004-01-27 at 09:51, Eric Brueggmann wrote:> I'm not sure if this is a known issue or not.Is this with 'security=server' or 'encrypt passwords = no'? If so, then I have fixed this issue, which results from an uninitialised user session key. (used on line 345 of srv_pipe_hnd.c, patch is http://build.samba.org/?function=diff&tree=samba&date=1075083769&author=abartlet ) Andrew Bartlett -- Andrew Bartlett abartlet@pcug.org.au Manager, Authentication Subsystems, Samba Team abartlet@samba.org Student Network Administrator, Hawker College abartlet@hawkerc.net http://samba.org http://build.samba.org http://hawkerc.net -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.samba.org/archive/samba/attachments/20040127/88689c4f/attachment.bin