improper output when executing program via strace on armhf device
Rune Kjær Svendsen
runesvend at gmail.com
Sun Jan 20 13:53:57 UTC 2013
Hi list
I'm using strace running in Ubuntu on a Samsung ARM chromebook. It's using
the 3.4.0 kernel from here:
http://git.chromium.org/gitweb/?p=chromiumos/third_party/kernel.git (the
one the comes with Chrome OS).
When I run a program that is executed via strace, I see a lot of "stray
syscall entry/exit" messages, and the paths of the filenames reported by
the -eopen filter aren't present. I'm attaching the full output of "strace
ls" to this mail. Here's a snippet of the output. I've cut away all of the
"pid <pid> stray syscall [...]" messages from this snipped. 332 lines out
of the 513 line output are "stray syscall" messages.
execve("/bin/ls", ["ls"], [/* 48 vars */]) = 0
0) = 0 ) = 2123660776 NULL, W_OK|0x7e948528) = 1996202304 0xfffffffe, 0,
PROT_NONE, MAP_FILE, 0, 0) = 0 "d\20\374v\360\236\373v", 0x2000 /* ?_OK */)
= 1996199908 0xfffffffe, O_RDONLY|0x4) = 1996202212 3, ) = 3 NULL,
2123659752, PROT_READ, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0 1996042240) =
3 NULL, R_OK|X_OK|0x11e38) = 1996202304 0xfffffffe, O_RDONLY) = 1996078401
3, ) = 3 512, 2123660028, 0x200 /* SEEK_??? */) = 3 74628, ) = 3 1080,
2123658712, 0x438 /* SEEK_??? */) = 3 74308, ) = 3 55, ) = 3 NULL,
2123659824, PROT_READ|PROT_WRITE|PROT_EXEC|0x30, MAP_PRIVATE, 3, 0) = 0
0x76f78000, 109488, PROT_READ|PROT_EXEC) = 1996005376 NULL, 28672,
PROT_NONE, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x76f91000 1996034048) = 3
NULL, 0x2000 /* ?_OK */) = 1996202304 0xfffffffe, O_RDONLY) = 1996078829 3,
) = 3 512, 2123660004, 0x200 /* SEEK_??? */) = 3 21224, ) = 3 1320,
2123658448, 0x528 /* SEEK_??? */) = 3 20832, ) = 3 53, ) = 3 NULL,
2123659800, PROT_READ|PROT_EXEC|0x30, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE,
3, 0x11) = 0 0x76fc0000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0 0x76f6a000, 53780,
PROT_READ|PROT_EXEC) = 1995894784 NULL, 28672, PROT_NONE,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x76f76000 1995923456) = 3 NULL, 0x2000
/* ?_OK */) = 1996202304 0xfffffffe, O_RDONLY) = 1996110982 3, ) = 3 512,
2123659980, 0x200 /* SEEK_??? */) = 3 21104, ) = 3 1040, 2123658704, 0x410
/* SEEK_??? */) = 3 20760, ) = 3 53, ) = 3 NULL, 2123659776,
PROT_READ|PROT_EXEC|0x30, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4) = 0
0x76f5c000, 53552, PROT_READ|PROT_EXEC) = 1995837440 NULL, 28672,
PROT_NONE, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x76f68000 1995866112) = 3
NULL, 0x2000 /* ?_OK */) = 1996202304 0xfffffffe, O_RDONLY) = 1996099918 3,
) = 3 512, 2123659956, 0x200 /* SEEK_??? */) = 3 103000, ) = 3 1120,
2123658600, 0x460 /* SEEK_??? */) = 3 102664, ) = 3 53, ) = 3 NULL,
2123659752, PROT_READ|PROT_EXEC|0x30, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE,
3, 0x4) = 0 0x76f3a000, 135488, PROT_READ|PROT_EXEC) = 1995780096 NULL,
28672, PROT_NONE, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x76f5a000 1995808768)
= 3 NULL, 0x2000 /* ?_OK */) = 1996202304 0xfffffffe, O_RDONLY) =
1996107960 3, ) = 3 512, 2123659932, 0x200 /* SEEK_??? */) = 3 888772, ) =
3 1360, 2123658336, 0x550 /* SEEK_??? */) = 3 888332, ) = 3 51, ) = 3 NULL,
2123659728, PROT_READ|PROT_WRITE|0x30, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE,
3, 0x18) = 0 0x76e56000, 931208, PROT_READ|PROT_EXEC) = 1995620352 NULL,
32768, PROT_NONE, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x76f34000 0x76f34000,
12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd6)
= 0x76f37000 1995665408) = 3 NULL, 0x2588 /* ?_OK */) = 1996202304
0xfffffffe, O_RDONLY) = 1996104011 3, ) = 3 512, 2123659748, 0x200 /*
SEEK_??? */) = 3 8656, ) = 3 1160, 2123658352, 0x488 /* SEEK_??? */) = 3
8320, ) = 3 53, ) = 3 NULL, 2123659544, PROT_READ|PROT_EXEC|0x30,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0 0x76e4b000, 41136,
PROT_READ|PROT_EXEC) = 1994706944 NULL, 28672, PROT_NONE,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x76e54000 1994735616) = 3 NULL, 0x2000
/* ?_OK */) = 1996202304 0xfffffffe, O_RDONLY) = 1996080991 3, ) = 3 512,
2123659572, 0x200 /* SEEK_??? */) = 3 66332, ) = 3 1400, 2123657936, 0x578
/* SEEK_??? */) = 3 65924, ) = 3 53, ) = 3 NULL, 2123659368,
PROT_READ|PROT_EXEC|0x30, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0
0x76fbf000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0 0x76e30000, 107024, PROT_READ|PROT_EXEC) = 1994653696 NULL, 28672,
PROT_NONE, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x76e47000 0x76e47000, 8192,
PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf) =
0x76e49000 1994690560) = 3 NULL, 0x1210 /* ?_OK */) = 1996202304
0xfffffffe, O_RDONLY) = 1996109811 3, ) = 3 512, 2123659548, 0x200 /*
SEEK_??? */) = 3 12744, ) = 3 1040, 2123658272, 0x410 /* SEEK_??? */) = 3
12424, ) = 3 55, ) = 3 NULL, 2123659344,
PROT_READ|PROT_WRITE|PROT_EXEC|0x30, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS,
-1, 0) = 0 0x76e24000, 45200, PROT_READ|PROT_EXEC) = 1994551296 NULL,
28672, PROT_NONE, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x76e2e000 1994579968)
= 3 NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE,
3, 0x2) = 0 0x76fbe000, 0x1000, 0x3, 0x22, 0xffffffff, 0) = 1996219584 0,
1996221416, PROT_SEM|PROT_GROWSUP|0x74fc4040) = 1995653120 0, 8192,
PROT_READ) = 1994579968 0, 4096, PROT_READ) = 1994682368 0, 4096,
PROT_READ) = 1994735616 0, 4096, PROT_READ) = 1995808768 0, 4096,
PROT_READ) = 1995866112 0, 4096, PROT_READ) = 1995923456 0, 4096,
PROT_READ) = 1996034048 0, 4096, PROT_READ) = 131072 0, 4096, PROT_READ) =
1996238848 0, 4096) = 1996042240 0, 0x11e3d) = 1996218472 0x135b) =
1996218480 SIG_0, {...}, ) = 32 SIG_0, {0x76e34c0d, [],
SA_RESTART|SA_SIGINFO|0x4000000}, ) = 33 SIG_BLOCK, [HUP QUIT ILL SEGV USR2
TERM CHLD CONT TTOU URG XCPU VTALRM PROF IO PWR SYS RT_3 RT_27 RT_29], ) =
1 RLIMIT_CPU, ) = 3 NULL, 2123662140, ) = 1995993976 0xfffffffe, 88, ) =
1995993992 0) = 0 0x534000) = 0x555000 0x555000, O_RDONLY|O_CREAT|0x18,
017645101220) = 1995993944 3, ) = 3 NULL, 2123661920,
PROT_WRITE|PROT_EXEC|0x1b0, 0x8 /* MAP_??? */, 1996225616, 0) = 0
1996214272, ) = 3 290, ) = 3 0) = 3 0, 1996214272) = 1996214272 NULL,
O_RDONLY|O_DSYNC) = 1995563944 3, ) = 3 NULL, 1995665232,
PROT_GROWSUP|0x74f36f40, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0 1992929280)
= 3 NULL,
O_RDONLY|O_CREAT|O_EXCL|O_NOCTTY|O_TRUNC|O_APPEND|O_NOFOLLOW|O_CLOEXEC|0x100030,
01) = 2123660032 3, 0x80000 /* F_??? */) = 3 1, ) = 3 NULL, 2123659760,
0x80 /* PROT_??? */, MAP_PRIVATE, 3, 0) = 0 1996214272, ) = 3 2570, ) = 3
0) = 3 0, 1996214272) = 1996214272 NULL, O_RDONLY|O_DSYNC) = 5455880
0xfffffffe, O_RDONLY|O_CLOEXEC) = 5455960 -2, 0x80000) = 1 -22,
SNDCTL_TMR_TIMEBASE or TCGETS) = 1 -22, 0x5413,
O_RDONLY|O_EXCL|O_TRUNC|O_APPEND|O_NONBLOCK|O_SYNC|O_ASYNC|O_DIRECTORY|O_NOATIME|0x7e800020)
= -1 ENETDOWN (Network is down) 3, ) = 3 1656, ) = 3 0) = 3 0, ) = 1 NULL,
2123651496, 0x8000 /* PROT_??? */, MAP_FILE, -1, 0) = 0 1996214272, 0x1000,
3) = 1 Desktop Documents Downloads Music Pictures Public Templates Videos
chromeos-rootfs chromeos-rootfs.tar.gz code fontconfig lost+found 133) = 1
0, 1996214272) = 1996214272 0) = 2 0) = ? ) = 0
Can anyone tell me what's going on here?
Thanks :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20130120/bd12967f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: strace-ls.log
Type: application/octet-stream
Size: 20486 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20130120/bd12967f/attachment.obj>
More information about the Strace-devel
mailing list