Hi, i have issue with based electron application with syscall: linux_statx(0xffffff9c,0x7fffffffc188,0x0,0xfff,0x7fffffff9c30) ERR#-38 'Function not implemented'
(In reply to Martin Filla from comment #0) What application is that?
(In reply to Alex S from comment #1) I tried application exodus for linux.
(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.
(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.
(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.
(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)
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)
I have implemented statx. Give me some time to clean up the patches, please.
Created attachment 224829 [details] patch statx Proposed patch for support for statx in the linuxulator. It does not support extended attributes now but that might be added at a later date.
Nice! Could you push it to https://reviews.FreeBSD.org?
https://reviews.freebsd.org/D30466
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=2362ad457a01d56d87e74823599578ab37bdbfb9 commit 2362ad457a01d56d87e74823599578ab37bdbfb9 Author: Philippe Michaud-Boudreault <pitwuu@gmail.com> AuthorDate: 2021-06-08 08:24:10 +0000 Commit: Edward Tomasz Napierala <trasz@FreeBSD.org> CommitDate: 2021-06-08 09:08:56 +0000 linux: implement statx(2) PR: 252106 Reviewed By: dchagin Differential Revision: https://reviews.freebsd.org/D30466 sys/compat/linux/linux.h | 42 ++++++++++++++++++++++++++ sys/compat/linux/linux_dummy.c | 2 -- sys/compat/linux/linux_stats.c | 67 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 109 insertions(+), 2 deletions(-)
A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=b630d64c3da1f669859ae61300191be09a744577 commit b630d64c3da1f669859ae61300191be09a744577 Author: Philippe Michaud-Boudreault <pitwuu@gmail.com> AuthorDate: 2021-06-08 08:24:10 +0000 Commit: Edward Tomasz Napierala <trasz@FreeBSD.org> CommitDate: 2022-02-14 00:07:33 +0000 linux: implement statx(2) PR: 252106 Reviewed By: dchagin Differential Revision: https://reviews.freebsd.org/D30466 (cherry picked from commit 2362ad457a01d56d87e74823599578ab37bdbfb9) sys/compat/linux/linux.h | 42 ++++++++++++++++++++++++++ sys/compat/linux/linux_dummy.c | 2 -- sys/compat/linux/linux_stats.c | 67 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 109 insertions(+), 2 deletions(-)