Help<br><br><div class="gmail_quote">On Fri, Feb 13, 2009 at 5:00 AM,  <span dir="ltr">&lt;<a href="mailto:support-request@lists.openmoko.org">support-request@lists.openmoko.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Send support mailing list submissions to<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:support@lists.openmoko.org">support@lists.openmoko.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="https://lists.openmoko.org/mailman/listinfo/support" target="_blank">https://lists.openmoko.org/mailman/listinfo/support</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:support-request@lists.openmoko.org">support-request@lists.openmoko.org</a><br>
<br>
You can reach the person managing the list at<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:support-owner@lists.openmoko.org">support-owner@lists.openmoko.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of support digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
 &nbsp; 1. Garbage values in Logged System Call (Bilal Mehdi)<br>
 &nbsp; 2. Re: Garbage values in Logged System Call (Joachim Ott)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 12 Feb 2009 05:54:42 -0800 (PST)<br>
From: Bilal Mehdi &lt;<a href="mailto:bilal.mehdi@yahoo.com">bilal.mehdi@yahoo.com</a>&gt;<br>
Subject: Garbage values in Logged System Call<br>
To: openmoko kernel &lt;<a href="mailto:openmoko-kernel@lists.openmoko.org">openmoko-kernel@lists.openmoko.org</a>&gt;, &nbsp; &nbsp; &nbsp; openmoko<br>
 &nbsp; &nbsp; &nbsp; &nbsp;support &lt;<a href="mailto:support@lists.openmoko.org">support@lists.openmoko.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:936270.68940.qm@web110301.mail.gq1.yahoo.com">936270.68940.qm@web110301.mail.gq1.yahoo.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Dear Sir,<br>
<br>
We have been tracing system calls of several processes on openmoko. But we are getting garbage values for some system calls. We are not sure whether the garbage value is an incorrectly logged system call or may be a call that never existed (i.e the system tried to record the system call which was never called). Initially we were trying our own developed application for logging. Seeing this error, we tried &#39;strace&#39; but it also showed same errors.<br>

<br>
Please note that we are seeing this same problem in Freerunner Emulator as well as actual openmoko set.<br>
<br>
The output of strace for &quot;ls&quot; follows:<br>
<br>
execve(&quot;/bin/ls&quot;, [&quot;/bin/ls&quot;], [/* 12 vars */]) = 0<br>
brk(0)????????????????????????????????? = 0x88000<br>
uname({sys=&quot;Linux&quot;, node=&quot;om-gta02&quot;, ...}) = 0<br>
access(&quot;/etc/ld.so.preload&quot;, R_OK)????? = -1 ENOENT (No such file or directory)<br>
open(&quot;/var/run/ld.so.cache&quot;, O_RDONLY)? = 3<br>
fstat64(3, {st_mode=S_IFREG|0644, st_size=12311, ...}) = 0<br>
mmap2(NULL, 12311, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001c000<br>
close(3)??????????????????????????????? = 0<br>
open(&quot;/lib/libm.so.6&quot;, O_RDONLY)??????? = 3<br>
read(3, &quot;\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0p1\0\000&quot;..., 512) = 512<br>
fstat64(3, {st_mode=S_IFREG|0755, st_size=677656, ...}) = 0<br>
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40020000<br>
mmap2(NULL, 708760, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40025000<br>
mprotect(0x400ca000, 28672, PROT_NONE)? = 0<br>
mmap2(0x400d1000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa4) = 0x400d1000<br>
close(3)??????????????????????????????? = 0<br>
open(&quot;/lib/libgcc_s.so.1&quot;, O_RDONLY)??? = 3<br>
read(3, &quot;\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0008!\0\000&quot;..., 512) = 512<br>
fstat64(3, {st_mode=S_IFREG|0644, st_size=41996, ...}) = 0<br>
mmap2(NULL, 72204, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x400d3000<br>
mprotect(0x400dd000, 28672, PROT_NONE)? = 0<br>
mmap2(0x400e4000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x9) = 0x400e4000<br>
close(3)??????????????????????????????? = 0<br>
open(&quot;/lib/libc.so.6&quot;, O_RDONLY)??????? = 3<br>
read(3, &quot;\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\334K\1\000&quot;..., 512) = 512<br>
fstat64(3, {st_mode=S_IFREG|0755, st_size=1136108, ...}) = 0<br>
mmap2(NULL, 1171904, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x400e5000<br>
mprotect(0x401f6000, 32768, PROT_NONE)? = 0<br>
mmap2(0x401fe000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x111) = 0x401fe000<br>
mmap2(0x40201000, 8640, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40201000<br>
close(3)??????????????????????????????? = 0<br>
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40021000<br>
syscall_983045(0x400210d0, 0x400210d0, 0x68c, 0x400217a8, 0x40024060, 0, 0x60, 0xf0005, 0xffff566c, 0x608, 0x40024000, 0xbeabcb6c, 0, 0xbeabc840, 0x40001fa8, 0x40001fc0, 0x20000010, 0x400210d0, 0xc050, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) = 0<br>

mprotect(0x401fe000, 4096, PROT_READ)?? = 0<br>
mprotect(0x400d1000, 4096, PROT_READ)?? = 0<br>
munmap(0x4001c000, 12311)?????????????? = 0<br>
getpid()??????????????????????????????? = 1459<br>
getuid32()????????????????????????????? = 0<br>
gettimeofday({1211513753, 120132}, NULL) = 0<br>
ioctl(0, TIOCGWINSZ, {ws_row=24, ws_col=80, ws_xpixel=0, ws_ypixel=0}) = 0<br>
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0<br>
stat64(&quot;.&quot;, {st_mode=S_IFDIR|S_ISGID|0755, st_size=0, ...}) = 0<br>
brk(0)????????????????????????????????? = 0x88000<br>
brk(0xa9000)??????????????????????????? = 0xa9000<br>
open(&quot;.&quot;, O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3<br>
fstat64(3, {st_mode=S_IFDIR|S_ISGID|0755, st_size=0, ...}) = 0<br>
fcntl64(3, F_SETFD, FD_CLOEXEC)???????? = 0<br>
getdents64(3, /* 4 entries */, 4096)??? = 104<br>
lstat64(&quot;./text&quot;, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0<br>
lstat64(&quot;./test.txt&quot;, {st_mode=S_IFREG|0644, st_size=28, ...}) = 0<br>
getdents64(3, /* 0 entries */, 4096)??? = 0<br>
close(3)??????????????????????????????? = 0<br>
open(&quot;/usr/share/zoneinfo/UTC&quot;, O_RDONLY) = 3<br>
fstat64(3, {st_mode=S_IFREG|0644, st_size=118, ...}) = 0<br>
fstat64(3, {st_mode=S_IFREG|0644, st_size=118, ...}) = 0<br>
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001c000<br>
read(3, &quot;TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\1\0\0&quot;..., 4096) = 118<br>
close(3)??????????????????????????????? = 0<br>
munmap(0x4001c000, 4096)??????????????? = 0<br>
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0<br>
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001c000<br>
write(1, &quot;test.txt? text\n&quot;, 15test.txt? text<br>
)??????? = 15<br>
io_submit(0, 0, 0xfbad2088 &lt;unfinished ... exit status 0&gt;<br>
Process 1459 detached<br>
<br>
To describe the kernel we are using, the output of uname on openmoko set is:<br>
Linux om-gta02 2.6.24 #1 PREEMPT Thu Apr 24 08:23:36 CST 2008 armv4t<br>
<br>
and on emulator is;<br>
Linux fic-gta01 2.6.22.5-moko11 #1 PREEMPT Sat Dec 1 03:40:58 CET 2007 armv4tl<br>
<br>
Kindly advise us how to tackle this problem.<br>
<br>
<br>
<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://lists.openmoko.org/pipermail/support/attachments/20090212/d9709adc/attachment.html" target="_blank">http://lists.openmoko.org/pipermail/support/attachments/20090212/d9709adc/attachment.html</a><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 12 Feb 2009 18:00:45 +0100<br>
From: Joachim Ott &lt;<a href="mailto:jo.omsl@googlemail.com">jo.omsl@googlemail.com</a>&gt;<br>
Subject: Re: Garbage values in Logged System Call<br>
To: <a href="mailto:bilal.mehdi@yahoo.com">bilal.mehdi@yahoo.com</a>, &nbsp; &nbsp; &nbsp;Support for Openmoko Device Owners<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;<a href="mailto:support@lists.openmoko.org">support@lists.openmoko.org</a>&gt;<br>
Cc: openmoko kernel &lt;<a href="mailto:openmoko-kernel@lists.openmoko.org">openmoko-kernel@lists.openmoko.org</a>&gt;<br>
Message-ID:<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;<a href="mailto:d2be2e370902120900s7600ebd5td393fa4cf8f10b7e@mail.gmail.com">d2be2e370902120900s7600ebd5td393fa4cf8f10b7e@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
2009/2/12 Bilal Mehdi &lt;<a href="mailto:bilal.mehdi@yahoo.com">bilal.mehdi@yahoo.com</a>&gt;:<br>
&gt; ...<br>
&gt; mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =<br>
&gt; 0x40021000<br>
&gt; syscall_983045(0x400210d0, 0x400210d0, 0x68c, 0x400217a8, 0x40024060, 0,<br>
&gt; 0x60, 0xf0005, 0xffff566c, 0x608, 0x40024000, 0xbeabcb6c, 0, 0xbeabc840,<br>
&gt; 0x40001fa8, 0x40001fc0, 0x20000010, 0x400210d0, 0xc050, 0, 0, 0, 0, 0, 0, 0,<br>
&gt; 0, 0, 0, 0, 0, 0) = 0<br>
<br>
When you do &quot;strace /bin/ls&quot; n your desktop, you will notice the<br>
following syscall at that position:<br>
<br>
set_thread_area({entry_number:-1 -&gt; 6, base_addr:0xb7d92700,<br>
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,<br>
limit_in_pages:1, seg_not_present:0, useable:1}) = 0<br>
<br>
Maybe the strace on the FR needs an update?<br>
<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
support mailing list<br>
<a href="mailto:support@lists.openmoko.org">support@lists.openmoko.org</a><br>
<a href="https://lists.openmoko.org/mailman/listinfo/support" target="_blank">https://lists.openmoko.org/mailman/listinfo/support</a><br>
<br>
<br>
End of support Digest, Vol 8, Issue 24<br>
**************************************<br>
</blockquote></div><br><br clear="all"><br>-- <br>Sashi<br>