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

Electron app crashed because of ERR_set_mark #1182

Closed
roddc opened this issue May 17, 2022 · 5 comments
Closed

Electron app crashed because of ERR_set_mark #1182

roddc opened this issue May 17, 2022 · 5 comments

Comments

@roddc
Copy link

roddc commented May 17, 2022

I have an electron app using node-ssh which is based on ssh2, but when the app tries to connect other devices via SSH with private key, the app will crash.
tmp/.mount_tsToowJAnSy/toolkit --enable-crashpad: symbol lookup error: /tmp/.mount_tsToowJAnSy/resources/app.asar.unpacked/node_modules/ssh2/lib/protocol/crypto/build/Release/sshcrypto.node: undefined symbol: ERR_set_mark
OS: Ubuntu 20.04
Node: 14.9.1
How do I fix this issue?

@mscdex
Copy link
Owner

mscdex commented May 17, 2022

I don't know about Electron, but ERR_set_mark() has existed since OpenSSL 0.9.8 (and hasn't been deprecated or removed yet as of this writing), so I'm not sure why it wouldn't be found.

@roddc
Copy link
Author

roddc commented May 18, 2022

Thanks for replying, maybe the issue is related to packaging. Because the app works fine when I package it on my own machine but it will crash if packaging inside an docker image.

@mscdex
Copy link
Owner

mscdex commented May 18, 2022

I can't really help you much there, I'm not an Electron or Docker user.

Typically OpenSSL symbols get picked up from the node (or Electron I guess) binary. You might ask the Electron folks about this, they would probably have a better idea of what's wrong.

@francisc0garcia
Copy link

francisc0garcia commented Sep 29, 2022

Hi @Rodd, Did you manage to solve the problem? I am currently facing the same issue (Ubuntu 20.04, node v16.17.1) using the electron-react-boilerplate

The app builds fine, but when trying to open an SSH connection, the app crashes with error:

release/app/node_modules/ssh2/lib/protocol/crypto/build/Release/sshcrypto.node: undefined symbol: ERR_set_mark

Update:

If I force adding the package again, the error is gone:

cd release/app && yarn add ssh2 --force

@mscdex mscdex closed this as completed Sep 29, 2022
@city41
Copy link

city41 commented Jan 4, 2023

I just hit this myself. Using Electron@22.0.0 packages in Node@16.17.1 when building the app. ssh2-sftp-client states it needs 16.17.2. I'm unsure if the ssh2 package also needs that version? It is a dependency of ssh2-sftp-client. I am not using ssh2 directly.

By using electron@23.0.0-alpha.3, it bundles in Node@18.12.1, and I no longer get the ERR_set_mark crash.

You can see what version of Electron has what version of Node here. Also, from the Electron main process, process.versions will contain what version of Node it is using.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants