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

dyld error when executing scenarios within cosmic-swingset makefile #4140

Open
tgrecojs opened this issue Dec 1, 2021 · 4 comments
Open
Labels
bug Something isn't working cosmic-swingset package: cosmic-swingset

Comments

@tgrecojs
Copy link
Contributor

tgrecojs commented Dec 1, 2021

Describe the bug

Following the steps outlined in the pegasus demo.md file always results in the following dyld:

dyld[11760]: missing symbol called

As per the demo instructions, i am executing make scenario2-setup-nobuild as well as make scenario2-run-chain. While the first command succeeds in building out the necessary files, the error arises upon the execution of scenario2-run-chain.

To Reproduce

Steps to reproduce the behavior:

  1. Install the agoric-sdk locally.
  2. run yarn install && yarn build.
    3.cd packages/cosmic-swingset
  3. execute make scenario2-setup-nobuild scenario2-run-chain

Expected behavior

A local chain should begin running on my machine as a result of scenario2-run-chain.

Platform Environment

  • MacOS 12.1, Node v14.17.6
  • what OS are you using? what version of Node.js?
  • is there anything special/unusual about your platform? It's an M1 mac.
  • what version of the Agoric-SDK are you using? @agoric/sdk@11.0.0-stage.4

Additional context

Issue was witnessed by @dckc @michaelfig during today's office hours session.

Screenshots

Below is a screen recording of the error. In the video you can see that it's the running of the chain that causes the error whereas the setup process works fine.

cosmic-swingset.issue.mp4

Error text: dyld[27131]: missing symbol called

@tgrecojs tgrecojs added the bug Something isn't working label Dec 1, 2021
@dckc dckc added the cosmic-swingset package: cosmic-swingset label Dec 1, 2021
@michaelfig
Copy link
Member

3. make scenario2-setup-nobuild scenario2-run-chain

Can you please try pasting the output of running:

cd agoric-sdk/packages/cosmic-swingset
DYLD_PRINT_LIBRARIES=t ./bin/ag-chain-cosmos --home=t1/n0 start --log_level=warn

I found that environment variable in Apple documentation

@tgrecojs
Copy link
Contributor Author

tgrecojs commented Dec 2, 2021

@michaelfig here's the output from running that.

dyld[80804]: missing symbol called
zsh: abort      DYLD_PRINT_LIBRARIES=t ./bin/ag-chain-cosmos --home=t1/n0 start

i'll check out that link as well to see if it resolves this.

update

in an attempt to figure this out i deleted cosmic-swingset/node_modules folder and then executed npm update. Unlike npm install, which always results in a Max call stack exceeded error, the npm update command printed the following error:

npm ERR! code ENOENT
npm ERR! syscall chmod
npm ERR! path /Users/tg/agoric-sdk/packages/cosmic-swingset/node_modules/@agoric/swingset-vat/bin/vat
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, chmod '/Users/tg/agoric-sdk/packages/cosmic-swingset/node_modules/@agoric/swingset-vat/bin/vat'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

A lot of threads which discuss this dyld error mention it stemming from npm's inability to find a file. I can't seem to find any @agoric/swingset-vat pack within the cosmic-swingset codebase so i'm wondering if this is the expected behavior, or if this error has to do with swingset-vat package having been renamed 🤔

@tgrecojs
Copy link
Contributor Author

tgrecojs commented Dec 2, 2021

Alright, last update here for the day 🙂

Further investigation has surfaced some info that I'm hoping we can find useful. Specifically, yarn workspaces info shows that @agoric/swingset-vat as a mismatched dependency within cosmic-swingset as shown below:

~[agoric-sdk] % yarn workspaces info
{
  "@agoric/cosmos": {
    "location": "golang/cosmos",
    "workspaceDependencies": [],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/lockdown": {
    "location": "packages/lockdown",
    "workspaceDependencies": [],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/assert": {
    "location": "packages/assert",
    "workspaceDependencies": [],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/install-ses": {
    "location": "packages/install-ses",
    "workspaceDependencies": [],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/import-manager": {
    "location": "packages/import-manager",
    "workspaceDependencies": [
      "@agoric/swingset-vat"
    ],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/sparse-ints": {
    "location": "packages/sparse-ints",
    "workspaceDependencies": [],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/store": {
    "location": "packages/store",
    "workspaceDependencies": [
      "@agoric/swingset-vat",
      "@agoric/assert",
      "@agoric/marshal"
    ],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/bundle-source": {
    "location": "packages/bundle-source",
    "workspaceDependencies": [
      "@agoric/lockdown"
    ],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/import-bundle": {
    "location": "packages/import-bundle",
    "workspaceDependencies": [
      "@agoric/bundle-source",
      "@agoric/install-ses",
      "@agoric/swingset-vat",
      "@agoric/assert"
    ],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/eventual-send": {
    "location": "packages/eventual-send",
    "workspaceDependencies": [
      "@agoric/assert",
      "@agoric/lockdown"
    ],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/governance": {
    "location": "packages/governance",
    "workspaceDependencies": [
      "@agoric/bundle-source",
      "@agoric/install-ses",
      "@agoric/swingset-vat",
      "@agoric/assert",
      "@agoric/captp",
      "@agoric/ertp",
      "@agoric/eventual-send",
      "@agoric/marshal",
      "@agoric/notifier",
      "@agoric/promise-kit",
      "@agoric/same-structure",
      "@agoric/store",
      "@agoric/zoe"
    ],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/promise-kit": {
    "location": "packages/promise-kit",
    "workspaceDependencies": [
      "@agoric/eventual-send"
    ],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/marshal": {
    "location": "packages/marshal",
    "workspaceDependencies": [
      "@agoric/lockdown",
      "@agoric/assert",
      "@agoric/eventual-send",
      "@agoric/promise-kit"
    ],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/same-structure": {
    "location": "packages/same-structure",
    "workspaceDependencies": [
      "@agoric/assert",
      "@agoric/marshal"
    ],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/captp": {
    "location": "packages/captp",
    "workspaceDependencies": [
      "@agoric/install-ses",
      "@agoric/swingset-vat",
      "@agoric/assert",
      "@agoric/eventual-send",
      "@agoric/marshal",
      "@agoric/promise-kit"
    ],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/stat-logger": {
    "location": "packages/stat-logger",
    "workspaceDependencies": [],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/swing-store": {
    "location": "packages/swing-store",
    "workspaceDependencies": [
      "@agoric/install-ses",
      "@agoric/swing-store",
      "@agoric/assert"
    ],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/swingset-vat": {
    "location": "packages/SwingSet",
    "workspaceDependencies": [
      "@agoric/assert",
      "@agoric/bundle-source",
      "@agoric/captp",
      "@agoric/eventual-send",
      "@agoric/import-bundle",
      "@agoric/install-ses",
      "@agoric/marshal",
      "@agoric/notifier",
      "@agoric/promise-kit",
      "@agoric/store",
      "@agoric/swing-store",
      "@agoric/xsnap"
    ],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/swingset-runner": {
    "location": "packages/swingset-runner",
    "workspaceDependencies": [
      "@agoric/assert",
      "@agoric/bundle-source",
      "@agoric/ertp",
      "@agoric/eventual-send",
      "@agoric/install-ses",
      "@agoric/marshal",
      "@agoric/same-structure",
      "@agoric/stat-logger",
      "@agoric/swing-store",
      "@agoric/swingset-vat",
      "@agoric/zoe"
    ],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/ertp": {
    "location": "packages/ERTP",
    "workspaceDependencies": [
      "@agoric/bundle-source",
      "@agoric/swingset-vat",
      "@agoric/assert",
      "@agoric/eventual-send",
      "@agoric/marshal",
      "@agoric/notifier",
      "@agoric/promise-kit",
      "@agoric/same-structure",
      "@agoric/store"
    ],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/spawner": {
    "location": "packages/spawner",
    "workspaceDependencies": [
      "@agoric/bundle-source",
      "@agoric/install-ses",
      "@agoric/swingset-vat",
      "@agoric/assert",
      "@agoric/eventual-send",
      "@agoric/import-bundle",
      "@agoric/marshal"
    ],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/sharing-service": {
    "location": "packages/sharing-service",
    "workspaceDependencies": [
      "@agoric/eventual-send",
      "@agoric/swingset-vat",
      "@agoric/assert",
      "@agoric/marshal"
    ],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/zoe": {
    "location": "packages/zoe",
    "workspaceDependencies": [
      "@agoric/install-ses",
      "@agoric/captp",
      "@agoric/assert",
      "@agoric/bundle-source",
      "@agoric/ertp",
      "@agoric/eventual-send",
      "@agoric/governance",
      "@agoric/import-bundle",
      "@agoric/marshal",
      "@agoric/notifier",
      "@agoric/promise-kit",
      "@agoric/same-structure",
      "@agoric/store",
      "@agoric/swingset-vat"
    ],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/vats": {
    "location": "packages/vats",
    "workspaceDependencies": [
      "@agoric/assert",
      "@agoric/ertp",
      "@agoric/eventual-send",
      "@agoric/import-bundle",
      "@agoric/install-ses",
      "@agoric/marshal",
      "@agoric/notifier",
      "@agoric/pegasus",
      "@agoric/promise-kit",
      "@agoric/same-structure",
      "@agoric/sharing-service",
      "@agoric/sparse-ints",
      "@agoric/store",
      "@agoric/swingset-vat",
      "@agoric/treasury",
      "@agoric/wallet-backend",
      "@agoric/zoe"
    ],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/access-token": {
    "location": "packages/access-token",
    "workspaceDependencies": [
      "@agoric/assert"
    ],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/solo": {
    "location": "packages/solo",
    "workspaceDependencies": [
      "@agoric/bundle-source",
      "@agoric/ertp",
      "@agoric/access-token",
      "@agoric/assert",
      "@agoric/captp",
      "@agoric/cosmic-swingset",
      "@agoric/eventual-send",
      "@agoric/import-bundle",
      "@agoric/install-ses",
      "@agoric/marshal",
      "@agoric/wallet",
      "@agoric/notifier",
      "@agoric/promise-kit",
      "@agoric/spawner",
      "@agoric/store",
      "@agoric/swing-store",
      "@agoric/swingset-vat",
      "@agoric/vats",
      "@agoric/xsnap"
    ],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/ui-components": {
    "location": "packages/ui-components",
    "workspaceDependencies": [
      "@agoric/assert",
      "@agoric/ertp",
      "@agoric/eventual-send",
      "@agoric/install-ses",
      "@agoric/zoe"
    ],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/wallet": {
    "location": "packages/wallet",
    "workspaceDependencies": [
      "agoric"
    ],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/wallet-backend": {
    "location": "packages/wallet/api",
    "workspaceDependencies": [
      "@agoric/bundle-source",
      "@agoric/install-ses",
      "@agoric/vats",
      "@agoric/assert",
      "@agoric/ertp",
      "@agoric/eventual-send",
      "@agoric/marshal",
      "@agoric/notifier",
      "@agoric/promise-kit",
      "@agoric/store",
      "@agoric/zoe"
    ],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/wallet-ui": {
    "location": "packages/wallet/ui",
    "workspaceDependencies": [
      "@agoric/assert",
      "@agoric/captp",
      "@agoric/eventual-send",
      "@agoric/install-ses",
      "@agoric/notifier",
      "@agoric/ui-components",
      "agoric"
    ],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/treasury": {
    "location": "packages/treasury",
    "workspaceDependencies": [
      "@agoric/install-ses",
      "@agoric/assert",
      "@agoric/bundle-source",
      "@agoric/captp",
      "@agoric/deploy-script-support",
      "@agoric/ertp",
      "@agoric/eventual-send",
      "@agoric/governance",
      "@agoric/marshal",
      "@agoric/notifier",
      "@agoric/promise-kit",
      "@agoric/same-structure",
      "@agoric/store",
      "@agoric/swingset-vat",
      "@agoric/zoe"
    ],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/pegasus": {
    "location": "packages/pegasus",
    "workspaceDependencies": [
      "@agoric/assert",
      "@agoric/bundle-source",
      "@agoric/captp",
      "@agoric/deploy-script-support",
      "@agoric/ertp",
      "@agoric/eventual-send",
      "@agoric/install-ses",
      "@agoric/marshal",
      "@agoric/notifier",
      "@agoric/promise-kit",
      "@agoric/store",
      "@agoric/swingset-vat",
      "@agoric/vats",
      "@agoric/zoe"
    ],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/cosmic-swingset": {
    "location": "packages/cosmic-swingset",
    "workspaceDependencies": [
      "@agoric/assert",
      "@agoric/cosmos",
      "@agoric/import-bundle",
      "@agoric/install-ses",
      "@agoric/marshal",
      "@agoric/store",
      "@agoric/swing-store",
      "@agoric/vats",
      "@agoric/xsnap",
      "agoric"
    ],
    "mismatchedWorkspaceDependencies": [
      "@agoric/swingset-vat"
    ]
  },
  "agoric": {
    "location": "packages/agoric-cli",
    "workspaceDependencies": [
      "@agoric/swingset-vat",
      "@agoric/access-token",
      "@agoric/assert",
      "@agoric/bundle-source",
      "@agoric/captp",
      "@agoric/install-ses",
      "@agoric/promise-kit"
    ],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/deployment": {
    "location": "packages/deployment",
    "workspaceDependencies": [
      "@agoric/assert",
      "@agoric/install-ses",
      "@agoric/marshal"
    ],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/notifier": {
    "location": "packages/notifier",
    "workspaceDependencies": [
      "@agoric/install-ses",
      "@agoric/swingset-vat",
      "@agoric/assert",
      "@agoric/eventual-send",
      "@agoric/marshal",
      "@agoric/promise-kit"
    ],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/xsnap": {
    "location": "packages/xsnap",
    "workspaceDependencies": [
      "@agoric/assert",
      "@agoric/bundle-source",
      "@agoric/eventual-send",
      "@agoric/install-ses"
    ],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/deploy-script-support": {
    "location": "packages/deploy-script-support",
    "workspaceDependencies": [
      "@agoric/swingset-vat",
      "@agoric/assert",
      "@agoric/bundle-source",
      "@agoric/ertp",
      "@agoric/eventual-send",
      "@agoric/import-manager",
      "@agoric/marshal",
      "@agoric/notifier",
      "@agoric/promise-kit",
      "@agoric/same-structure",
      "@agoric/store",
      "@agoric/vats",
      "@agoric/zoe"
    ],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/eslint-config": {
    "location": "packages/eslint-config",
    "workspaceDependencies": [],
    "mismatchedWorkspaceDependencies": []
  },
  "@agoric/wallet-connection": {
    "location": "packages/wallet-connection",
    "workspaceDependencies": [
      "@agoric/eventual-send",
      "@agoric/install-ses",
      "@agoric/assert",
      "@agoric/captp",
      "@agoric/marshal",
      "@agoric/promise-kit"
    ],
    "mismatchedWorkspaceDependencies": []
  }
}
✨  Done in 0.06s.

@samsiegart
Copy link
Contributor

samsiegart commented Apr 4, 2023

I ran into this recently on a newly wiped M1 mac. It turns out I was using the amd64 version of golang. Wiping my sdk directory clean, installing the arm64 version of golang instead, and starting over fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cosmic-swingset package: cosmic-swingset
Projects
None yet
Development

No branches or pull requests

5 participants