OpenWrt/LEDE Project

  • Status Waiting on reporter
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category Packages
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version openwrt-18.06
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by Andrew Ruthven - 25.04.2019
Last edited by Koen Vandeputte - 06.06.2019

FS#2258 - tcpdump: bus error on 18.06.2

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?

diizzyy commented on 06.05.2019 11:09

Works for me on trunk, ramips

Project Manager
Yousong Zhou commented on 27.05.2019 03:32

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 <https://strace.io>.
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:/#

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing