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

CORE-8856 Adding lambda to suspendible function to trigger bug #6149

Closed

Conversation

ben-millar
Copy link
Contributor

@ben-millar ben-millar commented May 20, 2024

During the development of 5.0, we were seeing flows failing with the error java.lang.VerifyError: Bad local variable type. It was discovered that this was triggered by lambda functions being used within suspendible functions.

The root cause was then discovered to be a difference in how JVM and ASM store local variables in the frame, which caused the previous exception to be thrown when a function was suspended and resumed. A bug was raised against the maintainers of ASM HERE, and I see that this has now been actioned.

This PR adds a lambda to a suspendible function in an attempt to trigger the previous issue, or to show that the fix to ASM has resolved it. It needs not be merged; it's intended only as an investigation.

@corda-jenkins-ci02
Copy link
Contributor

corda-jenkins-ci02 bot commented May 20, 2024

Jenkins build for PR 6149 build 5

Build Successful:
Jar artifact version produced by this PR: 5.3.0.0-alpha-1716911544554
Helm chart version produced by this PR: 5.3.0-alpha.1716911544554
Helm chart pushed to: oci://corda-os-docker-dev.software.r3.com/helm-charts/pr-6149/corda
Helm chart Polaris score: 82

@@ -366,9 +366,9 @@ class UtxoFinalityFlowV1(
}

if (log.isDebugEnabled) {
log.debug(
log.debug {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You probably need to ensure that the tests are running at debug level, not sure if they do or not.

Copy link

sonarcloud bot commented May 28, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

github-actions bot commented Jun 5, 2024

This PR is stale because it has been open 7 days with no activity. Remove the Stale label or add a comment - otherwise this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Jun 5, 2024
@ben-millar ben-millar closed this Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants