This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: TI C/C++ Compiler
Hello,
I have a link running on a15 core, I am getting following error:
****** Segmentation fault caught ....
Faulty address is 0xc1880000, called from 0x2f277
Totally Obtained 0 stack frames. signal number =11
Signal number = 11, Signal errno = 0
SI code = 1 (Address not mapped to object)
Fault addr = 0xc1880000
[bt] Execution path:
I am not able to figure out the actual memory location or function, is there any memory map available for a15 where to find it?
Also I have observed that when i pass floating point argument to functions from one function to another (2 different files) the values get modified. what might be the reason?
Kindly provide the input on the same!
Regards,
Gayatri
Hi,
Build the application in the debug mode then try run with GDB command to know where code is getting a segmentation fault.
Can I know what is the floating point value is passed in the function arguemet & what is the modified value? if possible share the function prototype.
Thanks
Gaviraju
Hi Gaviraju,
I built the application in debug mode following is the error:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x9151c450 (LWP 809)]
0xb6cacc38 in __memcpy_neon () at ../sysdeps/arm/armv7/multiarch/memcpy_impl.S:332
332 ../sysdeps/arm/armv7/multiarch/memcpy_impl.S: No such file or directory.
(gdb) [ 49.216549] random: nonblocking pool is initialized
Without debug normal application run gives error:
****** Segmentation fault caught *********
SI code = 1 (Address not mapped to object)
Fault addr = (nil)
[bt] Execution path:
Function argument's incorrect value print issue got resolved as print statements were placed incorrectly.
Regards,
Gayatri
Hi Gaviraju,
The segmentation fault I am getting is still persist, Can you share thoughts about what might be probable issue. It is always giving segmentation fault at location 0xb6e48eef
Faulty address is (nil), called from 0xb6e48eef
Totally Obtained 0 stack frames. signal number =11
Signal number = 11, Signal errno = 0
SI code = 1 (Address not mapped to object)
Fault addr = (nil)
[bt] Execution path:
The a15 llinux kernel ranges from 8000000 to 8400000, 512MB memory is configured for an EVM. Attaching System.map and EVM map file
/cfs-file/__key/communityserver-discussions-components-files/791/6170.EVM_5F00_map.txt
/cfs-file/__key/communityserver-discussions-components-files/791/System_5F00_map.txt
Thank you!
Regards,
Gayatri
Hi,
>> 0xb6cacc38 in __memcpy_neon () at ../sysdeps/arm/armv7/multiarch/memcpy_impl.S:332
The above line is indicating the error has arrived from the memcpy function. Please make sure the argument passing to the memcpy function is valid or not.
Wherever the memcpy function called in code add the debug prints before & after the memcpy function, to know which memcpy function is causing the issue.
Thanks
Gaviraju