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

Device or resource busy (os error 16) #52

Open
shyn opened this issue Jul 27, 2022 · 0 comments
Open

Device or resource busy (os error 16) #52

shyn opened this issue Jul 27, 2022 · 0 comments

Comments

@shyn
Copy link

shyn commented Jul 27, 2022

It's a powerpc32 NAS. i cross compiled a static link bore for it.

When run bore local 9090 --to bore.pub. The program exited with:

Error: could not connect to bore.pub:7835

Caused by:
    Device or resource busy (os error 16)

Have tried my own server. Failed the same.

maybe a memory issues?

root@OpenWrt:/data# time -f "Maximum resident set size (kbytes): %Mkb" ./bore-
s local 9090 --to bore.pub
Error: could not connect to bore.pub:7835

Caused by:
    Device or resource busy (os error 16)
Command exited with non-zero status 1
Maximum resident set size (kbytes): 10832kb

while free tell me:

root@OpenWrt:~# free -h
              total        used        free      shared  buff/cache   available
Mem:         251876      105792       22672       15704      123412       82060
Swap:             0           0           0

Also, i ran with strace:

brk(NULL)                               = 0x10adb000
brk(0x10adbe94)                         = 0x10adbe94
uname({sysname="Linux", nodename="OpenWrt", ...}) = 0
set_tid_address(0x10adb068)             = 14094
set_robust_list(0x10adb070, 12)         = 0
rt_sigaction(SIGRTMIN, {sa_handler=0x101b6d60, sa_mask=[], sa_flags=SA_SIGINFO}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {sa_handler=0x101b6e50, sa_mask=[], sa_flags=SA_RESTART|SA_SIGINFO}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
ugetrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
readlink("/proc/self/exe", "/data/bore-s", 4096) = 12
brk(0x10afce94)                         = 0x10afce94
brk(0x10afd000)                         = 0x10afd000
mprotect(0x10336000, 106496, PROT_READ) = 0
poll([{fd=0, events=0}, {fd=1, events=0}, {fd=2, events=0}], 3, 0) = 0 (Timeout)
rt_sigaction(SIGPIPE, {sa_handler=SIG_IGN, sa_mask=[PIPE], sa_flags=SA_RESTART}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGSEGV, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGSEGV, {sa_handler=0x1018cd30, sa_mask=[], sa_flags=SA_ONSTACK|SA_SIGINFO}, NULL, 8) = 0
rt_sigaction(SIGBUS, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGBUS, {sa_handler=0x1018cd30, sa_mask=[], sa_flags=SA_ONSTACK|SA_SIGINFO}, NULL, 8) = 0
sigaltstack(NULL, {ss_sp=NULL, ss_flags=SS_DISABLE, ss_size=0}) = 0
mmap2(NULL, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0xb7c01000
mprotect(0xb7c01000, 4096, PROT_NONE)   = 0
sigaltstack({ss_sp=0xb7c02000, ss_flags=0, ss_size=16384}, NULL) = 0
openat(AT_FDCWD, "/proc/self/maps", O_RDONLY|O_CLOEXEC) = 3
ugetrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
read(3, "00100000-00103000 r-xp 00000000 "..., 1024) = 478
close(3)                                = 0
sched_getaffinity(14094, 32, [0])       = 4
getrandom("\xdf\xc5\x06\x68\xd3\xdf\x1a\xa4\xac\x73\x7e\x68\xf7\x02\xb8\xac", 16, GRND_NONBLOCK) = 16
openat(AT_FDCWD, "/proc/self/cgroup", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
read(3, "0::/services/dropbear/instance1\n", 8192) = 32
read(3, "", 8192)                       = 0
close(3)                                = 0
sched_getaffinity(0, 128, [0])          = 4
epoll_create1(EPOLL_CLOEXEC)            = 3
eventfd2(0, EFD_CLOEXEC|EFD_NONBLOCK)   = 4
epoll_ctl(3, EPOLL_CTL_ADD, 4, {EPOLLIN|EPOLLRDHUP|EPOLLET, {u32=0, u64=2147483648}}) = 0
fcntl64(3, F_DUPFD_CLOEXEC, 3)          = 5
clock_gettime64(CLOCK_MONOTONIC, {tv_sec=694316, tv_nsec=987092879}) = 0
futex(0x10353c08, FUTEX_WAKE_PRIVATE, 2147483647) = 0
mmap2(NULL, 2101248, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0xb7a00000
mprotect(0xb7a01000, 2097152, PROT_READ|PROT_WRITE) = 0
clone(child_stack=0xb7bffcd0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tid=[14095], tls=0xb7c07640, child_tidptr=0xb7c001d8) = 14095
clock_gettime64(CLOCK_MONOTONIC, {tv_sec=694316, tv_nsec=990417119}) = 0
mmap2(NULL, 2101248, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0xb77ff000
mprotect(0xb7800000, 2097152, PROT_READ|PROT_WRITE) = 0
clone(child_stack=0xb79fecd0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tid=[14096], tls=0xb7a06640, child_tidptr=0xb79ff1d8) = 14096
write(4, "\0\0\0\0\0\0\0\1", 8)         = 8
futex(0x10adf144, FUTEX_WAIT_BITSET_PRIVATE, 0, NULL, FUTEX_BITSET_MATCH_ANY) = 0
write(4, "\0\0\0\0\0\0\0\1", 8)         = 8
futex(0x10adf238, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x10adf1c8, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x10adf144, FUTEX_WAIT_BITSET_PRIVATE, 1, NULL, FUTEX_BITSET_MATCH_ANY) = 0
futex(0xb79ff1d8, FUTEX_WAIT, 14096, NULL) = 0
write(2, "Error: ", 7Error: )                  = 7
write(2, "could not connect to bore.pub:78"..., 34could not connect to bore.pub:7835) = 34
write(2, "\n\nCaused by:", 12

Caused by:)          = 12
write(2, "\n", 1
)                       = 1
write(2, "    ", 4    )                     = 4
write(2, "Device or resource busy", 23Device or resource busy) = 23
write(2, " (os error ", 11 (os error )             = 11
write(2, "16", 216)                       = 2
write(2, ")", 1))                        = 1
write(2, "\n", 1
)                       = 1
sigaltstack({ss_sp=NULL, ss_flags=SS_DISABLE, ss_size=16384}, NULL) = 0
munmap(0xb7c01000, 20480)               = 0
exit_group(1)                           = ?
+++ exited with 1 +++
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant