Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Segmentation fault on RPi4 and buildroot

Segmentation fault on RPi4 and buildroot

Scheduled Pinned Locked Moved Solved Installation and Deployment
9 Posts 3 Posters 1.2k 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.
  • M Offline
    M Offline
    Mark81
    wrote on last edited by
    #1

    I cross-compiled Qt5.12 for RPi4 with buildroot.
    When I try to execute a simple hello world project I get a segmentation fault crash.

    Here some info:

    # file foo
    foo: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-uClibc.so.0, not stripped
    
    # ldd foo
    libatomic.so.1 => /lib//libatomic.so.1 (0x7fb6fd6000)
    libQt5Core.so.5 => /usr/lib//libQt5Core.so.5 (0x7fb6b31000)
    libstdc++.so.6 => /usr/lib//libstdc++.so.6 (0x7fb69dd000)
    libgcc_s.so.1 => /lib//libgcc_s.so.1 (0x7fb69bb000)
    libc.so.0 => /lib//libc.so.0 (0x7fb68f4000)
    libz.so.1 => /usr/lib//libz.so.1 (0x7fb68d0000)
    libpcre2-16.so.0 => /usr/lib//libpcre2-16.so.0 (0x7fb687f000)
    ld-uClibc.so.1 => /lib/ld-uClibc.so.0 (0x7fb6fed000)
    

    What should I further check?

    Pablo J. RoginaP 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Run your application using the de debugger. This should give you more details about what is happening.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mark81
        wrote on last edited by
        #3

        Sorry, I forgot to mention it's the first obvious thing I did. It just showed some disassembled code, even before reach the main entry point.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          Mark81
          wrote on last edited by Mark81
          #4

          The problem was for some reasons Qt5 doesn't like the uClibc system. I had to rebuild with glibc.

          1 Reply Last reply
          0
          • M Mark81

            I cross-compiled Qt5.12 for RPi4 with buildroot.
            When I try to execute a simple hello world project I get a segmentation fault crash.

            Here some info:

            # file foo
            foo: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-uClibc.so.0, not stripped
            
            # ldd foo
            libatomic.so.1 => /lib//libatomic.so.1 (0x7fb6fd6000)
            libQt5Core.so.5 => /usr/lib//libQt5Core.so.5 (0x7fb6b31000)
            libstdc++.so.6 => /usr/lib//libstdc++.so.6 (0x7fb69dd000)
            libgcc_s.so.1 => /lib//libgcc_s.so.1 (0x7fb69bb000)
            libc.so.0 => /lib//libc.so.0 (0x7fb68f4000)
            libz.so.1 => /usr/lib//libz.so.1 (0x7fb68d0000)
            libpcre2-16.so.0 => /usr/lib//libpcre2-16.so.0 (0x7fb687f000)
            ld-uClibc.so.1 => /lib/ld-uClibc.so.0 (0x7fb6fed000)
            

            What should I further check?

            Pablo J. RoginaP Offline
            Pablo J. RoginaP Offline
            Pablo J. Rogina
            wrote on last edited by
            #5

            @Mark81 said in Segmentation fault on RPi4 and buildroot:

            I cross-compiled Qt5.12 for RPi4 with buildroot

            Out of curiosity, did you follow any guide/detailed steps?

            Upvote the answer(s) that helped you solve the issue
            Use "Topic Tools" button to mark your post as Solved
            Add screenshots via postimage.org
            Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

            M 1 Reply Last reply
            0
            • Pablo J. RoginaP Pablo J. Rogina

              @Mark81 said in Segmentation fault on RPi4 and buildroot:

              I cross-compiled Qt5.12 for RPi4 with buildroot

              Out of curiosity, did you follow any guide/detailed steps?

              M Offline
              M Offline
              Mark81
              wrote on last edited by
              #6

              @Pablo-J-Rogina said in Segmentation fault on RPi4 and buildroot:

              Out of curiosity, did you follow any guide/detailed steps?

              None. I've just configured the environment as well as I can.

              Pablo J. RoginaP 1 Reply Last reply
              0
              • M Mark81

                @Pablo-J-Rogina said in Segmentation fault on RPi4 and buildroot:

                Out of curiosity, did you follow any guide/detailed steps?

                None. I've just configured the environment as well as I can.

                Pablo J. RoginaP Offline
                Pablo J. RoginaP Offline
                Pablo J. Rogina
                wrote on last edited by
                #7

                @Mark81 Ok, thanks for the reply.

                And may I asked what have you used?

                1. RPi4 OS
                2. Compiler
                3. EGL/GLES libraries (experimental VC4 driver or Broadcomm backend)
                4. linux-rasp-pi4-g++

                Upvote the answer(s) that helped you solve the issue
                Use "Topic Tools" button to mark your post as Solved
                Add screenshots via postimage.org
                Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                M 1 Reply Last reply
                0
                • Pablo J. RoginaP Pablo J. Rogina

                  @Mark81 Ok, thanks for the reply.

                  And may I asked what have you used?

                  1. RPi4 OS
                  2. Compiler
                  3. EGL/GLES libraries (experimental VC4 driver or Broadcomm backend)
                  4. linux-rasp-pi4-g++
                  M Offline
                  M Offline
                  Mark81
                  wrote on last edited by
                  #8

                  @Pablo-J-Rogina said in Segmentation fault on RPi4 and buildroot:

                  @Mark81 Ok, thanks for the reply.

                  And may I asked what have you used?

                  Here you find the whole configuration: https://forum.qt.io/topic/111081/nothing-shown-running-qml

                  Pablo J. RoginaP 1 Reply Last reply
                  0
                  • M Mark81

                    @Pablo-J-Rogina said in Segmentation fault on RPi4 and buildroot:

                    @Mark81 Ok, thanks for the reply.

                    And may I asked what have you used?

                    Here you find the whole configuration: https://forum.qt.io/topic/111081/nothing-shown-running-qml

                    Pablo J. RoginaP Offline
                    Pablo J. RoginaP Offline
                    Pablo J. Rogina
                    wrote on last edited by
                    #9

                    @Mark81 thanks for your reply.

                    Since I'm not that familiar with Buildroot tool I'll need to check it more closely.

                    Upvote the answer(s) that helped you solve the issue
                    Use "Topic Tools" button to mark your post as Solved
                    Add screenshots via postimage.org
                    Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                    1 Reply Last reply
                    0

                    • Login

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