Illegal instruction - QT_MGE_P - Aborted
-
Hello,
My app aborts with the following output:
@QT_MGE_P
Aborted@
I cannot find any information about this error in google.
It works well in a qemu vm withPlatform:
Qt 5.3
linux 3.14.0-yocto-standard
IOWA-LX-600 board
Using platform linuxfbIf anyone could give a hint of what could be wrong, I would appreciate it.
Thanks.
UPDATE
I forgot to mention that the Qt libraries and binaries are in my host machine. Both VM and target access them as NFS.
From the strace outputs I noticed that the paths are being truncated in the target.
Target:
@stat64("/homot/.", 0xbfe2e790) = -1 ENOENT (No such file or directory)
stat64("/etc/QtP", 0xbfe2e790) = -1 ENOENT (No such file or directory)
stat64("/proc/574/exe", {st_mode=S_IFREG|0755, st_size=21766, ...}) = 0
lstat64("/proc/574/exe", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
lstat64("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
lstat64("/proc/574", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
lstat64("/proc/574/exe", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
readlink("/proc/574/exe", "/home/root/QtProjects/build-simp"..., 4095) = 65
lstat64("/home", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat64("/home/root", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat64("/home/root/QtProjects", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/root/QtProjects/build-simple-Qt5_3_32_custom-Release", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/root/QtProjects/build-simple-Qt5_3_32_custom-Release/simple", {st_mode=S_IFREG|0755, st_size=21766, ...}) = 0
stat64("/home/ro", 0xbfe2e600) = -1 ENOENT (No such file or directory)
stat64("/home/roo", 0xbfe2dff0) = -1 ENOENT (No such file or directory)
stat64("/home/Qto", 0xbfe2e220) = -1 ENOENT (No such file or directory)
lstat64("/home", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat64("/home/ro", 0xbfe2e290) = -1 ENOENT (No such file or directory)
stat64("", 0xbfe2e1d0) = -1 ENOENT (No such file or directory)
write(2, "QT_MGE_P", 8) = 8
write(2, "Thislica\n", 9) = 9
@Vm:
@stat64("/home/root/.config/QtProject/qtlogging.ini", 0xbf889600) = -1 ENOENT (No such file or directory)
stat64("/etc/xdg/QtProject/qtlogging.ini", 0xbf889600) = -1 ENOENT (No such file or directory)
stat64("/proc/334/exe", {st_mode=S_IFREG|0755, st_size=21766, ...}) = 0
lstat64("/proc/334/exe", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
lstat64("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
lstat64("/proc/334", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
lstat64("/proc/334/exe", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
readlink("/proc/334/exe", "/home/root/QtProjects/build-simp"..., 4095) = 65
lstat64("/home", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat64("/home/root", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat64("/home/root/QtProjects", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/root/QtProjects/build-simple-Qt5_3_32_custom-Release", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/root/QtProjects/build-simple-Qt5_3_32_custom-Release/simple", {st_mode=S_IFREG|0755, st_size=21766, ...}) = 0
stat64("/home/root/QtProjects/build-simple-Qt5_3_32_custom-Release/qt.conf", 0xbf889470) = -1 ENOENT (No such file or directory)
stat64("/home/root/QtProjects/build-simple-Qt5_3_32_custom-Release/qt.conf", 0xbf888e60) = -1 ENOENT (No such file or directory)
stat64("/home/Qt/Qt5.3-custom/plugins", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat64("/home/Qt", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat64("/home/Qt/Qt5.3-custom", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/Qt/Qt5.3-custom/plugins", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat64("/home/root", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat64("/home/root/QtProjects", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/root/QtProjects/build-simple-Qt5_3_32_custom-Release", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/root/QtProjects/build-simple-Qt5_3_32_custom-Release", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
write(2, "QFactoryLoader::QFactoryLoader()"..., 103) = 103
stat64("/home/Qt/Qt5.3-custom/plugins/platforms/.", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
openat(AT_FDCWD, "/home/Qt/Qt5.3-custom/plugins/platforms", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 3
fcntl64(3, F_GETFD) = 0x1 (flags FD_CLOEXEC)
statfs("/home/Qt/Qt5.3-custom/plugins/platforms/", {f_type="NFS_SUPER_MAGIC", f_bsize=524288, f_blocks=105677, f_bfree=26146, f_bavail=20778, f_files=3440640, f_ffree=2651094, f_fsid={0, 0}, f_namelen=255, f_frsize=524288}) = 0
@Any thoughts?
UPDATE
I moved all Qt related files to target local storage thinking that NFS was messing something up, and now i get a new message instead of the previous ones:
@Illegal instruction@
But strace output still shows crippled paths.
Seems it's something to do with libraries perhaps because I crosscopiled for x86-32bits in 64bits host
I'm changing the post's title.This is my configuration file
@./configure
-release
-opensource
-prefix /home/devel/Qt5.3-custom
-confirm-license
-platform linux-g++-32
-system-proxies
-no-largefile
-no-xcb
-qt-xkbcommon
-qt-freetype
-qt-libjpeg
-qt-libpng
-nomake examples
-nomake tests
-no-opengl
-skip qtquick1
-skip qtquickcontrols
-skip qtdeclarative
-skip qtwebkit
-skip qtlocation
-skip qtandroidextras
-skip qtjsondb
-skip qtsensors
-skip qtwebkit-examples
-skip qtwayland
-skip qtwinextras
-skip qtmacextras
@ -
Seems solved by disabling glibc, taken from this bug report
"bug":https://bugzilla.redhat.com/show_bug.cgi?id=579838