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

POZ : revert avoid double memory allocation for ffdc data #95

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

devenrao
Copy link
Contributor

Revert change done to avoid double memory allocation for ffdc data.

Earlier test was done with single proc which worked as expected but with multiple proc and multiple fork processes trying to read the ffdc data it is causing double free error and core dump.

Tested:
root@p10bmc:/tmp# busctl tree xyz.openbmc_project.Dump.Manager - /xyz - /xyz/openbmc_project
- /xyz/openbmc_project/dump |- /xyz/openbmc_project/dump/hostboot | - /xyz/openbmc_project/dump/hostboot/entry
| |- /xyz/openbmc_project/dump/hostboot/entry/20000001
| |- /xyz/openbmc_project/dump/hostboot/entry/20000002
| |- /xyz/openbmc_project/dump/hostboot/entry/20000003

Change-Id: If38be58d9938b476ab39f35e69583fda28522cd4

Revert change done to avoid double memory allocation for ffdc
data.

Earlier test was done with single proc which worked as expected
but with multiple proc and multiple fork processes trying to
read the ffdc data it is causing double free error and core dump.

Tested:
root@p10bmc:/tmp# busctl tree xyz.openbmc_project.Dump.Manager
`- /xyz
  `- /xyz/openbmc_project
    `- /xyz/openbmc_project/dump
      |- /xyz/openbmc_project/dump/hostboot
      | `- /xyz/openbmc_project/dump/hostboot/entry
      |   |- /xyz/openbmc_project/dump/hostboot/entry/20000001
      |   |- /xyz/openbmc_project/dump/hostboot/entry/20000002
      |   |- /xyz/openbmc_project/dump/hostboot/entry/20000003

Signed-off-by: Marri Devender Rao <[email protected]>
Change-Id: If38be58d9938b476ab39f35e69583fda28522cd4
@aravynd aravynd merged commit 8288f4c into open-power:master Apr 24, 2024
1 check passed
@devenrao devenrao deleted the core branch November 28, 2024 10:59
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.

5 participants