Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞 encrypting ballots on M1 macos fails #795

Open
1 task done
john-s-morgan opened this issue Oct 27, 2022 · 0 comments
Open
1 task done

🐞 encrypting ballots on M1 macos fails #795

john-s-morgan opened this issue Oct 27, 2022 · 0 comments
Labels
bug Something isn't working triage Waiting to be triaged

Comments

@john-s-morgan
Copy link
Collaborator

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

from root of repo:

poetry run eg encrypt-ballots --manifest=./egui_mnt/export/artifacts/manifest.json --context=./egui_mnt/export/artifacts/context.json --ballots-dir=./egui_mnt/export/artifacts/ballots --out-dir=./egui_mnt/export/artifacts/eballots 

output:

❯ poetry run eg encrypt-ballots --manifest=./egui_mnt/export/artifacts/manifest.json --context=./egui_mnt/export/artifacts/context.json --ballots-dir=./egui_mnt/export/artifacts/ballots --out-dir=./egui_mnt/export/artifacts/eballots

----------------------------------------
Retrieving Inputs
----------------------------------------
Name: SOME RANDOM EXAMPLE ELECTION
Scope: e08c5c2c-6f43-4c5c-bce8-978594dbc9f6
Geopolitical Units: 1
Parties: 5
Candidates: 43
Contests: 21
Ballot Styles: 18
Importing ballot-55e63746-5633-11ed-b768-1ac59276b08a.json
Importing ballot-55e6204e-5633-11ed-b768-1ac59276b08a.json
Importing ballot-55e64e20-5633-11ed-b768-1ac59276b08a.json
Importing ballot-55e607e4-5633-11ed-b768-1ac59276b08a.json
Importing ballot-55e5edb8-5633-11ed-b768-1ac59276b08a.json

----------------------------------------
Building election
----------------------------------------
Initializing public key and commitment hash
Creating context and internal manifest

----------------------------------------
Encrypting Ballots
----------------------------------------
Ballots to encrypt: 5
Device location: polling-place
Encrypting ballot: ballot-55e63746-5633-11ed-b768-1ac59276b08a
[67701:2022-10-27 16:42:11,815]:INFO:encrypt.py.encrypt:#L123:  encrypt: objectId: ballot-55e63746-5633-11ed-b768-1ac59276b08a
[67701:2022-10-27 16:42:11,816]:INFO:encrypt.py.encrypt_ballot:#L477: : manifest_hash : 4DDE5E5458637A49FF02450174F443AF7732F435BD8BB1AA64CFD5DF979D889F
[67701:2022-10-27 16:42:11,817]:INFO:encrypt.py.encrypt_ballot:#L478: : encryption_seed : 60CFFCFDAC566082676E8550DA8AD4998EB05E56F7F38F46E99181BAA81D0AA9
[67701:2022-10-27 16:42:11,819]:INFO:encrypt.py.encrypt_selection:#L213: : encrypt_selection: for c5e71d98-fb6b-424c-9b80-a24755735cf1-54e1e89f-454d-44a9-8e48-d125bab5c04f hash: E6968A8218DB59CAB92D1EB987808E970B22767F4B467CD9471A191F933A184C
[67701:2022-10-27 16:42:11,821]:INFO:elgamal.py.elgamal_encrypt:#L213: : publicKey: B43A4E80BA6380E22C165D938ECD2080657550E8C8C54F27CC203D602C102B9CD6A0D91FEFA36E91444F05263E1F667BF93AF1E8EFCA0AA882CF3B425320B8716075FAE4BF25F4BE6E3A3B6B378A3AF6BEDD4A1D331223FA005A2B36828AAAB47B71F182C0EEB3A03D7191E0DFF7E8E26EE69C4CBE4B0435C29C149F8937D34125AA8F622378D4212DCB434A7B92BC66B0E84329B1C0CAAAE50BDF57D461463A89347378325DE3962DC73BB7802FA477468CE15810E7FE938CCBDBEDD83FBF79CD1B0C3E9859FC29A1328B796395087056E9EAF03D4CAED0361AA918C224842849FEFC353DE7A7B078CF9A03AA44A3C514743CA7B9B22E5974090C6B55E85528E912548146013D32F78E3C0D805244BFF5742121DD54753657B987DF9F6B208D0932EC3DC25BD4EC36F71CFD2BF8E6DBB5F681AD3D8AFA4366021D135818EA33C69E6BD0F0C055D58AAE754A91DB12A2A2B788004295AAF94A93E51F7AC7AF12A396A9D55293867734F285DF2195B55E8C4FB79BB79A23A329D72F24C702498DAFE3BDCF1A21815746C31DE413F72A716F2DF199EF8F7C61F03504EDB18EC31A7AB3043A19861E8FE347A0808D964008B01158245BCB1FF1902CBF4B2EBA1C7C736903870D4EBB9FCF9EA26CFA95492CA50E3AEC7FAF90FA0779A0109CB687B3017336E837A8CDC8079626BA44109CDC2902351CB2CAB6801259CF4348673C90
[67701:2022-10-27 16:42:11,822]:INFO:elgamal.py.elgamal_encrypt:#L214: : pad: 0C6BE13A8D1C8B0236B906575537154AC029580DCC5822E63561C28B46A5D1C42BB46C5FB84C3E2E86FB90493E3DD42F7D71868DAADF08A0331A79F5A991CA2EFB8AB5F468FAD63AA63B1DA416CC44B9C41B5ADDCF6847EDEE5663E051A85E3964D6515B9542C46285884CA838986AD5888D8EAE153C3F9E06D007B5810DA608A1ABD42587E535CC0BDD5F88FB2ABCC5C782E19A114CF977D1F68B8ED1F81FF035FDAE74DEE7B4989DAAF8D304B40E15E987878094776A878A69566E7EFE9DD896D1FA8E128B2540DEA75DE01096E5864F0DBC094FD3771BC311F68447B860B037283D8E0ED16AC7A5E9F0855D698A12F0BBEFDEC8B01A14B109FB0DE21B6DCCF651A0FF577A790AF5C5D59A9E30E219E8F590A3BF6E70B366F1FCF51A32F7E4DF48A20F93242B3DBD761386F2BFB6DAF3A2C2924C6217300706726D11A16B4D51DD73F9E2BBFA0D39D5BCA19275AA75FEFCB69BC88FF90F51A5A2F13EBD6F7FDA5C2B369F1C2864BD9430D40A616A62133AF535C061738C4506E3EA1CA0AF2E848B692E44F17D3AC6F7A9CED201298CDD39225508BCB7A7B5ED0BAAD517D17BAA1A604568D8263E5477D308C70BB6610C5AB52B632EEEF72266F717038EDFACCAAF2475C175AD80EFC785D240E9547B1C0A07ED5269DF4E47CEDAFF5334ECE44F48A3457DB699B0594C83514CFC1DD28976B2CECFDA98682B5B50D2B1CA36DF
[67701:2022-10-27 16:42:11,824]:INFO:elgamal.py.elgamal_encrypt:#L215: : data: 5B5C94B7E5C2A72140F46FCACAD6F7AA5BA6931F2102B9F01ECFC948F8C0B514B20A45F2F24A12BD7FBF071D4F0FE6C27248D8EF6F4561750B4752DC291D2DCBE2A98F699BF5D4FDD16AE92AF5C51402BE0B82C38E335E070FAB0E5AD92660F496267E8B1B30586A9ED886B235ACCC86221B49EFC3A68CB5371CCD1D1B2957F50C5F094210A762FF10FD4DA56EABEA5C12E49A63D78FB897FFFD0C7B0C321E3AA54EED586EDBABDF10F87B1C3995EB48F9205E21C13ADE9E54ABF8F703A1B202FA2727126D0A9777206F15B671CE1923FBF48893A598FB35157539064A7ED0E9F04904A231C5C64B16F2EA2DC0E99EB6659DE8FBF48D817D001FEE2F64014019D4A63CFBFBB7311B0C83EB87B2D9255B3047AB0F80FC2B7C31E84B7B6E18E513B452E2F048B4EDB49AC622D4BC98843199DC2B7BCB1E242C2D43D56C082930012605CDF820A93398C16658E224DB568973CD745973DABD114C38962F36A3DA84B97D259D86E22A13528B2EF022FF6F71D2F0CA915E9A58D6E661FE346FF9695B5186F1C4DACD3E9844410FB0C45AAB4B184AC586EE41540146DA7176D376539EDB83B663D42A4F29B4961F48AE60C0AF98DBB341CACBE2638518B80B39D5F109694DE292A64F321E278B2B5AE085479586C9A2DB1F9C5C4B2EFED1651DD5069F1B0FA6A88ED63D19C703B3DD19AFC4397575A80E0FD31DAF05CD9C6ADB94941D
[1]    67701 segmentation fault  poetry run eg encrypt-ballots    

Expected Behavior

5 encrypted ballots exported to the folder

Steps To Reproduce

  1. make all
  2. poetry run eg mark-ballots ...
  3. download encrypton data from election into docker mountpoint

Environment

- OS: Macos Ventura
- CPU_ARCH: M1 (ARM64)

Anything else?

No response

@john-s-morgan john-s-morgan added bug Something isn't working triage Waiting to be triaged labels Oct 27, 2022
@john-s-morgan john-s-morgan changed the title 🐞 encrypting ballots on macos fail 🐞 encrypting ballots on M1 macos fails Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Waiting to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant