Bug 252106 - [linuxlator] statx() not implemented
Summary: [linuxlator] statx() not implemented
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 12.1-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-emulation (Nobody)
Depends on:
Blocks: 247219
  Show dependency treegraph
Reported: 2020-12-24 13:48 UTC by Martin Filla
Modified: 2021-01-12 17:18 UTC (History)
4 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Martin Filla 2020-12-24 13:48:03 UTC
i have issue with based electron application 
with syscall:
linux_statx(0xffffff9c,0x7fffffffc188,0x0,0xfff,0x7fffffff9c30) ERR#-38 'Function not implemented'
Comment 1 Alex S 2020-12-24 20:47:08 UTC
(In reply to Martin Filla from comment #0)

What application is that?
Comment 2 Martin Filla 2020-12-25 09:32:24 UTC
(In reply to Alex S from comment #1)

I tried application exodus for linux.
Comment 3 Alex S 2020-12-25 09:51:20 UTC
(In reply to Martin Filla from comment #2)

That statx call looks inconsequential. There is, however, an explicit check for passed arguments:

% ./Exodus --no-sandbox --no-zygote
ENV: production
wallet-controller initialized, process.type = browser, timestamp: 1608889643286
Can only pass whitelisted args; exiting
[object Object]

You won't be running this in anything other than a full VM.
Comment 4 Alex S 2020-12-25 10:02:39 UTC
(In reply to Alex S from comment #3)

On the positive side, executables match the official Electron 11.1.0 binaries. So, no modifications here at least.
Comment 5 Alex S 2020-12-25 10:11:56 UTC
(In reply to Alex S from comment #3)

> That statx call looks inconsequential.

Most likely comes from node.js: https://github.com/nodejs/node/blob/606df7c4e79324b9725bfcfe019a8b75bfa04c3f/deps/uv/src/unix/fs.c#L1465.
Comment 6 Alex S 2020-12-25 10:16:40 UTC
(In reply to Alex S from comment #5)

Forgot to include strace output:

statx(AT_FDCWD, "/usr/home/boxy/exodus-linux-x64/electron/js2c/browser_init", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7fffffff9e58) = -1 ENOSYS (Function not implemented)
stat("/usr/home/boxy/exodus-linux-x64/electron/js2c/browser_init", 0x7fffffffa180) = -1 ENOENT (No such file or directory)
Comment 7 Edward Tomasz Napierala freebsd_committer 2021-01-12 17:17:31 UTC
FWIW, this also breaks a number of applications from Ubuntu Focal, eg konsole(1).  It (or rather - Qt5 applications) can fall back to fstatat(2), however:

statx(3, "", AT_STATX_SYNC_AS_STAT|AT_EMPTY_PATH, STATX_ALL, 0x7fffffffe1b0) = -1 ENOSYS (Function not implemented)
newfstatat(3, "", 0x7fffffffe000, AT_EMPTY_PATH) = -1 EINVAL (Invalid argument)