Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Segmentation Fault : How to debug on target hw
Forum Updated to NodeBB v4.3 + New Features

Segmentation Fault : How to debug on target hw

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 209 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Parvathy2020
    wrote on 19 Jan 2023, 04:13 last edited by Parvathy2020
    #1

    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. ?

    J 1 Reply Last reply 19 Jan 2023, 06:18
    0
    • P Parvathy2020
      19 Jan 2023, 04:13

      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. ?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 19 Jan 2023, 06:18 last edited by
      #2

      @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.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      1/2

      19 Jan 2023, 04:13

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved