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

make check failure for macOS arch64 #36656

Closed
chadbrewbaker opened this issue Dec 28, 2020 · 9 comments
Closed

make check failure for macOS arch64 #36656

chadbrewbaker opened this issue Dec 28, 2020 · 9 comments
Labels
build Issues and PRs related to build files or the CI. confirmed-bug Issues with confirmed bugs. macos Issues and PRs related to the macOS platform / OSX.

Comments

@chadbrewbaker
Copy link

Commit 0b6d307

macOS 11.1 aarch64

Xcode 12.3

make; make check

=== release test-worker-prof ===                                              
Path: sequential/test-worker-prof
node:assert:119
  throw new AssertionError(obj);
  ^

AssertionError [ERR_ASSERTION]: child exited with signal: {
  status: null,
  signal: 'SIGSEGV',
  output: [ null, '', '' ],
  pid: 73280,
  stdout: '',
  stderr: ''
}
    at Object.<anonymous> (/Users/USERNAME/github/node/test/sequential/test-worker-prof.js:58:10)
    at Module._compile (node:internal/modules/cjs/loader:1108:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
    at Module.load (node:internal/modules/cjs/loader:973:32)
    at Function.Module._load (node:internal/modules/cjs/loader:813:14)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
    at node:internal/main/run_main_module:17:47 {
  generatedMessage: false,
  code: 'ERR_ASSERTION',
  actual: 'SIGSEGV',
  expected: null,
  operator: 'strictEqual'
}
Command: out/Release/node /Users/USERNAME/github/node/test/sequential/test-worker-prof.js
[02:41|% 100|+ 3282|-   1]: Done                                              
make[1]: *** [jstest] Error 1
make: *** [test] Error 2
@PoojaDurgad PoojaDurgad added the build Issues and PRs related to build files or the CI. label Dec 28, 2020
@PoojaDurgad
Copy link
Contributor

@chadbrewbaker - personally I have not used macos but make check works fine for windows10 os

@PoojaDurgad PoojaDurgad added the macos Issues and PRs related to the macOS platform / OSX. label Dec 28, 2020
@targos
Copy link
Member

targos commented Dec 28, 2020

I don't know if we have collaborators with an M1 Mac yet.

@aduh95 aduh95 added the confirmed-bug Issues with confirmed bugs. label Dec 28, 2020
@aduh95
Copy link
Contributor

aduh95 commented Dec 28, 2020

I can reproduce on my machine (M1 CPU).

@aduh95
Copy link
Contributor

aduh95 commented Jan 4, 2021

For info, node --prof always segfaults on Apple Silicon, it's probably a V8 bug. If you don't need this feature, node works perfectly fine though.

I'm not able to compile gdb though, so I can't really help debug this, sorry.

@targos
Copy link
Member

targos commented Jan 4, 2021

I'm not able to compile gdb though, so I can't really help debug this, sorry.

Maybe you can try lldb instead?

@aduh95
Copy link
Contributor

aduh95 commented Jan 4, 2021

lldb gave me the info I needed 👍

I've submitted the fix to https://chromium-review.googlesource.com/c/v8/v8/+/2609413. @nodejs/v8 is there something else I should do to ensure the fix makes it to the next Node.js releases?

@targos
Copy link
Member

targos commented Jan 26, 2021

@aduh95 If you want someone to review your CL, you need to mark it as ready for review (it's currently WIP) and ideally add some reviewers.

Edit: it's a bit counter-intuitive, but that's what the "Start review" button allows you to do.

@aduh95
Copy link
Contributor

aduh95 commented Jan 26, 2021

@targos Thanks for the info! I've now submitted the CL for reviews.

matinzd pushed a commit to matinzd/node that referenced this issue Feb 8, 2021
This patch fixes a segmentation fault which occurs when using `--prof` flag on a Darwin ARM64 architecture.

ref: https://chromium-review.googlesource.com/c/v8/v8/+/2609413

related issue on node/v8: nodejs#36656
@AshCripps AshCripps mentioned this issue Feb 10, 2021
11 tasks
@mhdawson
Copy link
Member

@hashseed can you help get a review of the PR in the V8 changed needed before we can enable testing in the Node.js CI?

pull bot pushed a commit to httpsgithu/v8 that referenced this issue Feb 22, 2021
This patch fixes a segmentation fault which occurs when using `--prof` flag on a Darwin ARM64 architecture.
See nodejs/node#36656

Change-Id: Idc3ce6c8fd8a24f76f1b356f629e37340045b51e
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2609413
Reviewed-by: Ulan Degenbaev <[email protected]>
Reviewed-by: Michael Lippautz <[email protected]>
Commit-Queue: Ulan Degenbaev <[email protected]>
Cr-Commit-Position: refs/heads/master@{#72886}
aduh95 added a commit to aduh95/node that referenced this issue Feb 22, 2021
Original commit message:
	Fix GetSharedLibraryAddresses

	This patch fixes a segmentation fault which occurs when using `--prof` flag on a Darwin ARM64 architecture.
	See nodejs#36656

	Change-Id: Idc3ce6c8fd8a24f76f1b356f629e37340045b51e
	Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2609413
	Reviewed-by: Ulan Degenbaev <[email protected]>
	Reviewed-by: Michael Lippautz <[email protected]>
	Commit-Queue: Ulan Degenbaev <[email protected]>
	Cr-Commit-Position: refs/heads/master@{#72886}

Fixes: nodejs#36656
aduh95 added a commit to aduh95/node that referenced this issue Feb 22, 2021
Original commit message:
	Fix GetSharedLibraryAddresses

	This patch fixes a segmentation fault which occurs when using `--prof` flag on a Darwin ARM64 architecture.
	See nodejs#36656

	Change-Id: Idc3ce6c8fd8a24f76f1b356f629e37340045b51e
	Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2609413
	Reviewed-by: Ulan Degenbaev <[email protected]>
	Reviewed-by: Michael Lippautz <[email protected]>
	Commit-Queue: Ulan Degenbaev <[email protected]>
	Cr-Commit-Position: refs/heads/master@{#72886}

Refs: v8/v8@8957d46
Fixes: nodejs#36656
targos added a commit to targos/node that referenced this issue Feb 23, 2021
Original commit message:

    [aarm64] Fix GetSharedLibraryAddresses

    This patch fixes a segmentation fault which occurs when using `--prof` flag on a Darwin ARM64 architecture.
    See nodejs#36656

    Change-Id: Idc3ce6c8fd8a24f76f1b356f629e37340045b51e
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2609413
    Reviewed-by: Ulan Degenbaev <[email protected]>
    Reviewed-by: Michael Lippautz <[email protected]>
    Commit-Queue: Ulan Degenbaev <[email protected]>
    Cr-Commit-Position: refs/heads/master@{#72886}

Refs: v8/v8@8957d46
@targos targos closed this as completed in 67dc2bf Feb 24, 2021
targos added a commit to targos/node that referenced this issue Feb 24, 2021
Original commit message:

    [aarm64] Fix GetSharedLibraryAddresses

    This patch fixes a segmentation fault which occurs when using `--prof` flag on a Darwin ARM64 architecture.
    See nodejs#36656

    Change-Id: Idc3ce6c8fd8a24f76f1b356f629e37340045b51e
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2609413
    Reviewed-by: Ulan Degenbaev <[email protected]>
    Reviewed-by: Michael Lippautz <[email protected]>
    Commit-Queue: Ulan Degenbaev <[email protected]>
    Cr-Commit-Position: refs/heads/master@{#72886}

Refs: v8/v8@8957d46
targos added a commit that referenced this issue Feb 24, 2021
Original commit message:

    [aarm64] Fix GetSharedLibraryAddresses

    This patch fixes a segmentation fault which occurs when using `--prof` flag on a Darwin ARM64 architecture.
    See #36656

    Change-Id: Idc3ce6c8fd8a24f76f1b356f629e37340045b51e
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2609413
    Reviewed-by: Ulan Degenbaev <[email protected]>
    Reviewed-by: Michael Lippautz <[email protected]>
    Commit-Queue: Ulan Degenbaev <[email protected]>
    Cr-Commit-Position: refs/heads/master@{#72886}

Refs: v8/v8@8957d46

PR-URL: #37330
Reviewed-By: Jiawen Geng <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
targos pushed a commit that referenced this issue Feb 28, 2021
Original commit message:
	Fix GetSharedLibraryAddresses

	This patch fixes a segmentation fault which occurs when using `--prof` flag on a Darwin ARM64 architecture.
	See #36656

	Change-Id: Idc3ce6c8fd8a24f76f1b356f629e37340045b51e
	Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2609413
	Reviewed-by: Ulan Degenbaev <[email protected]>
	Reviewed-by: Michael Lippautz <[email protected]>
	Commit-Queue: Ulan Degenbaev <[email protected]>
	Cr-Commit-Position: refs/heads/master@{#72886}

Refs: v8/v8@8957d46
Fixes: #36656

PR-URL: #37471
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Juan José Arboleda <[email protected]>
Reviewed-By: Ash Cripps <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: Jiawen Geng <[email protected]>
a60814billy pushed a commit to a60814billy/node that referenced this issue Apr 2, 2021
Original commit message:
    deps: cherry-pick 8957d4677aa794c230577f234071af0 from V8 upstream

    Original commit message:
	Fix GetSharedLibraryAddresses

	This patch fixes a segmentation fault which occurs when using `--prof` flag on a Darwin ARM64 architecture.
	See nodejs#36656

	Change-Id: Idc3ce6c8fd8a24f76f1b356f629e37340045b51e
	Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2609413
	Reviewed-by: Ulan Degenbaev <[email protected]>
	Reviewed-by: Michael Lippautz <[email protected]>
	Commit-Queue: Ulan Degenbaev <[email protected]>
        Cr-Commit-Position: refs/heads/master@{#72886}

    Refs: v8/v8@8957d46
    Fixes: nodejs#36656

   PR-URL: nodejs#37471
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Juan José Arboleda <[email protected]>
    Reviewed-By: Ash Cripps <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
a60814billy pushed a commit to a60814billy/node that referenced this issue Apr 2, 2021
Original commit message:
    Fix GetSharedLibraryAddresses

    This patch fixes a segmentation fault which occurs when using `--prof` flag on a Darwin ARM64 architecture.
    See nodejs#36656

    Change-Id: Idc3ce6c8fd8a24f76f1b356f629e37340045b51e
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2609413
    Reviewed-by: Ulan Degenbaev <[email protected]>
    Reviewed-by: Michael Lippautz <[email protected]>
    Commit-Queue: Ulan Degenbaev <[email protected]>
    Cr-Commit-Position: refs/heads/master@{#72886}

    Refs: v8/v8@8957d46
    Fixes: nodejs#36656

PR-URL: nodejs#37471
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Juan José Arboleda <[email protected]>
Reviewed-By: Ash Cripps <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: Jiawen Geng <[email protected]>
targos pushed a commit that referenced this issue Apr 11, 2021
Original commit message:
    Fix GetSharedLibraryAddresses

    This patch fixes a segmentation fault which occurs when using `--prof` flag on a Darwin ARM64 architecture.
    See #36656

    Change-Id: Idc3ce6c8fd8a24f76f1b356f629e37340045b51e
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2609413
    Reviewed-by: Ulan Degenbaev <[email protected]>
    Reviewed-by: Michael Lippautz <[email protected]>
    Commit-Queue: Ulan Degenbaev <[email protected]>
    Cr-Commit-Position: refs/heads/master@{#72886}

    Refs: v8/v8@8957d46
    Fixes: #36656

Backport-PR-URL: #38051
Co-authored-by: BoHong Li <[email protected]>

PR-URL: #37471
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Juan José Arboleda <[email protected]>
Reviewed-By: Ash Cripps <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: Jiawen Geng <[email protected]>
targos pushed a commit to targos/abi-stable-v8 that referenced this issue Apr 17, 2021
This patch fixes a segmentation fault which occurs when using `--prof` flag on a Darwin ARM64 architecture.
See nodejs/node#36656

Change-Id: Idc3ce6c8fd8a24f76f1b356f629e37340045b51e
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2609413
Reviewed-by: Ulan Degenbaev <[email protected]>
Reviewed-by: Michael Lippautz <[email protected]>
Commit-Queue: Ulan Degenbaev <[email protected]>
Cr-Commit-Position: refs/heads/master@{#72886}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues and PRs related to build files or the CI. confirmed-bug Issues with confirmed bugs. macos Issues and PRs related to the macOS platform / OSX.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants