Segmentation fault in dcpomatic_kdm_clli 2.16.69 linux

Anything and everything to do with DCP-o-matic.
paul
Posts: 2
Joined: Wed Nov 29, 2023 7:52 pm

Segmentation fault in dcpomatic_kdm_clli 2.16.69 linux

Post by paul »

Hi!

We've been using dcp-o-matic the GUI version for quite a while now, and to make some flows a bit more efficient I am working towards a cli/automated kdm workflow. When I first started this project using an older version of dcpomatic2_cli this worked fine, but now I'm getting segmentation faults in the kdm generator. I've reinstalled the old environment to test with the same data and certs, and that works fine. I can't seem to find out what is happening. Maybe here someone has experience with this issue? Any help would be much appreciated.

What I'm currently on:

Code: Select all

Ubuntu 23.04 (cli only) AMD64
dcpomatic2_cli 2.16.69
Older system which worked:

Code: Select all

Ubuntun 20.04 (cli only) AMD64
dcpomatic2_cli 2.14.47
dcpomatic_create and dcpomatic_cli work fine, it is a simple re-pack/encrypt of an existing CPL.

Code: Select all

dcpomatic2_create -n TESTCTT -e -c FTR --no-use-isdcf-name -o project_folder source_dcp
in 2.14.47 this was also mandatory:

Code: Select all

--content-ratio 185
then:

Code: Select all

dcpomatic2_cli -d project_folder
and finally:

Code: Select all

dcpomatic2_kdm_cli -f now -t '2024-01-01 10:10:10' -v -C kdm_cert.pem -o kdm_folder project_folder
dcpomatic2_kdm_cli output:

Code: Select all

Making KDMs valid from 2023-Nov-29 20:47:05 to 2061-Sep-24 11:19:21
Read film TESTCTT
Segmentation fault (core dumped)
dmesg output is always the same, here for three tries:

Code: Select all

[106397.338667] dcpomatic2_kdm_[255221]: segfault at 10 ip 0000559df13135d2 sp 00007ffc66f9be60 error 4 in dcpomatic2_kdm_cli[559df0fd7000+15a1000] likely on CPU 2 (core 0, socket 4)
[106397.338681] Code: 00 49 8b 34 24 49 8b 54 24 08 48 8d bc 24 10 03 00 00 4c 89 ac 24 10 03 00 00 4c 8d a4 24 00 03 00 00 48 01 f2 e8 1e fe ff ff <49> 8b 36 49 8b 56 08 48 8d bc 24 f0 02 00 00 4c 89 a4 24 f0 02 00
[106423.545965] dcpomatic2_kdm_[255279]: segfault at 10 ip 000056012dac65d2 sp 00007ffc197c27d0 error 4 in dcpomatic2_kdm_cli[56012d78a000+15a1000] likely on CPU 0 (core 0, socket 0)
[106423.545978] Code: 00 49 8b 34 24 49 8b 54 24 08 48 8d bc 24 10 03 00 00 4c 89 ac 24 10 03 00 00 4c 8d a4 24 00 03 00 00 48 01 f2 e8 1e fe ff ff <49> 8b 36 49 8b 56 08 48 8d bc 24 f0 02 00 00 4c 89 a4 24 f0 02 00
[106424.719189] dcpomatic2_kdm_[255287]: segfault at 10 ip 00005649a20db5d2 sp 00007ffc25d8eae0 error 4 in dcpomatic2_kdm_cli[5649a1d9f000+15a1000] likely on CPU 0 (core 0, socket 0)
[106424.719200] Code: 00 49 8b 34 24 49 8b 54 24 08 48 8d bc 24 10 03 00 00 4c 89 ac 24 10 03 00 00 4c 8d a4 24 00 03 00 00 48 01 f2 e8 1e fe ff ff <49> 8b 36 49 8b 56 08 48 8d bc 24 f0 02 00 00 4c 89 a4 24 f0 02 00
testcertificate used to generate kdms:

Code: Select all

-----BEGIN CERTIFICATE-----
MIIDazCCAlOgAwIBAgIUPzKsnKoMtLRUUmYKmK6Q77NuhMYwDQYJKoZIhvcNAQEL
BQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM
GEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDAeFw0yMzExMjgxNDQyMDlaFw00MzA4
MTUxNDQyMDlaMEUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEw
HwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQwggEiMA0GCSqGSIb3DQEB
AQUAA4IBDwAwggEKAoIBAQDnQfZDBBvL4tel5khhRP0RdingReF6N23h8NneYykR
W0Fxkk1wTyiLgPOqJ5HCe8+3QI3EU+EZzucSme63hmADDs6Toe8JJ2fZmybgC4VX
W8elvnR6a3UA7L8W8r0Y2l6uPyaBTBavpnhuZBu94qGR006bHde6rlYgOwu9Gt34
ClPZBo5EtRLdQsQIiiVStBHa+6T4Y1ULr2j3NaHcTyYeDDPe4skj+RzNTlvCCSMx
vWJw/ZQqLE/g2KuulW7v4yt4sSOwDfZgZl3lozC03Kv/bamixvXZLfiB2d6NqS5v
cwRnrXMZcy1H0PPmhU8Lqy3DY1cKCNnbTQ7AdFm1Z0EdAgMBAAGjUzBRMB0GA1Ud
DgQWBBQLTxBY9PARMPoFRYsukiHdxOyL7jAfBgNVHSMEGDAWgBQLTxBY9PARMPoF
RYsukiHdxOyL7jAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQDW
RinWqdLNIGA1YY/57UbL9SMqiDhCCeV2gYHENlrYFULeigcLYz3WTy/qzeUdEXkT
q8bSwo+OL2d21tg6g3M9Vy+F5MHJlsq4+Mj/KsYIpJk31YsyGnv3N8h0Pke4tGzp
zK5LyFcqmyojfwGRW+jxIibzqpvW3iHspqYfXHZojaPR860POccuQQZwI+EheY+C
dvlECaHhKNchz7MEvIQU2Lxv+BBN+FXY527aju8FvnikOCrwCKdm4GuTsQIPi8i1
4sySBZixgvPb6F8lNyr+On/F0wv/4yeCgiYV+pzSqeBrU9dX02HD7yTf3dV9Hgv6
mHq4XPNqTYjC+kGHSa01
-----END CERTIFICATE-----
carl
Site Admin
Posts: 2550
Joined: Thu Nov 14, 2013 2:53 pm

Re: Segmentation fault in dcpomatic_kdm_clli 2.16.69 linux

Post by carl »

Could you try running

Code: Select all

gdb --args dcpomatic2_kdm_cli -f now -t '2024-01-01 10:10:10' -v -C kdm_cert.pem -o kdm_folder project_folder
then when you get the prompt type "run", then when it crashes type "bt" and show us what you get?
carl
Site Admin
Posts: 2550
Joined: Thu Nov 14, 2013 2:53 pm

Re: Segmentation fault in dcpomatic_kdm_clli 2.16.69 linux

Post by carl »

Actually never mind I think I can see the same crash here.
carl
Site Admin
Posts: 2550
Joined: Thu Nov 14, 2013 2:53 pm

Re: Segmentation fault in dcpomatic_kdm_clli 2.16.69 linux

Post by carl »

Here is a test build that should fix this problem. Let us know how you get on if you try it!
paul
Posts: 2
Joined: Wed Nov 29, 2023 7:52 pm

Re: Segmentation fault in dcpomatic_kdm_clli 2.16.69 linux

Post by paul »

Hi Carl,

Amazing. yes. this build works fine. I'll stay on this build for now. Thank you very much.

Paul