Hello,
I have an XServer ported to ARM. When I start the server it completes without error and sits waiting for connections. The touch screen is instrumented to show i/o for up/down events. If I touch, these events appear in the log. When I try start an app (twm, ico, etc) the server sees the connection (strace shows it):
select(256, [1 3 4 6], NULL, NULL, {599, 991000}) = 0 (Timeout)
setitimer(ITIMER_REAL, {it_interval={0, 20000}, it_value={0, 20000}}, NULL) = 0
gettimeofday({1186747837, 776692}, NULL) = 0
ioctl(5, FBIOBLANK, 0x1) = 0
select(256, [1 3 4 6], NULL, NULL, {599, 993000}) = ? ERESTARTNOHAND (To be restarted)
--- SIGALRM (Alarm clock) @ 0 (0) ---
setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
sigreturn() = ? (mask now [])
gettimeofday({1186747837, 806751}, NULL) = 0
select(256, [1 3 4 6], NULL, NULL, {599, 963000}) = 1 (in [3], left {532, 860000})
setitimer(ITIMER_REAL, {it_interval={0, 20000}, it_value={0, 20000}}, NULL) = 0
gettimeofday({1186747904, 923459}, NULL) = 0
accept(3, {sa_family=AF_FILE, path=@}, [2]) = 7
fcntl64(7, F_GETFL) = 0x2 (flags O_RDWR)
fcntl64(7, F_SETFL, O_RDWR|O_NONBLOCK) = 0
gettimeofday({1186747904, 924089}, NULL) = 0
select(256, [1 3 4 6 7], NULL, NULL, {532, 845000}) = 1 (in [7], left {532, 830000})
read(7, "l\0\v\0\0\0\22\0\20\0\0\0MIT-MAGIC-COOKIE-1\0\0"..., 4092) = 48
select(256, [1 3 4 6], NULL, NULL, {0, 0}) = 0 (Timeout)
stat64("/var/Xauthority", {st_mode=S_IFREG|0600, st_size=321, ...}) = 0
pipe([8, 9]) = 0
fork() = 3536
rt_sigprocmask(SIG_BLOCK, [ALRM TSTP TTIN TTOU VTALRM WINCH IO], [], 8) = 0
fcntl64(8, F_GETFL) = 0 (flags O_RDONLY)
fstat64(8, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
_llseek(8, 0, 0xbed7869c, SEEK_CUR) = -1 ESPIPE (Illegal seek)
close(9) = 0
read(8, "\1\0\0\rrtpscorpion06\0\0010\0\22MIT-MAGIC-"..., 4096) = 321
read(8, "", 4096) = 0
close(8) = 0
munmap(0x40017000, 4096) = 0
wait4(3536, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 3536
--- SIGCHLD (Child exited) @ 0 (0) ---
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGALRM (Alarm clock) @ 0 (0) ---
sigreturn() = ? (mask now [])
gettimeofday({1186747905, 55209}, NULL) = 0
select(256, [1 3 4 6 7], NULL, NULL, {532, 714000}) = ? ERESTARTNOHAND (To be restarted)
--- SIGALRM (Alarm clock) @ 0 (0) ---
setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
sigreturn() = ? (mask now [])
gettimeofday({1186747905, 66727}, NULL) = 0
select(256, [1 3 4 6 7], NULL, NULL, {532, 703000}
However the program (ico) does not respond because it is blocked waiting on a response from the server (?):
connect(3, {sa_family=AF_FILE, path="/tmp/.X11-unix/X0"}, 19) = 0
uname({sys="Linux", node="rtpscorpion06", ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
access("/var/Xauthority", R_OK) = 0
open("/var/Xauthority", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0600, st_size=321, ...}) = 0
old_mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
read(4, "\1\0\0\rrtpscorpion06\0\0010\0\22MIT-MAGIC-"..., 8192) = 321
read(4, "", 8192) = 0
close(4) = 0
munmap(0x40017000, 8192) = 0
writev(3, [{"l\0\v\0\0\0\22\0\20\0\0\0", 12}, {"MIT-MAGIC-COOKIE-1", 18}, {"\0\0", 2}, {"\222\3041\213\247\235\23\266 \'2\204\245\215\363\1", 16}], 4) = 48
fcntl64(3, F_GETFL) = 0x2 (flags O_RDWR)
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
read(3, 0xbeeacc78, 8) = -1 EAGAIN (Resource temporarily unavailable)
select(4, [3], NULL, NULL, NULL
Help would be great, kinda stuck here.
Thanks
Joe