Bug 6146 - samba 3.3.1 segfaults when started interactively with preload modules = acl_xattr.so
Summary: samba 3.3.1 segfaults when started interactively with preload modules = acl_x...
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.3
Classification: Unclassified
Component: File services (show other bugs)
Version: 3.3.1
Hardware: x64 Linux
: P3 major
Target Milestone: ---
Assignee: Karolin Seeger
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-01 04:38 UTC by Erik Sørnes
Modified: 2009-06-06 08:41 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Sørnes 2009-03-01 04:38:29 UTC
First, i run ./configure --prefix=/usr/local/samba-3.3.1 --with-shared-modules=vfs_acl_xattr --with-acl-support && make && make install

Then I run /usr/local/samba-3.3.1/sbin/smbd  -i -d 9 on my x64 - ubuntu 8.10 server.

Then I type in \\10.0.0.102\temp in my explorer-window on my windows2003sp2-client

Imediatly after, smbd segfaults with this:

Error loading module '/[Default VFS]/': /[Default VFS]/: cannot open shared object file: No such file or directory
Can't find a vfs module [/[Default VFS]/]
claiming [IPC$]
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
push_conn_ctx(0) : conn_ctx_stack_ndx = 0
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
NT user token: (NULL)
UNIX token of user 0
Primary group is 0 and contains 0 supplementary groups
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
Home server: hamster
Home server: hamster
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
push_conn_ctx(0) : conn_ctx_stack_ndx = 0
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
NT user token: (NULL)
UNIX token of user 0
Primary group is 0 and contains 0 supplementary groups
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
setting sec ctx (65534, 65534) - sec_ctx_stack_ndx = 0
NT user token of user S-1-5-21-238378226-1268256267-212022951-501
contains 5 SIDs
SID[  0]: S-1-5-21-238378226-1268256267-212022951-501
SID[  1]: S-1-1-0
SID[  2]: S-1-5-2
SID[  3]: S-1-5-32-546
SID[  4]: S-1-22-1-65534
SE_PRIV  0x0 0x0 0x0 0x0
UNIX token of user 65534
Primary group is 65534 and contains 0 supplementary groups
change_to_user uid=(0,65534) gid=(0,65534)
===============================================================

INTERNAL ERROR: Signal 11 in pid 25911 (3.3.1)
Please read the Trouble-Shooting section of the Samba3-HOWTO

From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
===============================================================
PANIC (pid 25911): internal error
BACKTRACE: 4 stack frames:
 #0 /usr/local/samba-3.3.1/sbin/smbd(log_stack_trace+0x1c) [0x7f7e8e2852bd]
 #1 /usr/local/samba-3.3.1/sbin/smbd(smb_panic+0x5b) [0x7f7e8e2853cb]
 #2 /usr/local/samba-3.3.1/sbin/smbd [0x7f7e8e2714ed]
 #3 /lib/libpthread.so.0 [0x7f7e8c7420f0]
push_sec_ctx(65534, 65534) : sec_ctx_stack_ndx = 1
push_conn_ctx(101) : conn_ctx_stack_ndx = 0
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
NT user token: (NULL)
UNIX token of user 0
Primary group is 0 and contains 0 supplementary groups
Can not dump core: corepath not set up
talloc report on 'null_context' (total  15908 bytes in 287 blocks)
    NT_USER_TOKEN                  contains    372 bytes in   2 blocks (ref 0) 0x7f7e8e888660
    struct samu                    contains    670 bytes in  25 blocks (ref 0) 0x7f7e8e8808b0
    struct db_context              contains    168 bytes in   4 blocks (ref 0) 0x7f7e8e877780
    struct samu                    contains    670 bytes in  25 blocks (ref 0) 0x7f7e8e881220
    connection_struct              contains   5188 bytes in  16 blocks (ref 0) 0x7f7e8e887550
    authentication context         contains    223 bytes in   6 blocks (ref 0) 0x7f7e8e82f2e0
    NTLMSSP context                contains   1177 bytes in   6 blocks (ref 0) 0x7f7e8e868b70
    AUTH NTLMSSP context           contains     53 bytes in   3 blocks (ref 0) 0x7f7e8e8604a0
    user_struct                    contains     56 bytes in   1 blocks (ref 0) 0x7f7e8e875ef0
    struct samu                    contains    738 bytes in  26 blocks (ref 0) 0x7f7e8e881bd0
    user_struct                    contains   1087 bytes in  13 blocks (ref 0) 0x7f7e8e875aa0
    struct idle_event              contains    135 bytes in   3 blocks (ref 0) 0x7f7e8e884a10
    struct idle_event              contains    131 bytes in   3 blocks (ref 0) 0x7f7e8e884870
    struct idle_event              contains    132 bytes in   3 blocks (ref 0) 0x7f7e8e884740
    auth_serversupplied_info       contains   1332 bytes in  23 blocks (ref 0) 0x7f7e8e881f80
    struct service_control_op      contains    117 bytes in   5 blocks (ref 0) 0x7f7e8e881450
    struct db_context              contains    172 bytes in   4 blocks (ref 0) 0x7f7e8e87d380
    struct ldb_context             contains   1057 bytes in  29 blocks (ref 0) 0x7f7e8e87c710
    SORTED_TREE                    contains   1426 bytes in  65 blocks (ref 0) 0x7f7e8e877bc0
    struct db_context              contains     88 bytes in   2 blocks (ref 0) 0x7f7e8e877290
    struct db_context              contains    165 bytes in   4 blocks (ref 0) 0x7f7e8e875550
    struct db_context              contains    164 bytes in   4 blocks (ref 0) 0x7f7e8e876c80
    struct db_context              contains    169 bytes in   4 blocks (ref 0) 0x7f7e8e876760
    struct db_context              contains    167 bytes in   4 blocks (ref 0) 0x7f7e8e8762a0
    struct db_context              contains    163 bytes in   4 blocks (ref 0) 0x7f7e8e875040
    struct db_context              contains     88 bytes in   2 blocks (ref 0) 0x7f7e8e872530

I have checked with ls that /usr/local/samba-3.3.1/lib/vfs/acl_xattr.so actually exists.

My smb.conf is like this:

[global]

preload modules = /usr/local/samba-3.3.1/lib/vfs/acl_xattr.so
registry shares = no
interfaces = 10.0.0.102
bind interfaces only = yes
workgroup= w2k3dom
realm = W2K3DOM.TEST.PRIV
netbios name = hamster
security = user
encrypt passwords = yes
password server = windows2003-nr1.w2k3dom.test.priv
wins support = no
idmap uid = 10000-20000
idmap gid = 10000-20000
log level = 10

[temp]
	comment = temp
	read only = no
	locking = no
	path = /temp
	guest ok = yes


-regards
Erik
Comment 1 Karolin Seeger 2009-05-03 02:23:23 UTC
Cannot repsoduce that in 3.3.4.
Is that still an issue?
Comment 2 Karolin Seeger 2009-06-06 08:41:43 UTC
No feedback from the reporter.
Closing out bug report.

Please re-open if it's still an issue.