Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#2258 - tcpdump: bus error on 18.06.2 #7365

Closed
openwrt-bot opened this issue Apr 25, 2019 · 2 comments
Closed

FS#2258 - tcpdump: bus error on 18.06.2 #7365

openwrt-bot opened this issue Apr 25, 2019 · 2 comments
Labels

Comments

@openwrt-bot
Copy link

puck:

Hey,

On a Mikrotik RB450G (mips_24kc) running OpenWRT 18.06.2, when I try to run tcpdump I get a Bus error. Output from strace:

root@firewall:~# strace tcpdump execve("/usr/sbin/tcpdump", ["tcpdump"], 0x7fb548b0 /* 13 vars */) = 0 set_thread_area(0x77c57dc0) = 0 set_tid_address(0x77c50d28) = 2843 open("/etc/ld-musl-mips-sf.path", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/lib/libpcap.so.1", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/usr/local/lib/libpcap.so.1", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/usr/lib/libpcap.so.1", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 fstat64(3, {st_mode=S_IFREG|0644, st_size=62976, ...}) = 0 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0=\360\0\0\0004"..., 936) = 936 mmap2(NULL, 245760, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x77b70000 mmap2(0x77baa000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2a000) = 0x77baa000 --- SIGBUS {si_signo=SIGBUS, si_code=BUS_ADRERR, si_addr=0x77bab4b8} --- +++ killed by SIGBUS +++ Bus error root@firewall:~#

Something dodgy with the pcap library?

@openwrt-bot
Copy link
Author

diizzyy:

Works for me on trunk, ramips

@openwrt-bot
Copy link
Author

yousong:

Cannot reproduce on 18.06.2 malta/be (mips_24kc) on QEMU. Maybe gdb can reveal more info https://openwrt.org/docs/guide-developer/gdb

root@OpenWrt:/# strace -V strace -- version 4.22 Copyright (c) 1991-2018 The strace developers . This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Optional features enabled: (none)
root@OpenWrt:/# tcpdump --version
tcpdump version 4.9.2
libpcap version 1.8.1
root@OpenWrt:/# strace tcpdump
execve("/usr/sbin/tcpdump", ["tcpdump"], 0x7fdb7ac0 /* 6 vars */) = 0
set_thread_area(0x77f7bdc0) = 0
set_tid_address(0x77f74d28) = 4819
open("/etc/ld-musl-mips-sf.path", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib/libpcap.so.1", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/libpcap.so.1", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/libpcap.so.1", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=177336, ...}) = 0
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0=\360\0\0\0004"..., 936) = 936
mmap2(NULL, 245760, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x77e94000
mmap2(0x77ece000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2a000) = 0x77ece000
close(3) = 0
open("/lib/libgcc_s.so.1", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=78096, ...}) = 0
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0(p\0\0\0004"..., 936) = 936
mmap2(NULL, 147456, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x77e70000
mmap2(0x77e93000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x13000) = 0x77e93000
close(3) = 0
mprotect(0x77ece000, 4096, PROT_READ) = 0
mprotect(0x4a2000, 4096, PROT_READ) = 0
...
root@OpenWrt:/#

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant