Ticket #7263: nvram_get

File nvram_get, 4.1 KB (added by Sami Olmari <jaarli@…>, 8 years ago)

strace of 'nvram get'

Line 
1execve("/usr/sbin/nvram", ["nvram", "get"], [/* 8 vars */]) = 0
2old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaad000
3stat("/etc/ld.so.cache", 0x7fe8bb00)    = -1 ENOENT (No such file or directory)
4open("/lib/libnvram.so.0.1", O_RDONLY)  = -1 ENOENT (No such file or directory)
5open("/lib/libnvram.so.0.1", O_RDONLY)  = -1 ENOENT (No such file or directory)
6open("/usr/lib/libnvram.so.0.1", O_RDONLY) = 3
7fstat(3, {st_mode=S_IFREG|0755, st_size=9535, ...}) = 0
8old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaae000
9read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\240\n\0\0004\0\0\0"..., 4096) = 4096
10old_mmap(NULL, 77824, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aabe000
11old_mmap(0x2aabe000, 9320, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2aabe000
12old_mmap(0x2aad0000, 1343, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2000) = 0x2aad0000
13close(3)                                = 0
14munmap(0x2aaae000, 4096)                = 0
15open("/lib/libgcc_s.so.1", O_RDONLY)    = 3
16fstat(3, {st_mode=S_IFREG|0644, st_size=64811, ...}) = 0
17old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaae000
18read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\340\33\0\0004\0\0\0"..., 4096) = 4096
19old_mmap(NULL, 131072, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aad1000
20old_mmap(0x2aad1000, 62732, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2aad1000
21old_mmap(0x2aaf0000, 3371, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xf000) = 0x2aaf0000
22close(3)                                = 0
23munmap(0x2aaae000, 4096)                = 0
24open("/lib/libc.so.0", O_RDONLY)        = 3
25fstat(3, {st_mode=S_IFREG|0644, st_size=405459, ...}) = 0
26old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaae000
27read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\300\252\0\0004\0\0\0"..., 4096) = 4096
28old_mmap(NULL, 491520, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaf1000
29old_mmap(0x2aaf1000, 399840, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2aaf1000
30old_mmap(0x2ab62000, 8147, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x61000) = 0x2ab62000
31old_mmap(0x2ab64000, 19456, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2ab64000
32close(3)                                = 0
33munmap(0x2aaae000, 4096)                = 0
34open("/lib/libgcc_s.so.1", O_RDONLY)    = 3
35fstat(3, {st_mode=S_IFREG|0644, st_size=64811, ...}) = 0
36close(3)                                = 0
37open("/lib/libc.so.0", O_RDONLY)        = 3
38fstat(3, {st_mode=S_IFREG|0644, st_size=405459, ...}) = 0
39close(3)                                = 0
40open("/lib/libc.so.0", O_RDONLY)        = 3
41fstat(3, {st_mode=S_IFREG|0644, st_size=405459, ...}) = 0
42close(3)                                = 0
43stat("/lib/ld-uClibc.so.0", {st_mode=S_IFREG|0755, st_size=20706, ...}) = 0
44mprotect(0x2ab62000, 4096, PROT_READ)   = 0
45mprotect(0x2aabc000, 4096, PROT_READ)   = 0
46ioctl(0, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0
47ioctl(1, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0
48stat("/tmp/.nvram", 0x7fe8bcf0)         = -1 ENOENT (No such file or directory)
49brk(0)                                  = 0x413000
50brk(0x414000)                           = 0x414000
51open("/proc/diag/model", O_RDONLY)      = 3
52ioctl(3, TIOCNXCL, 0x7fe8ac88)          = -1 ENOTTY (Inappropriate ioctl for device)
53brk(0x415000)                           = 0x415000
54read(3, "Buffalo WHR-HP-G54\n\0", 4096) = 20
55close(3)                                = 0
56open("/proc/mtd", O_RDONLY)             = 3
57ioctl(3, TIOCNXCL, 0x7fe8ac88)          = -1 ENOTTY (Inappropriate ioctl for device)
58read(3, "dev:    size   erasesize  name\nm"..., 4096) = 196
59stat("/dev/mtdblock/4", 0x7fe8acc8)     = -1 ENOENT (No such file or directory)
60stat("/dev/mtdblock4", {st_mode=S_IFBLK|0644, st_rdev=makedev(31, 4), ...}) = 0
61close(3)                                = 0
62open("/dev/mtdblock4", O_RDWR)          = 3
63old_mmap(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_LOCKED, 3, 0) = 0x2ab69000
64--- SIGSEGV (Segmentation fault) @ 0 (0) ---
65+++ killed by SIGSEGV +++