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

fix segmentation fault in E2E when light-client feature flag is enabled #14699

Merged
merged 12 commits into from
Dec 10, 2024

Conversation

rupam-04
Copy link
Contributor

@rupam-04 rupam-04 commented Dec 8, 2024

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?

Prior to this, the E2E tests would run into a segmentation fault at the 12th Epoch (basically DenebE2EForkEpoch) when the light client feature flag was universally enabled. Going through the logs I saw that SetFinalizedHeader was being called on an empty LightClientHeaderDeneb. This header was in turn being returned by the BlockToLightClientHeader function which on further inspection showed that it was calling the EmptyExecutionPayload() function which returns an empty payload but NOT an empty payload header. I replaced it with hardcoded values and it works fine now. Also adds more comprehensive tests for BlockToLightClientHeader

Which issues(s) does this PR fix?

Part of #12991

Other notes for review

Acknowledgements

  • I have read CONTRIBUTING.md.
  • I have made an appropriate entry to CHANGELOG.md.
  • I have added a description to this PR with sufficient context for reviewers to understand this PR.

@rkapka rkapka marked this pull request as ready for review December 9, 2024 22:14
@rkapka rkapka requested a review from a team as a code owner December 9, 2024 22:14
@rkapka rkapka added this pull request to the merge queue Dec 10, 2024
Merged via the queue into prysmaticlabs:develop with commit a0791d7 Dec 10, 2024
15 checks passed
@rupam-04 rupam-04 deleted the fix-e2e branch December 10, 2024 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants