Samba 3.3.4 on AIX: coredump

miguel.sanders at arcelormittal.com miguel.sanders at arcelormittal.com
Thu Apr 30 11:49:47 GMT 2009


After digging a bit further in the coredump I saw the following:

process_smb(inbuf = warning: Unable to access address 0x11037be60 from core
(invalid char ptr (0x000000011037be60)), nread = 648535941221086152, unread_bytes = 1241085664, encrypted = @0x000a85df10001d60), line 1566 in "process.c"
unnamed block in smbd_process(), line 1934 in "process.c"
smbd_process(), line 1934 in "process.c"
main(argc = 0, argv = (nil)), line 1519 in "server.c"

While the code in smbd_process looks like this

        while (True) {
                NTSTATUS status;
                char *inbuf = NULL;
                size_t inbuf_len = 0;
                bool encrypted = false;
                TALLOC_CTX *frame = talloc_stackframe_pool(8192);

                errno = 0;

                run_events(smbd_event_context(), 0, NULL, NULL);

                status = receive_message_or_smb(
                        talloc_tos(), &inbuf, &inbuf_len,
                        &unread_bytes, &encrypted);

                if (!NT_STATUS_IS_OK(status)) {
                        DEBUG(3, ("receive_message_or_smb failed: %s, "
                                  "exiting\n", nt_errstr(status)));
                        return;
                }

                process_smb(inbuf, inbuf_len, unread_bytes, encrypted);

So the value passed to process_smb is NULL...
Anyone?

Met vriendelijke groet
Best regards
Bien à vous

Miguel SANDERS
ArcelorMittal Gent

UNIX Systems & Storage
IT Supply Western Europe | John Kennedylaan 51
B-9042 Gent

T +32 9 347 3538 | F +32 9 347 4901 | M +32478 805 023
E miguel.sanders at arcelormittal.com
www.arcelormittal.com/gent

-----Oorspronkelijk bericht-----
Van: samba-technical-bounces+miguel.sanders=arcelormittal.com at lists.samba.org [mailto:samba-technical-bounces+miguel.sanders=arcelormittal.com at lists.samba.org] Namens miguel.sanders at arcelormittal.com
Verzonden: donderdag 30 april 2009 13:03
Aan: samba-technical at lists.samba.org
Onderwerp: Samba 3.3.4 on AIX: coredump 

Hi guys

I just built 3.3.4 on AIX and whenever I access a share, I get a core dump.
Examining the coredump with dbx shows the following:

# dbx -d100 /tmp/samba/compile/sbin/smbd Type 'help' for help.
warning: The core file is not a fullcore. Some info may not be available.
[using memory image in core]
reading symbolic information ...

IOT/Abort trap in pthread_kill at 0x900000000549450
0x900000000549450 (pthread_kill+0xb0) e8410028          ld   r2,0x28(r1)
(dbx) where
pthread_kill(??, ??) at 0x900000000549450
_p_raise(??) at 0x900000000548cc8
raise.raise(??) at 0x90000000002ad0c
abort() at 0x900000000094144
dump_core(), line 242 in "fault.c"
smb_panic(why = warning: Unable to access address 0x11024f89c from core (invalid char ptr (0x000000011024f89c))), line 1689 in "util.c"
fault_report(sig = 268435455), line 46 in "fault.c"
sys_acl_get_entry(acl_d = (nil), entry_id = 268435455, entry_p = 0x0000000000000010), line 55 in "sysacls.c"
vfswrap_sys_acl_get_entry(handle = 0x0fffffffffffe100, theacl = 0x000000011008b53c, entry_id = 268435455, entry_p = 0x0000000200000002), line 1104 in "vfs_default.c"

I really don't understand what is going on here. 
As you can see the address of "theacl" in vfswrap_sys_acl_get_entry is valid but "acl_d" in sys_acl_get_entry is a NULL pointer.
The function merely looks like:
static int vfswrap_sys_acl_get_entry(vfs_handle_struct *handle,  SMB_ACL_T theacl, int entry_id, SMB_ACL_ENTRY_T *entry_p) {
        return sys_acl_get_entry(theacl, entry_id, entry_p); }

Anyone an idea what is happening? Am I interpreting this wrong?

Met vriendelijke groet
Best regards
Bien à vous

Miguel SANDERS
ArcelorMittal Gent

UNIX Systems & Storage
IT Supply Western Europe | John Kennedylaan 51
B-9042 Gent

T +32 9 347 3538 | F +32 9 347 4901 | M +32478 805 023 E miguel.sanders at arcelormittal.com www.arcelormittal.com/gent


****
This message and any attachment are confidential, intended solely for the use of the individual or entity to whom it is addressed and may be protected by professional secrecy or intellectual property rights. 
If you have received it by mistake, or are not the named recipient(s), please immediately notify the sender and delete the message. You are hereby notified that any unauthorized use, copying or dissemination of any or all information contained in this message is prohibited. 
Arcelormittal shall not be liable for the message if altered, falsified, or in case of error in the recipient. 
This message does not constitute any right or commitment for ArcelorMittal except when expressly agreed otherwise in writing in a separate agreement.  
****  


**** 
This message and any attachment are confidential, intended solely for the use of the individual or entity to whom it is addressed and may be protected by professional secrecy or intellectual property rights. 
If you have received it by mistake, or are not the named recipient(s), please immediately notify the sender and delete the message. You are hereby notified that any unauthorized use, copying or dissemination of any or all information contained in this message is prohibited. 
Arcelormittal shall not be liable for the message if altered, falsified, or in case of error in the recipient. 
This message does not constitute any right or commitment for ArcelorMittal except when expressly agreed otherwise in writing in a separate agreement.  
****  



More information about the samba-technical mailing list