-
Notifications
You must be signed in to change notification settings - Fork 292
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
segfault on macos catalina #513
Comments
Same. Always |
|
I seem to have gotten this to work on Catalina but using libssl and libcurl from miniconda3 rather then Apples. With the command: Now
Just make sure |
I was able to build from commit hash MacOS 10.13.6 Installing from Brew gives the segfault issues. |
I only got my Cataline mac, but what does |
|
Sorry, you are already using the same different libraries that I'm using, so I don't know. |
I appear to have this same issue.
I brew installed from source
|
Same issue for me, both on Catalina and on Mojave. I had some runs giving malloc error, pointer being freed was not allocated, then Abort trap 6. As mentioned by svenmh, not using Apples ssl and curl seems to be the cure. Compiled with my own libssl 1.1.1d and libcurl 7.68.0, seems to work (probably needed own libcurl, as would need to use the headers for my libssl, rather than Apples) Built libssl 1.1.1d with (to keep it separate from other versions) Built libcurl (compiling curl 7.68.0 source, again to keep it separate from other versions) Built lastpass-cli with (possibly overkill on the defines) On a clean Mac OS system, I also had to install cmake and pkg-config into my /usr/local Also found that on a Mac with Ports installed, make uses /opt/local/bin/pkg-config, and overrode the ssl and curl lib defines on the make command line, with the ones from Ports in /opt. |
This may or may not be helpful. These are the exact steps I followed to rebuild # Uninstall lastpass-cli and run the following commands in a temporary folder to easy cleanup.
brew install autoconf
brew install automake
# compile openssl
git clone git@github.com:openssl/openssl.git
cd openssl
./configure darwin64-x86_64-cc --prefix=/usr/local/ssl
make
sudo make install
# compile curl
git clone git@github.com:curl/curl.git
cd curl
git reset --hard curl-7_68_0
./buildconf
./configure --prefix=/usr/local/curl --with-ssl=/usr/local/ssl
make
sudo make install
# compile lastpass-cli
git clone git@github.com:lastpass/lastpass-cli.git
cd lastpass-cli
make -e OPENSSL_ROOT_DIR=/usr/local/ssl \
-e OPENSSL_INCLUDE_DIR=/usr/local/ssl/include/ \
-e OPENSSL_LIBRARIES=/usr/local/ssl/lib \
-e OPENSSL_ROOT_DIR=/usr/local/ssl \
-e CURL_INCLUDE_DIR=/usr/local/curl/include \
-e CURL_LIBRARIES=/usr/local/
sudo make install I had some issues getting
|
EDIT: Fixed. I updated the PREFIX var in the MakeFile to The installation worked, but I still get the
@icirellik Thanks for the workaround. I tried it and the last command (
|
Also get this with the latest lastpass-cli (1.3.3) and MacOS High Sierra (10.13.6) after updating a bunch of brew formulae (which include openssl).
Fix was a mixture of the steps documented above by @icirellik and hacking CMakeLists.txt to hard code the paths to curl libraries (as I also couldn't get it to work with
Compiled version working....
|
You don't need to rebuild the dependencies, those are perfectly fine from brew...
Edit: I beleive that on M1, you also have to search and replace "/usr/local" to "/opt/homebrew" in https://github.com/lastpass/lastpass-cli/blob/master/CMakeLists.txt |
Consistently.
The text was updated successfully, but these errors were encountered: