ganache icon indicating copy to clipboard operation
ganache copied to clipboard

Segfaulting and exiting with 1...

Open davidmurdoch opened this issue 3 years ago • 1 comments

EDIT: clarification: NOT hanging, but still segfaulting and exiting with 1...

I'm getting segfaults in Github CI (on my machine it works fine)

Here's excerpts from the CI run log:

Line 515

> @dataunions/[email protected] unit-test
> jest --runInBand test/unit

(node:2261) V8: /home/runner/work/data-unions/data-unions/node_modules/ganache/dist/node/0.js:2 Linking failure in asm.js: Unexpected stdlib member
(Use `node --trace-warnings ...` to show where the warning was created)
PASS test/unit/withdraw.test.ts (25.143 s)

and in the very end:

Test Suites: 7 passed, 7 total
Tests:       2 skipped, 23 passed, 25 total
Snapshots:   0 total
Time:        74.059 s
Ran all test suites matching /test\/unit/i.
Segmentation fault (core dumped)
npm ERR! Lifecycle script `test` failed with error: 
npm ERR! Error: command failed 
npm ERR!   in workspace: @dataunions/[email protected] 
npm ERR!   at location: /home/runner/work/data-unions/data-unions/packages/client 
Error: Process completed with exit code 1.

My own machine: Mac OS 12.2.1, node 16.13.2 Github CI machine: ubuntu-20.04, node 16.13.2

Originally posted by @jtakalai in https://github.com/trufflesuite/ganache/issues/266#issuecomment-1195250225

davidmurdoch avatar Jul 26 '22 13:07 davidmurdoch

@jtakalai this might be a jest issue (https://github.com/facebook/jest/issues/10662) and/or a node issue (https://github.com/nodejs/node/issues/35889).

Have you tried other ganache versions to try to determine if this is a recent regression or not?

davidmurdoch avatar Jul 26 '22 16:07 davidmurdoch