[admin@RT-AC68U-9B58 root]$ gdb /usr/sbin/wget
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux"...
(no debugging symbols found)
(gdb) run
Starting program: /usr/sbin/wget
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
Program received signal SIGILL, Illegal instruction.
0x40290200 in _armv7_neon_probe () from /usr/lib/libcrypto.so.1.0.0
(gdb) continue
Continuing.
Program received signal SIGILL, Illegal instruction.
0x40290208 in _armv7_tick () from /usr/lib/libcrypto.so.1.0.0
(gdb) continue
Continuing.
Program received signal SIGSEGV, Segmentation fault.
0x40174708 in _ppfs_parsespec () from /lib/libc.so.0
(gdb) continue
Continuing.
Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
(gdb)
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x40077930 0x4007ae90 Yes /lib/ld-uClibc.so.0
0x401d5658 0x401d5b58 Yes /usr/lib/libnvram.so
0x400c9954 0x400e30b4 Yes /usr/lib/libshared.so
0x4017d4ac 0x4017eda4 Yes /lib/libcrypt.so.0
0x4019be24 0x401ab174 Yes /usr/lib/libbcmcrypto.so
0x4010b784 0x4010c564 Yes /lib/libdl.so.0
0x40116724 0x40116df8 Yes /usr/lib/libbcm.so
0x401e77b0 0x401ee54c Yes /lib/libgcc_s.so.1
0x40236180 0x40327d78 Yes /usr/lib/libcrypto.so.1.0.0
0x4012f0d8 0x401654c0 Yes /usr/lib/libssl.so.1.0.0
0x401b9cc4 0x401c45cc Yes /usr/lib/libbwdpi.so
0x40087620 0x40095a48 Yes /lib/libdisk.so
0x4037c41c 0x403b263c Yes /opt/lib/libcurl.so.4
0x403dc4e0 0x404bad6c Yes /opt/lib/libxml2.so.2
0x404ea9e8 0x404efc50 Yes /lib/libws.so
0x404fa8e0 0x404fb3d8 Yes /lib/libpush_log.so
0x40518990 0x4055f904 Yes /lib/libc.so.0
0x40583fe8 0x405af0ac Yes /opt/lib/libssl.so.0.9.8
0x405f8974 0x406b134c Yes /opt/lib/libcrypto.so.0.9.8
0x400126c4 0x400221cc Yes /opt/lib/libz.so.1
0x406f3a1c 0x406f9f44 Yes /opt/lib/libgcc_s.so.1
0x407120c0 0x4074ae6c Yes /opt/lib/libc.so.0
0x4075f31c 0x4076bcf8 Yes /lib/libm.so.0
(gdb) bt
#0 0x4053d708 in _ppfs_parsespec () from /lib/libc.so.0
#1 0x4053d3a8 in _ppfs_init () from /lib/libc.so.0
#2 0x4053cc48 in _vfprintf_internal () from /lib/libc.so.0
#3 0x4053cb28 in vfprintf () from /lib/libc.so.0
#4 0x4053a178 in fprintf () from /lib/libc.so.0
#5 0x00042c54 in ?? ()
Cannot access memory at address 0x0
[admin@RT-AC68U-9B58 root]$ strace /usr/sbin/wget
execve("/usr/sbin/wget", ["/usr/sbin/wget"], [/* 16 vars */]) = 0
....
stat("/lib/ld-uClibc.so.0", {st_mode=S_IFREG|0555, st_size=21388, ...}) = 0
open("/dev/urandom", O_RDONLY) = 3
read(3, "\31a\303\250", 4) = 4
close(3) = 0
mprotect(0x40113000, 4096, PROT_READ) = 0
mprotect(0x401cf000, 4096, PROT_READ) = 0
mprotect(0x400d0000, 4096, PROT_READ) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
rt_sigprocmask(SIG_SETMASK, ~[ILL TRAP BUS FPE SEGV], [], 8) = 0
rt_sigaction(SIGILL, {0x40295dd0, ~[ILL TRAP BUS FPE SEGV], 0x4000000 /* SA_??? */}, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, ~[ILL TRAP BUS FPE KILL SEGV STOP], 8) = 0
--- SIGILL (Illegal instruction) @ 0 (0) ---
rt_sigprocmask(SIG_SETMASK, ~[ILL TRAP BUS FPE KILL SEGV STOP], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, ~[ILL TRAP BUS FPE KILL SEGV STOP], 8) = 0
--- SIGILL (Illegal instruction) @ 0 (0) ---
rt_sigprocmask(SIG_SETMASK, ~[ILL TRAP BUS FPE KILL SEGV STOP], NULL, 8) = 0
rt_sigaction(SIGILL, {SIG_DFL, [], 0x4000000 /* SA_??? */}, NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
brk(0) = 0x6b000
brk(0x6c000) = 0x6c000
clock_getres(CLOCK_MONOTONIC, NULL) = 0
clock_getres(CLOCK_MONOTONIC, {0, 1}) = 0
clock_gettime(CLOCK_MONOTONIC, {10842, 528614953}) = 0
clock_gettime(CLOCK_MONOTONIC, {10842, 528721693}) = 0
stat64("/usr/local/etc/wgetrc", 0xbee9ab10) = -1 ENOENT (No such file or directory)
brk(0x6d000) = 0x6d000
brk(0x6e000) = 0x6e000
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
[admin@RT-AC68U-9B58 root]$ ls -la /usr/local
drwxr-xr-x 2 admin root 28 Nov 2 18:46 .
drwxr-xr-x 8 admin root 139 Nov 2 18:46 ..
lrwxrwxrwx 1 admin root 10 Nov 2 18:46 share -> /tmp/share