Hi, I encountered the bug when using second vfs module.
Reproduce conditions are:
- using more than one vfs module
- debug class = yes
Segmentation fault happened when debug logging.
@@ -953,7 +953,7 @@ bool dbghdrclass(int level, int cls, const char *location, const char *func)
slprintf(header_str + hs_len,
sizeof(header_str) -1 - hs_len,
default_classname_table array size=20, and terminated NULL.
The first vfs module level=20. then output class=(null)
At this point, something wrong.
The second vfs module level=21. then brew up SEGV.
please apply the patch.
Created attachment 8293 [details]
patch for 3.6.9
error in writing:
> The first vfs module level=20. then output class=(null)
> The second vfs module level=21. then brew up SEGV.
The first vfs module cls=20. then output class=(null)
The second vfs module cls=21. then brew up SEGV.
Looks completely correct - thanks ! I'll get it pushed to master then applied to 3.6.x and 4.0.0.
Created attachment 8304 [details]
git-am fix that went into master.
This is the patch that went into master. Applies cleanly to 3.6.x and 4.0.0.
Reviewed by Jeremy and Michael.
Re-assigning to Karolin for inclusion in 4.0.0 and 3.6.x.
Pushed to autobuild-v4-0-test.
Needs to be pushed to v3-6-test after the release tomorrow (branch is closed).
Pushed to v4-0-test.
Pushed to v3-6-test. Will be included in Samba 3.6.11 and 4.0.0.
Closing out bug report.