open-power / pdbg

PowerPC FSI Debugger
Apache License 2.0
16 stars 39 forks source link

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

Closed devenrao closed 6 months ago

devenrao commented 6 months ago

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