This is the output of truffle compile:

> Compiling your contracts...
> Compiling ./contracts/Lent.sol
> Artifacts written to /home/supernozer/MyERC20/build/contracts
> Compiled successfully using:
   - solc: 0.6.7+commit.b8d736ae.Emscripten.clang

Segmentation fault (core dumped)

As well as truffle migrate --network ropsten --reset:

> Total deployments:   2
> Final cost:          0.0753067 ETH

Segmentation fault (core dumped)

Any solution to fix this? Or just simply ignore since it doesn't interrupt anything?

  • Looks like a bug in solc. You can report it on their github. – goodvibration May 18 '20 at 12:22
  • I don't think so. I was using the same version on Ubuntu 19. After I formatted everything and upgrade to Ubuntu 20.04 then this issue coming up. The same thing happened for solcjs v0.6.8 as well. even truffle compile --list shows the same: supernozer@root:~/MyERC20$ truffle compile --list ⠼ Fetching solc version list from solc-bin. Attempt #1[ "0.6.8", "0.6.7", "0.6.6", "0.6.5", "0.6.4", "0.6.3", "0.6.2", "0.6.1", "0.6.0", "0.5.17", ".. and 61 more. Use `--all` to see full list." ] Segmentation fault (core dumped) – NOZR May 18 '20 at 15:43
  • @NOZR What node version are you using? What truffle version are you using? Can you try a different node/truffle version? Does it happen with other projects/contracts? – Ismael May 18 '20 at 16:44
  • @Ismael I'm using Truffle v5.1.26 (core: 5.1.26) and Node v10.16.0. I'm about to install Node latest version but it doesn't let me to install HDwallet provider that's why. – NOZR May 18 '20 at 20:47
  • @NOZR I'd suggest to try reinstall truffle and/or node, perhaps a dependency update has break something. – Ismael May 18 '20 at 21:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.