Bug 10423 - Segmentation fault on samba-tool with auditory enabled
Summary: Segmentation fault on samba-tool with auditory enabled
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Tools (show other bugs)
Version: 4.1.4
Hardware: x64 Linux
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-06 13:20 UTC by Gonzalo
Modified: 2021-03-22 02:25 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gonzalo 2014-02-06 13:20:10 UTC
Whenever I use samba-tool with 'vfs objects = full_audit' on smb.conf I get a segmentation fault. I have seen it runnig 'samba-tool domain classicupgrade' or '/usr/local/samba/bin/samba-tool ntacl get'

With log level = 10 I get:

Initialising default vfs hooks
vfs_find_backend_entry called for posixacl
Successfully added vfs backend 'posixacl'
vfs_find_backend_entry called for /[Default VFS]/
Successfully added vfs backend '/[Default VFS]/'
vfs_find_backend_entry called for dfs_samba4
Successfully added vfs backend 'dfs_samba4'
vfs_dfs_samba4: Debug class number of 'fileid': 23
Initialising custom vfs hooks from [/[Default VFS]/]
vfs_find_backend_entry called for /[Default VFS]/
Successfully loaded vfs module [/[Default VFS]/] with the new modules system
Initialising custom vfs hooks from [full_audit]
vfs_find_backend_entry called for full_audit
vfs module [full_audit] not loaded - trying to load...
Loading module 'full_audit'
Loading module 'full_audit': Trying to load from /usr/local/samba/lib/vfs/full_audit.so
Module 'full_audit' loaded
vfs_find_backend_entry called for full_audit
Successfully added vfs backend 'full_audit'
vfs_full_audit: Debug class number of 'full_audit': 24
vfs_find_backend_entry called for full_audit
Successfully loaded vfs module [full_audit] with the new modules system
Segmentation fault

Best regards.
Comment 1 Dron 2015-03-18 13:33:00 UTC
Have same situation here.
Samba 4.1.17
Comment 2 Dron 2017-03-29 12:32:34 UTC
FreeBSD 11 p8 
Samba 4.5.7 from ports
Issue still exists.
Workaround is to comment out full_audit lines in samba3 smb.conf
Comment 3 Andrew Bartlett 2017-07-16 21:37:03 UTC
The issue here is that the full audit modules don't like to run without a connect() being called, but because samba-tool operates on a path, not a share, it does not call the VFS connect() method.
Comment 4 Jorge Schrauwen 2018-12-04 09:25:52 UTC
I think this got fixed in the latest 4.8.x and 4.9.x releases.

My $work ran into this and it is now fixed for us.
Comment 5 Andrew Bartlett 2021-03-22 02:25:19 UTC
Marking as fixed per comment #4.