Fabio Fantoni
2023-Feb-02 14:15 UTC
[Samba] Crash on "samba-tool domain functionalprep --function-level=2012_R2 ..."
Il 02/02/2023 14:50, Rowland Penny via samba ha scritto:> Your English isn't bad, which is more than what I can say about your > email client ? > > Can you please try again, with a different client that doesn't try to > put everything on one line. > > RowlandThanks for reply, the client is thunderbird and I setted text-only format to avoid some issue saw in past with mailing list but don't seems produced good result in this case (or is antivirus that I try to temp. disable now), I'll retry without this mode and using paste.debian.net for bigger commands output, see below... Hi, I tried to add windows 2019 domain controller to samba active directory following this procedure: https://dev.to/aciklab/adding-a-windows-2019-dc-to-your-samba-domain-im2 When I this command I had a crash: samba-tool domain functionalprep --function-level=2012_R2 --forest-prep --domain-prep I also tried to update to latest samba version (4.17.5) from backports packages (exactly version 2:4.17.5+dfsg-1~bpo11+1) on debian 11 but crashed anyway. Redoing another time the command don't crash and don't print errors but I don't know really did all correct and complete changes with crash occurred before. I restored the backup installed also needed dbgsym packages before reproduce the crash to decode the backtrace symbols.> vi /etc/apt/sources.list > deb http://deb.debian.org/debian-debug/ bullseye-debug main contrib > non-free > deb http://deb.debian.org/debian-debug/ bullseye-backports-debug main > contrib non-free > > apt -t bullseye-backports-debug install samba-libs-dbgsym > libtevent0-dbgsym samba-dsdb-modules-dbgsym libldb2-dbgsym > python3-ldb-dbgsym > apt install libc6-dbg python3-dbgBefore start I also checked db> samba-tool dbcheck --cross-ncs --fix --yes? --reset-well-known-acls > Checking 3630 objects > Checked 3630 objects (0 errors)And even if dbgsym packages was installed it didn't decode the symbols in the backtrace: https://paste.debian.net/hidden/1f4f1de4/ I don't know how to decode symbols of this printed backtrace, if are needed to solve the issue can you tell me what I should do please? Another thing spotted on previous command that even if don't seems failed there are some "Unable to find attribute", are them normal or minor "not blocking" issues or there is something that should be solved before? "samba-tool domain schemaupgrade" output: https://paste.debian.net/hidden/7d2de9ee/ Thanks for any reply and sorry for my bad english
Douglas Bagnall
2023-Feb-02 20:53 UTC
[Samba] Crash on "samba-tool domain functionalprep --function-level=2012_R2 ..."
On 3/02/23 03:15, Fabio Fantoni via samba wrote:> When I this command I had a crash: > > samba-tool domain functionalprep --function-level=2012_R2 --forest-prep > --domain-prepIf you try with `samba-tool -d9` you'll get more output, which may or may not help. And if you add panic action = /path/to/samba/gdb_backtrace %d to smb.conf, you ought to see more profuse back traces (what the exact path or package is, I don't know). I think the 'ndr_pull_relative_ptr1' lines are unrelated, just Samba trying to parse SD strings as binary before trying it the other way (c.f. https://lists.samba.org/archive/samba/2021-July/236839.html). What version of libgnutls to you have? libgenrand-samba4.so.0 should always lead to gnutls, as fas as I am aware. Douglas