aws / aws/aws-encryption-sdk-c

example program crashes with fault

Open
#727 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
63
Forks
59
PR merge metrics
No merged PRs in 30d

Description

I was able to successfully build the sdk and the encryption sdk following the steps in the readme. However when trying to run the "string.exe" program from the included examples, it crashes with a fault, and a value of -1073741819 in the windows ERRORLEVEL variable in the command line. There following fault information is recorded in the windows event log:

Log Name: Application
Source: Application Error
Date: 9/3/2021 9:15:34 AM
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Description:
Faulting application name: string.exe, version: 0.0.0.0, time stamp: 0x6131371a
Faulting module name: aws-cpp-sdk-core.dll, version: 0.0.0.0, time stamp: 0x61313292
Exception code: 0xc0000005
Fault offset: 0x000000000003164d
Faulting process id: 0x2c40
Faulting application start time: 0x01d7a0c5c70d9949
Faulting application path: C:\projects\aws\build-aws-encryption-sdk-c\examples\Debug\string.exe
Faulting module path: c:\Program Files (x86)\aws-cpp-sdk-all\bin\aws-cpp-sdk-core.dll
Report Id: 2f970056-d0d2-4ddf-a18d-9d81e888afba
Faulting package full name:
Faulting package-relative application ID:
Event Xml:



1000
0
2
100
0
0x80000000000000

1642354


Application



string.exe
0.0.0.0
6131371a
aws-cpp-sdk-core.dll
0.0.0.0
61313292
c0000005
000000000003164d
2c40
01d7a0c5c70d9949
C:\projects\aws\build-aws-encryption-sdk-c\examples\Debug\string.exe
c:\Program Files (x86)\aws-cpp-sdk-all\bin\aws-cpp-sdk-core.dll
2f970056-d0d2-4ddf-a18d-9d81e888afba




I built the aws sdk according to the directions linked in the readme, using the -DBBUILD_ONLY="kms" option. I am not sure how to troubleshoot what is going wrong. When the aws sdk itself built, all the post-build and post install tests passed, and I did not see any warnings or errors in the build log. I did see couple warning in the build output of the encryption sdk but these were for the tests and not the libraries themselves:

C:\projects\aws\aws-encryption-sdk-c\aws-encryption-sdk-cpp\tests\unit\t_kms_mrk_keyring.cpp(88,1): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [C:\projects\aws\build-
aws-encryption-sdk-c\aws-encryption-sdk-cpp\t_kms_mrk_keyring.vcxproj]

C:\projects\aws\aws-encryption-sdk-c\tests\unit\t_commitment.c(54,28): warning C4101: 'c': unreferenced local variable [C:\projects\aws\build-aws-encryption-sdk-c\tests\unit-test-suite.vcxproj]

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the crash in examples\Debug\string.exe and reviewing the reported aws-cpp-sdk-core.dll path and Windows event-log details. Compare the AWS SDK build configuration, including -DBBUILD_ONLY="kms", with the encryption SDK build and its test results. Done means the string example runs without the reported access violation.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, cpp
Domain
security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.