malloc used executable binary unable to run in imx6 linux

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

malloc used executable binary unable to run in imx6 linux

512 Views
aravinthkumarja
Senior Contributor II

Hi All,

i written a simple malloc c program and cross compiled into arm, then i run in arm bsp it shows segmentation fault. Then i compiled that program as statically, then it's successfully run. But this is testing purpose i did.

I have an big source file, in that source have malloc, also i'm not able to compile as statically. So in dynamically linked file how can i use..?

i cross checked with shared libraries(libc.so.6 is there). Everything is there.

Can you help me to fix this issue.?

Regards,

Aravinth

0 Kudos
1 Reply

367 Views
Yuri
NXP Employee
NXP Employee

Hello,

  I hope the following helps.

A quick tutorial on implementing and debugging malloc, free, calloc, and realloc

http://stackoverflow.com/questions/3479330/how-is-malloc-implemented-internally

Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos