Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved Segmentation fault on RPi4 and buildroot

    Installation and Deployment
    3
    9
    509
    Loading More Posts
    • 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
      Mark81 last edited by

      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. Rogina 1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • M
          Mark81 last edited by

          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 Reply Quote 0
          • M
            Mark81 last edited by Mark81

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

            1 Reply Last reply Reply Quote 0
            • Pablo J. Rogina
              Pablo J. Rogina @Mark81 last edited by

              @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 Reply Quote 0
              • M
                Mark81 @Pablo J. Rogina last edited by

                @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. Rogina 1 Reply Last reply Reply Quote 0
                • Pablo J. Rogina
                  Pablo J. Rogina @Mark81 last edited by

                  @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 Reply Quote 0
                  • M
                    Mark81 @Pablo J. Rogina last edited by

                    @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. Rogina 1 Reply Last reply Reply Quote 0
                    • Pablo J. Rogina
                      Pablo J. Rogina @Mark81 last edited by

                      @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 Reply Quote 0
                      • First post
                        Last post