darlinghq / darling

Darwin/macOS emulation layer for Linux
http://www.darlinghq.org
GNU General Public License v3.0
11.4k stars 440 forks source link

Cannot launch darling #1466

Closed lebao3105 closed 8 months ago

lebao3105 commented 8 months ago

Expected Result Darling run properly.

Actual Result Darling shell returned this:

Cannot mount overlay: No such device
Cannot open mnt namespace file: No such file or directory

Steps To Reproduce

  1. If possible, what steps can you take to reproduce the issue?

strace Output Run sudo strace -f -u $USER darling shell, what is the output?

execve("/usr/local/bin/darling", ["darling", "shell"], 0x7fff819247c0 /* 20 vars */) = 0
access("/etc/suid-debug", F_OK)         = -1 ENOENT (No such file or directory)
brk(NULL)                               = 0x55fed306b000
arch_prctl(0x3001 /* ARCH_??? */, 0x7ffd4ce3b600) = -1 EINVAL (Invalid argument)
fcntl(0, F_GETFD)                       = 0
fcntl(1, F_GETFD)                       = 0
fcntl(2, F_GETFD)                       = 0
access("/etc/suid-debug", F_OK)         = -1 ENOENT (No such file or directory)
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=120367, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 120367, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f063701d000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220~\2\0\0\0\0\0"..., 832) = 832
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=1948832, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f063701b000
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
mmap(NULL, 1973104, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0636e39000
mmap(0x7f0636e5f000, 1417216, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x26000) = 0x7f0636e5f000
mmap(0x7f0636fb9000, 344064, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x180000) = 0x7f0636fb9000
mmap(0x7f063700d000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1d3000) = 0x7f063700d000
mmap(0x7f0637013000, 31600, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0637013000
close(3)                                = 0
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0636e36000
arch_prctl(ARCH_SET_FS, 0x7f0636e36740) = 0
set_tid_address(0x7f0636e36a10)         = 222524
set_robust_list(0x7f0636e36a20, 24)     = 0
rseq(0x7f0636e37060, 0x20, 0, 0x53053053) = 0
mprotect(0x7f063700d000, 16384, PROT_READ) = 0
mprotect(0x55fed2c5e000, 4096, PROT_READ) = 0
mprotect(0x7f063706c000, 8192, PROT_READ) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
munmap(0x7f063701d000, 120367)          = 0
geteuid()                               = 0
getuid()                                = 1000
getgid()                                = 1000
setuid(0)                               = 0
setgid(0)                               = 0
getrandom("\xe5\xbb\xe1\xd8\x31\x13\x9d\xb9", 8, GRND_NONBLOCK) = 8
brk(NULL)                               = 0x55fed306b000
brk(0x55fed308c000)                     = 0x55fed308c000
getcwd("/home/lebao3105/Projects/darling/build", 4096) = 39
newfstatat(AT_FDCWD, "/root/.darling", {st_mode=S_IFDIR|0755, st_size=92, ...}, 0) = 0
newfstatat(AT_FDCWD, "/root/.darling", {st_mode=S_IFDIR|0755, st_size=92, ...}, 0) = 0
write(2, "You do not own the prefix direct"..., 37You do not own the prefix directory.
) = 37
exit_group(1)                           = ?
+++ exited with 1 +++

dmesg Output Run dmesg | grep 'overlay\|darling' Blank.

System Information What system are you running?

Software Version
Linux Kernel 6.6.9
Darling 1aa1d3cd6e7b792c76c19526ccda5fbfd04ce02b (git rev-parse HEAD)
lebao3105 commented 8 months ago

Nevermind it was a kernel update that I've not rebooted my PC yet. Closing this now.