Segmentation fault on RPi4 and buildroot
-
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?
-
Hi,
Run your application using the de debugger. This should give you more details about what is happening.
-
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?
@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?
-
@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?
@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 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.
@Mark81 Ok, thanks for the reply.
And may I asked what have you used?
- RPi4 OS
- Compiler
- EGL/GLES libraries (experimental VC4 driver or Broadcomm backend)
- linux-rasp-pi4-g++
-
@Mark81 Ok, thanks for the reply.
And may I asked what have you used?
- RPi4 OS
- Compiler
- EGL/GLES libraries (experimental VC4 driver or Broadcomm backend)
- linux-rasp-pi4-g++
@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 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
@Mark81 thanks for your reply.
Since I'm not that familiar with Buildroot tool I'll need to check it more closely.