Segmentation Fault : How to debug on target hw
-
wrote on 19 Jan 2023, 04:13 last edited by Parvathy2020
Hi, My Qt Application recently upgraded to qt 5.12.9. And then it crashes in target hardware with segmentation fault. Segmentation fault occurs randomly while loading a new page/screen. But same application (no change in code) when built with qt 5.11 , runs smoothly without any issue.
But in laptop work space, there is no issue. Not getting the segmentation fault error for any of the scenario. I tried to analyze the code in Qt creator using Valgrand Memory Analyzer , and was not able to see any issue.
Please provide some solution on how to debug the issue/ or how to find what might be causing the segmentation fault only in target hardware and not in my laptop. ?
-
Hi, My Qt Application recently upgraded to qt 5.12.9. And then it crashes in target hardware with segmentation fault. Segmentation fault occurs randomly while loading a new page/screen. But same application (no change in code) when built with qt 5.11 , runs smoothly without any issue.
But in laptop work space, there is no issue. Not getting the segmentation fault error for any of the scenario. I tried to analyze the code in Qt creator using Valgrand Memory Analyzer , and was not able to see any issue.
Please provide some solution on how to debug the issue/ or how to find what might be causing the segmentation fault only in target hardware and not in my laptop. ?
@Parvathy2020 Usual way to analyse such issues is to check core dumps generated on the target device after the crash.
You can also do remote debugging if you can get GDB server to run on your device (you did not mention what device that is and what OS is running there). Even easier is it if you can install GDB and then debug directly on the device.
1/2