View Single Post
Posts: 98 | Thanked: 44 times | Joined on Mar 2010 @ Netherlands
#257
Originally Posted by thomasjfox View Post
Thanks for the screenshot. There are two easy ways to trace this down.

1. Start rockbox as root. May be it's a permission issue.
The binary is located in /opt/rockbox/bin/rockbox.

2. Install strace and capture the rockbox output.
Example command:
Code:
strace /opt/rockbox/bin/rockbox 2>&1 |grep -v clock_gettime |grep -v futex
Thx, I did the above mentioned.
The output is: several read-only messages? I can't make chocolate of this. I think I need basic info on rights management.

Ad 1. This fails. Rockbox is present however.
Code:
/opt/rockbox/bin # rockbox
/bin/sh: rockbox: not found
Ad 2. Example command entered. I see Rockbox boot logo for an instance, then it closes down. Output is loong:
Code:
mmap2(NULL, 1196468, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40512000
mprotect(0x40629000, 32768, PROT_NONE)  = 0
mmap2(0x40631000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x117) = 0x40631000
mmap2(0x40634000, 8628, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40634000
close(3)                                = 0
open("/usr/lib/libasound.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\20\321\1\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=769344, ...}) = 0
mmap2(NULL, 768144, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40637000
mmap2(0x406ef000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb8) = 0x406ef000
close(3)                                = 0
open("/usr/lib/libpulse-simple.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0l\r\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=8772, ...}) = 0
mmap2(NULL, 40284, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x406f3000
mprotect(0x406f5000, 28672, PROT_NONE)  = 0
mmap2(0x406fc000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0x406fc000
close(3)                                = 0
open("/usr/lib/libpulse.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\360v\0\0004\0\0\0"..., 512) = 512
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40020000
fstat64(3, {st_mode=S_IFREG|0644, st_size=131712, ...}) = 0
mmap2(NULL, 162340, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x406fd000
mprotect(0x4071c000, 32768, PROT_NONE)  = 0
mmap2(0x40724000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1f) = 0x40724000
close(3)                                = 0
open("/usr/lib/libz.so.1", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\354\26\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=65476, ...}) = 0
mmap2(NULL, 96956, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40725000
mprotect(0x40735000, 28672, PROT_NONE)  = 0
mmap2(0x4073c000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf) = 0x4073c000
close(3)                                = 0
open("/usr/lib/libpulsecommon-0.9.15.so", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\200\242\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=163496, ...}) = 0
mmap2(NULL, 195252, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4073d000
mprotect(0x40764000, 32768, PROT_NONE)  = 0
mmap2(0x4076c000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x27) = 0x4076c000
close(3)                                = 0
open("/usr/lib/libgdbm.so.3", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0(\17\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=19320, ...}) = 0
--- SIGWINCH (Window changed) @ 0 (0) ---
mmap2(NULL, 50812, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4076d000
mprotect(0x40772000, 28672, PROT_NONE)  = 0
mmap2(0x40779000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4) = 0x40779000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40021000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40022000
set_tls(0x40022180, 0x40023000, 0x400228d8, 0x40022858, 0x40024050) = 0
mprotect(0x40631000, 4096, PROT_READ)   = 0
mprotect(0x40202000, 4096, PROT_READ)   = 0
mprotect(0x401a4000, 4096, PROT_READ)   = 0
mprotect(0x40111000, 57344, PROT_READ|PROT_WRITE) = 0
mprotect(0x40111000, 57344, PROT_READ|PROT_EXEC) = 0
cacheflush(0x40111000, 0x4011f000, 0, 0xbee06678, 0) = 0
mprotect(0x400af000, 4096, PROT_READ)   = 0
mprotect(0x400a4000, 4096, PROT_READ)   = 0
munmap(0x40025000, 42741)               = 0
set_tid_address(0x40021d28)             = 10365
set_robust_list(0x40021d30, 0xc)        = 0
rt_sigaction(SIGRTMIN, {0x4018be88, [], SA_SIGINFO|0x4000000}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x4018bd58, [], SA_RESTART|SA_SIGINFO|0x4000000}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=2048*1024, rlim_max=2048*1024}) = 0
sched_getparam(10365, { 0 })            = 0
sched_getscheduler(10365)               = 0 (SCHED_OTHER)
clock_getres(CLOCK_MONOTONIC, {0, 1})   = 0
sched_get_priority_min(SCHED_OTHER)     = 0
sched_get_priority_max(SCHED_OTHER)     = 0
sched_get_priority_max(SCHED_OTHER)     = 0
brk(0)                                  = 0xb4e000
brk(0xb6f000)                           = 0xb6f000
gettimeofday({1324551939, 293642}, NULL) = 0
open("/usr/lib/charset.alias", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/locale.alias", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
gettimeofday({1324551939, 318178}, NULL) = 0
mmap2(NULL, 2097152, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4077a000
mprotect(0x4077a000, 4096, PROT_NONE)   = 0
clone(child_stack=0x40978fe8, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x409794d8, tls=0x40979930, child_tidptr=0x409794d8) = 10366
rt_sigaction(SIGSEGV, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGSEGV, {0x400b6d4c, [], 0x4000000 /* SA_??? */}, NULL, 8) = 0
rt_sigaction(SIGBUS, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGBUS, {0x400b6d4c, [], 0x4000000 /* SA_??? */}, NULL, 8) = 0
rt_sigaction(SIGFPE, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGFPE, {0x400b6d4c, [], 0x4000000 /* SA_??? */}, NULL, 8) = 0
rt_sigaction(SIGQUIT, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, {0x400b6d4c, [], 0x4000000 /* SA_??? */}, NULL, 8) = 0
rt_sigaction(SIGALRM, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGALRM, {SIG_IGN, [], 0x4000000 /* SA_??? */}, NULL, 8) = 0
mmap2(NULL, 2097152, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4097a000
mprotect(0x4097a000, 4096, PROT_NONE)   = 0
clone(child_stack=0x40b78fe8, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x40b794d8, tls=0x40b79930, child_tidptr=0x40b794d8) = 10367
gettimeofday({1324551939, 920321}, NULL) = 0
gettimeofday({1324551939, 920778}, NULL) = 0
mkdir("/home/user/.config", 0777)       = -1 EEXIST (File exists)
mkdir("/home/user/.config/rockbox.org", 0777) = -1 EEXIST (File exists)
mkdir("/home/user/.config/rockbox.org/rocks.data", 0777) = -1 EEXIST (File exists)
mmap2(NULL, 770048, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40f89000
write(4, "\211\3\n\0\f\0\340\4\r\0\340\4 \3\340\1\0\0\0\0 \3\340\1\0\0\0\0\20\2\0-"..., 44) = 44
read(4, "\1\1\16\0\0\0\0\0\2\0\340\4l\352\n\0P\21c\0\0\0\0\0\340~\0\0\340~\0\0", 32) = 32
open("/home/user/.config/rockbox.org/nvram.bin", O_RDONLY) = 7
close(7)                                = 0
open("/home/user/.config/rockbox.org/nvram.bin", O_RDONLY) = 7
read(7, "Rb\6\5\372Z\224\30\10\0\0\0\334\337\277\2\363;\0\0\363;\0\0\2\0\0\0\0\0\0\0"..., 44) = 44
close(7)                                = 0
open("/home/user/.config/rockbox.org/config.cfg", O_RDONLY) = 7
close(7)                                = 0
open("/home/user/.config/rockbox.org/config.cfg", O_RDONLY) = 4
read(4, "# .", 3)                       = 3
lseek(4, 0, SEEK_SET)                   = 0
read(4, "#", 1)                         = 1
read(4, " ", 1)                         = 1
read(4, ".", 1)                         = 1
read(4, "c", 1)                         = 1
read(4, "f", 1)                         = 1
read(4, "g", 1)                         = 1
read(4, " ", 1)                         = 1
read(4, "f", 1)                         = 1
read(4, "i", 1)                         = 1
read(4, "l", 1)                         = 1
read(4, "e", 1)                         = 1
read(4, " ", 1)                         = 1
read(4, "c", 1)                         = 1
read(4, "r", 1)                         = 1
read(4, "e", 1)                         = 1
read(4, "a", 1)                         = 1
read(4, "t", 1)                         = 1
read(4, "e", 1)                         = 1
read(4, "d", 1)                         = 1
read(4, " ", 1)                         = 1
read(4, "b", 1)                         = 1
read(4, "y", 1)                         = 1
read(4, " ", 1)                         = 1
read(4, "r", 1)                         = 1
read(4, "o", 1)                         = 1
read(4, "c", 1)                         = 1
read(4, "k", 1)                         = 1
read(4, "b", 1)                         = 1
read(4, "o", 1)                         = 1
read(4, "x", 1)                         = 1
read(4,  <unfinished ...>
+++ killed by SIGSEGV +++
Segmentation fault
/home/user #