| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Interesting. I see a crash locally (but I did not debug it):
```
$ node --experimental-permission --inspect-brk --eval "console.log('Hi')"
Segmentation fault
```
I wonder if this is the same or a different issue.
…On Sat, Jun 8, 2024 at 8:50 PM theanarkh ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In test/parallel/test-permission-inspector-brk.js
<#53389 (comment)>:
> +const common = require('../common');
+const assert = require('assert');
+const { spawnSync } = require('child_process');
+const fixtures = require('../common/fixtures');
+const file = fixtures.path('permission', 'inspector-brk.js');
+
+common.skipIfWorker();
+common.skipIfInspectorDisabled();
+
+const { status, stderr } = spawnSync(
+ process.execPath,
+ [
+ '--experimental-permission',
+ '--allow-fs-read=*',
+ '--inspect-brk',
+ file,
It seems the process does not crash when using --eval because the crash
is caused by this
<https://github.com/nodejs/node/blob/main/lib/internal/modules/cjs/loader.js#L1425>
code.
—
Reply to this email directly, view it on GitHub
<#53389 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACGJLJPMQ4N4X2XFELQLS3ZGPGHBAVCNFSM6AAAAABJAF5ZIWVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDCMBWGA3DCNJZHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Sorry, something went wrong.
|
I will add permission check in node_contextify.cc to fix this(Node.js will run into EvaluateMachine of node_contextify.cc when setting --eval flag). |
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
PR-URL: nodejs#53389 Fixes: nodejs#53385 Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Kohei Ueno <kohei.ueno119@gmail.com>
| Back | FazBrowse Home | New Git URL |
Fixes: #53385