Forum Discussion
Hi UnixDev ,
Good day, just following up on the previous clarification.
By any chances did you managed to look into it?
Hope to hear from you soon.
Best Wishes
BB
- PrakashPrasad1 month ago
New Contributor
We are facing a peculiar issue – we have a code that dynamically allocates memory (bigger size as per need) and copies data from an old memory location into it. Later we free up that old memory location. We are observing memory fault error when we either copy data or free the old dynamically allocated memory. We observed that issue occurs when memory is allocated at a HEAP higher address – as per our issue 0x7874eee0.
I am not sure whether it is a linker script issue or not cause malloc for new memory returns success - perhaps that memory regoion overlaps BSS or STATIC or some other memory and hence the issue. But then why malloc is returned as success - where and how do we specify HEAP bounday and make malloc to fail in such a case.
- Qingrui_H_Intel1 month ago
New Contributor
Hi PrakashPrasad,
It seems that you met a different issue with the original one, could you upload the error message in your case?
Best Regards
- BoonBengT_Altera19 days ago
Moderator
HI UnixDev
Greetings, as we do not receive any further clarification/updates on the matter, hence would assume challenge are overcome. We will continue to monitor this post for the next 5 days. If there are no further inquiries during this period, I will step back and allow the community to assist with any future follow-up questions.
Thank you for engaging with us!HI PrakashPrasad,
Good day, as noted issues mention is different and for better issues management and clarity, would suggest to post the error in the new thread.
Hope that clarify.
Best WishesBB