Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] ICU 51.2 bus error
@ 2014-06-09 15:43 Massimo Callegari
  2014-06-09 16:47 ` Thomas Petazzoni
  0 siblings, 1 reply; 6+ messages in thread
From: Massimo Callegari @ 2014-06-09 15:43 UTC (permalink / raw)
  To: buildroot

Hello buildroot guys,
I'm having a serious issue with ICU 51.2 on a MIPS platform.
Everything builds fine but anyone using ICU at runtime gets a misterious "bus error" fault.
At first I thought it was my Qt 5.3.0 build, but then I realized even the simple "icuinfo" tool fails with the same error.
The root filesystem is mounted on NFS but I hope that's not the cause.


I enclose a strace run of the icuinfo command at the end of this email.
From the trace it seems the lookup of file "/usr/lib/icu/icuplugins51.txt" is the cause of all the evil, but I tried to manually create it and nothing changes.
I double checked on my PC and it doesn't even exist, even though the icuinfo command works properly.

I'm afraid this is a cross-compilation thing, but I can't figure out myself what it might be.
Does anyone have any idea or is able to find the issue from the trace below ?

Thanks in advance !
Massimo


# /mnt/nfs/strace ./icuinfo?
execve("./icuinfo", ["./icuinfo"], [/* 17 vars */]) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0x770d4000
stat("/etc/ld.so.cache", {st_mode=S_IFREG|0644, st_size=64, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY|0x80000) = 3
old_mmap(NULL, 64, PROT_READ, MAP_SHARED, 3, 0) = 0x770d0000
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
open("/lib/libicutu.so.51", O_RDONLY) ? = -1 ENOENT (No such file or directory)
open("/lib/libicutu.so.51", O_RDONLY) ? = -1 ENOENT (No such file or directory)
open("/usr/lib/libicutu.so.51", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=170948, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0x770cf000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0pp\0\000"..., 4096) = 4096
old_mmap(NULL, 430080, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x77053000
old_mmap(0x77053000, 150272, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x77053000
old_mmap(0x77087000, 12552, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x24000) = 0x77087000
old_mmap(0x7708b000, 200384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7708b000
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
munmap(0x770cf000, 4096) ? ? ? ? ? ? ? ?= 0
open("/lib/libicui18n.so.51", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libicui18n.so.51", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libicui18n.so.51", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=2214936, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0x770d1000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0`k\10\000"..., 4096) = 4096
old_mmap(NULL, 2105344, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x76e51000
old_mmap(0x76e51000, 1833948, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x76e51000
old_mmap(0x77020000, 204668, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1bf000) = 0x77020000
old_mmap(0x77052000, 3776, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x77052000
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
munmap(0x770d1000, 4096) ? ? ? ? ? ? ? ?= 0
open("/lib/libicuuc.so.51", O_RDONLY) ? = -1 ENOENT (No such file or directory)
open("/lib/libicuuc.so.51", O_RDONLY) ? = -1 ENOENT (No such file or directory)
open("/usr/lib/libicuuc.so.51", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=1531336, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0x770d1000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\20\f\4"..., 4096) = 4096
old_mmap(NULL, 1495040, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x76ce4000
old_mmap(0x76ce4000, 1293152, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x76ce4000
old_mmap(0x76e30000, 121228, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x13c000) = 0x76e30000
old_mmap(0x76e4e000, 10576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x76e4e000
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
munmap(0x770d1000, 4096) ? ? ? ? ? ? ? ?= 0
open("/lib/libicudata.so.51", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libicudata.so.51", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libicudata.so.51", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=22323120, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0x770d1000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\340\2"..., 4096) = 4096
old_mmap(NULL, 22388736, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7578a000
old_mmap(0x7578a000, 22322688, PROT_READ, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x7578a000
old_mmap(0x76ce3000, 3592, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1549000) = 0x76ce3000
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
munmap(0x770d1000, 4096) ? ? ? ? ? ? ? ?= 0
open("/lib/libpthread.so.0", O_RDONLY) ?= 3
fstat(3, {st_mode=S_IFREG|0755, st_size=101968, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0x770d1000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\20?\0"..., 4096) = 4096
old_mmap(NULL, 151552, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x75765000
old_mmap(0x75765000, 71740, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x75765000
old_mmap(0x75786000, 4916, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x11000) = 0x75786000
old_mmap(0x75788000, 5184, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x75788000
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
munmap(0x770d1000, 4096) ? ? ? ? ? ? ? ?= 0
open("/lib/libdl.so.0", O_RDONLY) ? ? ? = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=13800, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0x770d1000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0P\n\0\000"..., 4096) = 4096
old_mmap(NULL, 81920, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x75751000
old_mmap(0x75751000, 8592, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x75751000
old_mmap(0x75763000, 4304, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2000) = 0x75763000
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
munmap(0x770d1000, 4096) ? ? ? ? ? ? ? ?= 0
open("/lib/libstdc++.so.6", O_RDONLY) ? = -1 ENOENT (No such file or directory)
open("/lib/libstdc++.so.6", O_RDONLY) ? = -1 ENOENT (No such file or directory)
open("/usr/lib/libstdc++.so.6", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=809488, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0x770d1000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\2007\4"..., 4096) = 4096
old_mmap(NULL, 835584, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x75685000
old_mmap(0x75685000, 720752, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x75685000
old_mmap(0x75735000, 87148, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xb0000) = 0x75735000
old_mmap(0x7574b000, 22660, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7574b000
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
munmap(0x770d1000, 4096) ? ? ? ? ? ? ? ?= 0
open("/lib/libm.so.0", O_RDONLY) ? ? ? ?= 3
fstat(3, {st_mode=S_IFREG|0755, st_size=50360, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0x770d1000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0@\22\0"..., 4096) = 4096
old_mmap(NULL, 114688, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x75669000
old_mmap(0x75669000, 44728, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x75669000
old_mmap(0x75684000, 344, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xb000) = 0x75684000
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
munmap(0x770d1000, 4096) ? ? ? ? ? ? ? ?= 0
open("/lib/libgcc_s.so.1", O_RDONLY) ? ?= 3
fstat(3, {st_mode=S_IFREG|0755, st_size=201840, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0x770d1000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\200\306"..., 4096) = 4096
old_mmap(NULL, 225280, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x75632000
old_mmap(0x75632000, 155748, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x75632000
old_mmap(0x75668000, 2404, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x26000) = 0x75668000
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
munmap(0x770d1000, 4096) ? ? ? ? ? ? ? ?= 0
open("/lib/libc.so.0", O_RDONLY) ? ? ? ?= 3
fstat(3, {st_mode=S_IFREG|0755, st_size=721052, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0x770d1000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\220\260"..., 4096) = 4096
old_mmap(NULL, 761856, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x75578000
old_mmap(0x75578000, 665468, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x75578000
old_mmap(0x7562a000, 7944, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xa2000) = 0x7562a000
old_mmap(0x7562c000, 23100, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7562c000
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
munmap(0x770d1000, 4096) ? ? ? ? ? ? ? ?= 0
open("/lib/libicui18n.so.51", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libicui18n.so.51", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libicui18n.so.51", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=2214936, ...}) = 0
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
open("/lib/libicuuc.so.51", O_RDONLY) ? = -1 ENOENT (No such file or directory)
open("/lib/libicuuc.so.51", O_RDONLY) ? = -1 ENOENT (No such file or directory)
open("/usr/lib/libicuuc.so.51", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=1531336, ...}) = 0
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
open("/lib/libicudata.so.51", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libicudata.so.51", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libicudata.so.51", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=22323120, ...}) = 0
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
open("/lib/libpthread.so.0", O_RDONLY) ?= 3
fstat(3, {st_mode=S_IFREG|0755, st_size=101968, ...}) = 0
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
open("/lib/libdl.so.0", O_RDONLY) ? ? ? = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=13800, ...}) = 0
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
open("/lib/libstdc++.so.6", O_RDONLY) ? = -1 ENOENT (No such file or directory)
open("/lib/libstdc++.so.6", O_RDONLY) ? = -1 ENOENT (No such file or directory)
open("/usr/lib/libstdc++.so.6", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=809488, ...}) = 0
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
open("/lib/libm.so.0", O_RDONLY) ? ? ? ?= 3
fstat(3, {st_mode=S_IFREG|0755, st_size=50360, ...}) = 0
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
open("/lib/libgcc_s.so.1", O_RDONLY) ? ?= 3
fstat(3, {st_mode=S_IFREG|0755, st_size=201840, ...}) = 0
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
open("/lib/libc.so.0", O_RDONLY) ? ? ? ?= 3
fstat(3, {st_mode=S_IFREG|0755, st_size=721052, ...}) = 0
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
open("/lib/libicuuc.so.51", O_RDONLY) ? = -1 ENOENT (No such file or directory)
open("/lib/libicuuc.so.51", O_RDONLY) ? = -1 ENOENT (No such file or directory)
open("/usr/lib/libicuuc.so.51", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=1531336, ...}) = 0
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
open("/lib/libicudata.so.51", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libicudata.so.51", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libicudata.so.51", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=22323120, ...}) = 0
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
open("/lib/libpthread.so.0", O_RDONLY) ?= 3
fstat(3, {st_mode=S_IFREG|0755, st_size=101968, ...}) = 0
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
open("/lib/libdl.so.0", O_RDONLY) ? ? ? = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=13800, ...}) = 0
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
open("/lib/libstdc++.so.6", O_RDONLY) ? = -1 ENOENT (No such file or directory)
open("/lib/libstdc++.so.6", O_RDONLY) ? = -1 ENOENT (No such file or directory)
open("/usr/lib/libstdc++.so.6", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=809488, ...}) = 0
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
open("/lib/libm.so.0", O_RDONLY) ? ? ? ?= 3
fstat(3, {st_mode=S_IFREG|0755, st_size=50360, ...}) = 0
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
open("/lib/libgcc_s.so.1", O_RDONLY) ? ?= 3
fstat(3, {st_mode=S_IFREG|0755, st_size=201840, ...}) = 0
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
open("/lib/libc.so.0", O_RDONLY) ? ? ? ?= 3
fstat(3, {st_mode=S_IFREG|0755, st_size=721052, ...}) = 0
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
open("/lib/libicudata.so.51", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libicudata.so.51", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libicudata.so.51", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=22323120, ...}) = 0
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
open("/lib/libpthread.so.0", O_RDONLY) ?= 3
fstat(3, {st_mode=S_IFREG|0755, st_size=101968, ...}) = 0
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
open("/lib/libdl.so.0", O_RDONLY) ? ? ? = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=13800, ...}) = 0
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
open("/lib/libstdc++.so.6", O_RDONLY) ? = -1 ENOENT (No such file or directory)
open("/lib/libstdc++.so.6", O_RDONLY) ? = -1 ENOENT (No such file or directory)
open("/usr/lib/libstdc++.so.6", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=809488, ...}) = 0
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
open("/lib/libm.so.0", O_RDONLY) ? ? ? ?= 3
fstat(3, {st_mode=S_IFREG|0755, st_size=50360, ...}) = 0
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
open("/lib/libgcc_s.so.1", O_RDONLY) ? ?= 3
fstat(3, {st_mode=S_IFREG|0755, st_size=201840, ...}) = 0
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
open("/lib/libc.so.0", O_RDONLY) ? ? ? ?= 3
fstat(3, {st_mode=S_IFREG|0755, st_size=721052, ...}) = 0
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
open("/lib/libdl.so.0", O_RDONLY) ? ? ? = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=13800, ...}) = 0
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
open("/lib/libc.so.0", O_RDONLY) ? ? ? ?= 3
fstat(3, {st_mode=S_IFREG|0755, st_size=721052, ...}) = 0
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
open("/lib/libc.so.0", O_RDONLY) ? ? ? ?= 3
fstat(3, {st_mode=S_IFREG|0755, st_size=721052, ...}) = 0
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
open("/lib/libm.so.0", O_RDONLY) ? ? ? ?= 3
fstat(3, {st_mode=S_IFREG|0755, st_size=50360, ...}) = 0
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
open("/lib/libc.so.0", O_RDONLY) ? ? ? ?= 3
fstat(3, {st_mode=S_IFREG|0755, st_size=721052, ...}) = 0
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
open("/lib/libgcc_s.so.1", O_RDONLY) ? ?= 3
fstat(3, {st_mode=S_IFREG|0755, st_size=201840, ...}) = 0
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
open("/lib/libc.so.0", O_RDONLY) ? ? ? ?= 3
fstat(3, {st_mode=S_IFREG|0755, st_size=721052, ...}) = 0
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
open("/lib/libc.so.0", O_RDONLY) ? ? ? ?= 3
fstat(3, {st_mode=S_IFREG|0755, st_size=721052, ...}) = 0
close(3) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
munmap(0x770d0000, 64) ? ? ? ? ? ? ? ? ?= 0
stat("/lib/ld-uClibc.so.0", {st_mode=S_IFREG|0755, st_size=31672, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0x770d1000
SYS_4283() ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
mprotect(0x75786000, 4096, PROT_READ) ? = 0
mprotect(0x75763000, 4096, PROT_READ) ? = 0
mprotect(0x75735000, 77824, PROT_READ) ?= 0
mprotect(0x7562a000, 4096, PROT_READ) ? = 0
mprotect(0x770d2000, 4096, PROT_READ) ? = 0
SYS_4252() ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 569
SYS_4309() ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0
rt_sigaction(SIGRT_0, {0x8, [], SA_RESTART|SA_INTERRUPT|SA_NOMASK|0x576de94}, NULL, 16) = 0
rt_sigaction(SIGRT_1, {0x10000008, [], SA_RESTART|SA_INTERRUPT|SA_NOMASK|0x576dd70}, NULL, 16) = 0
rt_sigprocmask(SIG_UNBLOCK, [RT_0 RT_1], NULL, 16) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
ioctl(0, TIOCNXCL, {B115200 opost isig icanon echo ...}) = 0
ioctl(1, TIOCNXCL, {B115200 opost isig icanon echo ...}) = 0
brk(0) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?= 0x412000
brk(0x413000) ? ? ? ? ? ? ? ? ? ? ? ? ? = 0x413000
open("/usr/lib/icu/icuplugins51.txt", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
--- SIGBUS (Bus error) @ 0 (0) ---
+++ killed by SIGBUS +++
#
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140609/20e382e0/attachment-0001.html>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] ICU 51.2 bus error
  2014-06-09 15:43 [Buildroot] ICU 51.2 bus error Massimo Callegari
@ 2014-06-09 16:47 ` Thomas Petazzoni
  2014-06-10  9:08   ` Massimo Callegari
  2014-06-11 10:21   ` Massimo Callegari
  0 siblings, 2 replies; 6+ messages in thread
From: Thomas Petazzoni @ 2014-06-09 16:47 UTC (permalink / raw)
  To: buildroot

Dear Massimo Callegari,

On Mon, 9 Jun 2014 16:43:26 +0100 (BST), Massimo Callegari wrote:

> I'm having a serious issue with ICU 51.2 on a MIPS platform.
> Everything builds fine but anyone using ICU at runtime gets a misterious "bus error" fault.
> At first I thought it was my Qt 5.3.0 build, but then I realized even the simple "icuinfo" tool fails with the same error.
> The root filesystem is mounted on NFS but I hope that's not the cause.
> 
> 
> I enclose a strace run of the icuinfo command at the end of this email.
> From the trace it seems the lookup of file "/usr/lib/icu/icuplugins51.txt" is the cause of all the evil, but I tried to manually create it and nothing changes.
> I double checked on my PC and it doesn't even exist, even though the icuinfo command works properly.
> 
> I'm afraid this is a cross-compilation thing, but I can't figure out myself what it might be.
> Does anyone have any idea or is able to find the issue from the trace below ?

First of all, thanks for your report!

Could you run "ulimit -c unlimited" on your target, and then your
command? It will generate a "core" file that you can transfer on your
development machine, and then do:

	./host/usr/mips-<blabla>-gdb -c core target/usr/bin/icuinfo

and then run the "backtrace" command in gdb, to see where the crash
occurred.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] ICU 51.2 bus error
  2014-06-09 16:47 ` Thomas Petazzoni
@ 2014-06-10  9:08   ` Massimo Callegari
  2014-06-10 10:44     ` Massimo Callegari
  2014-06-11 10:21   ` Massimo Callegari
  1 sibling, 1 reply; 6+ messages in thread
From: Massimo Callegari @ 2014-06-10  9:08 UTC (permalink / raw)
  To: buildroot

Hi Thomas,
thanks for the prompt reply !

Feeling very ignorant here....but how do I enable the ulimit command ?
I use busybox 1.22 and it doesn't seem to have it.
I checked I have "ELF core dump" enabled in my kernel. I tried to enable CONFIG_FEATURE_INIT_COREDUMPS on busybox but still no luck.
I tried to see if I can build another shell interpreter in my image but busybox is blocking everyone else.

Is there any trick directed to /proc that can substitute the ulimit -c command ?

Thanks and sorry for the complication...
Massimo


>________________________________
> Da: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
>A: Massimo Callegari <massimocallegari@yahoo.it> 
>Cc: "buildroot at busybox.net" <buildroot@busybox.net> 
>Inviato: Luned? 9 Giugno 2014 18:47
>Oggetto: Re: [Buildroot] ICU 51.2 bus error
> 
>
>Dear Massimo Callegari,
>
>On Mon, 9 Jun 2014 16:43:26 +0100 (BST), Massimo Callegari wrote:
>
>> I'm having a serious issue with ICU 51.2 on a MIPS platform.
>> Everything builds fine but anyone using ICU at runtime gets a misterious "bus error" fault.
>> At first I thought it was my Qt 5.3.0 build, but then I realized even the simple "icuinfo" tool fails with the same error.
>> The root filesystem is mounted on NFS but I hope that's not the cause.
>> 
>> 
>> I enclose a strace run of the icuinfo command at the end of this email.
>> From the trace it seems the lookup of file "/usr/lib/icu/icuplugins51.txt" is the cause of all the evil, but I tried to manually create it and nothing changes.
>> I double checked on my PC and it doesn't even exist, even though the icuinfo command works properly.
>> 
>> I'm afraid this is a cross-compilation thing, but I can't figure out myself what it might be.
>> Does anyone have any idea or is able to find the issue from the trace below ?
>
>First of all, thanks for your report!
>
>Could you run "ulimit -c unlimited" on your target, and then your
>command? It will generate a "core" file that you can transfer on your
>development machine, and then do:
>
>??? ./host/usr/mips-<blabla>-gdb -c core target/usr/bin/icuinfo
>
>and then run the "backtrace" command in gdb, to see where the crash
>occurred.
>
>
>Thanks!
>
>Thomas
>-- 
>Thomas Petazzoni, CTO, Free Electrons
>Embedded Linux, Kernel and Android engineering
>http://free-electrons.com
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140610/776feacd/attachment.html>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] ICU 51.2 bus error
  2014-06-10  9:08   ` Massimo Callegari
@ 2014-06-10 10:44     ` Massimo Callegari
  0 siblings, 0 replies; 6+ messages in thread
From: Massimo Callegari @ 2014-06-10 10:44 UTC (permalink / raw)
  To: buildroot

Ok, this is getting more complicated than I thought.

First things first. The ulimit problem was that it is included in the ash shell, so running the 'busybox' command didn't display it.
I had to type 'ash' and then 'ulimit -c unlimited'. Hitting 'TAB' when into ash doesn't display ulimit either.

So finally I obtained the core file. I analyzed it with gdb and got no relevant information cause it says "no debugging symbols found", even though I built ICU with "--enable-debug --disable-release"
So I though to enable it also on the host-icu and got a build error:

/opt/target/output/host/usr/bin/ccache /usr/bin/g++ -O2 -I/opt/target/output/host/usr/include -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long -std=c++11 ?-L/opt/target/output/host/lib -L/opt/target/output/host/usr/lib -Wl,-rpath,/opt/target/output/host/usr/lib ?-o ../../bin/makeconv makeconv.o ucnvstat.o genmbcs.o gencnvex.o -L../../lib -licutu -L../../lib -licui18n -L../../lib -licuuc -L../../stubdata -licudata -lpthread -ldl -lm ?
makeconv.o: in function "readFile.part.1":
makeconv.c:(.text+0x35b): undefined reference to "uprv_checkValidMemory"
makeconv.c:(.text+0x607): undefined reference to "uprv_checkValidMemory"
makeconv.o: in function "main":
makeconv.c:(.text.startup+0x3e): undefined reference to "uprv_checkValidMemory"
makeconv.c:(.text.startup+0xb26): undefined reference to "uprv_checkValidMemory"
gencnvex.o: in function "getFromUBytesValue.isra.2.part.3":
gencnvex.c:(.text+0xcef): undefined reference to "uprv_checkValidMemory"
collect2: error: ld returned 1 exit status
make[3]: *** [../../bin/makeconv] Error 1
make[3]: uscita dalla directory "/opt/target/output/build/host-icu-51.2/source/tools/makeconv"
make[2]: *** [all-recursive] Error 2
make[2]: uscita dalla directory "/opt/target/output/build/host-icu-51.2/source/tools"
make[1]: *** [all-recursive] Error 2
make[1]: uscita dalla directory "/opt/target/output/build/host-icu-51.2/source"
make: *** [/opt/target/output/build/host-icu-51.2/.stamp_built] Error 2

Basically I'm stuck again.
I hated ICU before and I hate it even more now.

Massimo


>________________________________
> Da: Massimo Callegari <massimocallegari@yahoo.it>
>A: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 
>Cc: "buildroot at busybox.net" <buildroot@busybox.net> 
>Inviato: Marted? 10 Giugno 2014 11:08
>Oggetto: Re: [Buildroot] ICU 51.2 bus error
> 
>
>
>Hi Thomas,
>thanks for the prompt reply !
>
>
>Feeling very ignorant here....but how do I enable the ulimit command ?
>I use busybox 1.22 and it doesn't seem to have it.
>I checked I have "ELF core dump" enabled in my kernel. I tried to enable CONFIG_FEATURE_INIT_COREDUMPS on busybox but still no luck.
>I tried to see if I can build another shell interpreter in my image but busybox is blocking everyone else.
>
>
>Is there any trick directed to /proc that can substitute the ulimit -c command ?
>
>
>Thanks and sorry for the complication...
>Massimo
>
>
>
>>________________________________
>> Da: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
>>A: Massimo Callegari <massimocallegari@yahoo.it> 
>>Cc: "buildroot at busybox.net" <buildroot@busybox.net> 
>>Inviato: Luned? 9 Giugno 2014 18:47
>>Oggetto: Re: [Buildroot] ICU 51.2 bus error
>> 
>>
>>Dear Massimo Callegari,
>>
>>On Mon, 9 Jun 2014 16:43:26 +0100 (BST), Massimo Callegari wrote:
>>
>>> I'm having a serious issue with ICU 51.2 on a MIPS platform.
>>> Everything builds fine but anyone using ICU at runtime gets a misterious "bus error" fault.
>>> At first I thought it was my Qt 5.3.0 build, but then I realized even the simple "icuinfo" tool fails with the same error.
>>> The root filesystem is mounted on NFS but I hope that's not the cause.
>>> 
>>> 
>>> I enclose a strace run of the icuinfo command at the end of this email.
>>> From the trace it seems the lookup of file "/usr/lib/icu/icuplugins51.txt" is the cause of all the evil, but I tried to manually create it and nothing changes.
>>> I double checked on my PC and it doesn't even exist, even though the icuinfo command works properly.
>>> 
>>> I'm afraid this is a cross-compilation thing, but I can't figure out myself what it might be.
>>> Does anyone have any idea or is able to find the issue from the trace below ?
>>
>>First of all, thanks for your report!
>>
>>Could you run "ulimit -c unlimited" on your target, and then your
>>command? It will generate a "core" file that you can transfer on your
>>development machine, and then do:
>>
>>??? ./host/usr/mips-<blabla>-gdb -c core target/usr/bin/icuinfo
>>
>>and then run the "backtrace" command in gdb, to see where the crash
>>occurred.
>>
>>
>>Thanks!
>>
>>Thomas
>>-- 
>>Thomas
 Petazzoni, CTO, Free Electrons
>>Embedded Linux, Kernel and Android engineering
>>http://free-electrons.com
>>
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140610/af4bf51b/attachment.html>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] ICU 51.2 bus error
  2014-06-09 16:47 ` Thomas Petazzoni
  2014-06-10  9:08   ` Massimo Callegari
@ 2014-06-11 10:21   ` Massimo Callegari
  2015-02-07 10:09     ` Thomas Petazzoni
  1 sibling, 1 reply; 6+ messages in thread
From: Massimo Callegari @ 2014-06-11 10:21 UTC (permalink / raw)
  To: buildroot

Hi again. Just a quick update on this.
I tried a lot of flags/configurations and none worked. Unfortunately I haven't been able to obtain a proper core file to debug what's really going on with ICU.
I tried to build versions 52.1 and 53.1 and got the same bus error result.

So I went back in the past and tried version 4.8.1.1 (taken from Buildroot 2013-08) ... and it works !
I might try versions 49 and 50, at least to identify the version that started to cause the issue I'm having.

For now, since ICU is not vital for what I have to do (QtWebKit), I'm happy I've found one version working.

Regards,
Massimo


>________________________________
> Da: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
>A: Massimo Callegari <massimocallegari@yahoo.it> 
>Cc: "buildroot at busybox.net" <buildroot@busybox.net> 
>Inviato: Luned? 9 Giugno 2014 18:47
>Oggetto: Re: [Buildroot] ICU 51.2 bus error
> 
>
>Dear Massimo Callegari,
>
>On Mon, 9 Jun 2014 16:43:26 +0100 (BST), Massimo Callegari wrote:
>
>> I'm having a serious issue with ICU 51.2 on a MIPS platform.
>> Everything builds fine but anyone using ICU at runtime gets a misterious "bus error" fault.
>> At first I thought it was my Qt 5.3.0 build, but then I realized even the simple "icuinfo" tool fails with the same error.
>> The root filesystem is mounted on NFS but I hope that's not the cause.
>> 
>> 
>> I enclose a strace run of the icuinfo command at the end of this email.
>> From the trace it seems the lookup of file "/usr/lib/icu/icuplugins51.txt" is the cause of all the evil, but I tried to manually create it and nothing changes.
>> I double checked on my PC and it doesn't even exist, even though the icuinfo command works properly.
>> 
>> I'm afraid this is a cross-compilation thing, but I can't figure out myself what it might be.
>> Does anyone have any idea or is able to find the issue from the trace below ?
>
>First of all, thanks for your report!
>
>Could you run "ulimit -c unlimited" on your target, and then your
>command? It will generate a "core" file that you can transfer on your
>development machine, and then do:
>
>??? ./host/usr/mips-<blabla>-gdb -c core target/usr/bin/icuinfo
>
>and then run the "backtrace" command in gdb, to see where the crash
>occurred.
>
>
>
>
>
>Thanks!
>
>Thomas
>-- 
>Thomas Petazzoni, CTO, Free Electrons
>Embedded Linux, Kernel and Android engineering
>http://free-electrons.com
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140611/e98411f5/attachment.html>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] ICU 51.2 bus error
  2014-06-11 10:21   ` Massimo Callegari
@ 2015-02-07 10:09     ` Thomas Petazzoni
  0 siblings, 0 replies; 6+ messages in thread
From: Thomas Petazzoni @ 2015-02-07 10:09 UTC (permalink / raw)
  To: buildroot

Hello,

Jumping back to this old topic while trying to clean up some of my
"marked" e-mails.

Vicente, the below is a bug report of a runtime issue regarding ICU on
MIPS. Can you have a look maybe?

Thanks!

Thomas

On Wed, 11 Jun 2014 11:21:57 +0100 (BST), Massimo Callegari wrote:
> Hi again. Just a quick update on this.
> I tried a lot of flags/configurations and none worked. Unfortunately I haven't been able to obtain a proper core file to debug what's really going on with ICU.
> I tried to build versions 52.1 and 53.1 and got the same bus error result.
> 
> So I went back in the past and tried version 4.8.1.1 (taken from Buildroot 2013-08) ... and it works !
> I might try versions 49 and 50, at least to identify the version that started to cause the issue I'm having.
> 
> For now, since ICU is not vital for what I have to do (QtWebKit), I'm happy I've found one version working.
> 
> Regards,
> Massimo
> 
> 
> >________________________________
> > Da: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> >A: Massimo Callegari <massimocallegari@yahoo.it> 
> >Cc: "buildroot at busybox.net" <buildroot@busybox.net> 
> >Inviato: Luned? 9 Giugno 2014 18:47
> >Oggetto: Re: [Buildroot] ICU 51.2 bus error
> > 
> >
> >Dear Massimo Callegari,
> >
> >On Mon, 9 Jun 2014 16:43:26 +0100 (BST), Massimo Callegari wrote:
> >
> >> I'm having a serious issue with ICU 51.2 on a MIPS platform.
> >> Everything builds fine but anyone using ICU at runtime gets a misterious "bus error" fault.
> >> At first I thought it was my Qt 5.3.0 build, but then I realized even the simple "icuinfo" tool fails with the same error.
> >> The root filesystem is mounted on NFS but I hope that's not the cause.
> >> 
> >> 
> >> I enclose a strace run of the icuinfo command at the end of this email.
> >> From the trace it seems the lookup of file "/usr/lib/icu/icuplugins51.txt" is the cause of all the evil, but I tried to manually create it and nothing changes.
> >> I double checked on my PC and it doesn't even exist, even though the icuinfo command works properly.
> >> 
> >> I'm afraid this is a cross-compilation thing, but I can't figure out myself what it might be.
> >> Does anyone have any idea or is able to find the issue from the trace below ?
> >
> >First of all, thanks for your report!
> >
> >Could you run "ulimit -c unlimited" on your target, and then your
> >command? It will generate a "core" file that you can transfer on your
> >development machine, and then do:
> >
> >??? ./host/usr/mips-<blabla>-gdb -c core target/usr/bin/icuinfo
> >
> >and then run the "backtrace" command in gdb, to see where the crash
> >occurred.
> >
> >
> >
> >
> >
> >Thanks!
> >
> >Thomas
> >-- 
> >Thomas Petazzoni, CTO, Free Electrons
> >Embedded Linux, Kernel and Android engineering
> >http://free-electrons.com
> >
> >
> >
> >



-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-02-07 10:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-09 15:43 [Buildroot] ICU 51.2 bus error Massimo Callegari
2014-06-09 16:47 ` Thomas Petazzoni
2014-06-10  9:08   ` Massimo Callegari
2014-06-10 10:44     ` Massimo Callegari
2014-06-11 10:21   ` Massimo Callegari
2015-02-07 10:09     ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox