Bug 13705 - samba-tool domain functionalprep: Segmentation fault
Summary: samba-tool domain functionalprep: Segmentation fault
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: AD: LDB/DSDB/SAMDB (show other bugs)
Version: 4.14.5
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
Depends on:
Reported: 2018-12-07 11:28 UTC by Björn Baumbach
Modified: 2021-07-05 14:43 UTC (History)
2 users (show)

See Also:

bt full (22.30 KB, text/plain)
2018-12-07 11:28 UTC, Björn Baumbach
no flags Details
backtrace, Samba 4.14.5 (23.49 KB, text/plain)
2021-07-05 14:43 UTC, Björn Baumbach
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Björn Baumbach 2018-12-07 11:28:35 UTC
Created attachment 14725 [details]
bt full

Running samba-tool domain functionalprep on a running AD DC 4.9.3 leads to INTERNAL ERROR: Signal 11.

Backtrace is attached

Steps to reproduce:

# samba-tool domain provision
# samba-tool domain schemaupgrade

start service

# samba-tool domain functionalprep --function-level=2012_R2
Comment 1 Garming Sam 2019-07-16 04:16:54 UTC
The functional prep command actually succeeds in this case, but for some reason it's crashing in the messaging code with a live server. I think this is a general issue, rather than one specific to the functional prep code.
Comment 2 Björn Baumbach 2021-07-05 14:41:00 UTC
This issue still exists in current Samba 4.14.5.

I was wondering why this is not fetched by the autobuild (selftest). The reason is, that the command does not fail if samba is not running. That is what the autobuild does.

    "samba4.blackbox.functionalprep", "none",
    cmdline('functionalprep.sh', '$PREFIX_ABS/provision'))
Comment 3 Björn Baumbach 2021-07-05 14:43:08 UTC
Created attachment 16673 [details]
backtrace, Samba 4.14.5