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

Use a sandboxed openssl.cnf file for phantomjs #353

Merged
merged 3 commits into from
Apr 30, 2019

Conversation

AustinSchuh
Copy link
Contributor

Debian buster has changed /etc/ssl/openssl.cnf far enough that the
openssl built into phantomjs can't parse it. I found this out by
stracing a test run and watching it access /etc/ssl/openssl.cnf. We
want bazel to not rely on anything outside the sandbox. The error that
is returned otherwise is:

140302110000960:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library:dso_dlfcn.c:185:filename(libssl_conf.so): libssl_conf.so: cannot open shared object file: No such file or directory
140302110000960:error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:244:
140302110000960:error:0E07506E:configuration file routines:MODULE_LOAD_DSO:error loading dso:conf_mod.c:285:module=ssl_conf, path=ssl_conf
140302110000960:error:0E076071:configuration file routines:MODULE_RUN:unknown module name:conf_mod.c:222:module=ssl_conf

Fixes: #351

Debian buster ahs changed /etc/ssl/openssl.cnf far enough that the
openssl built into phantomjs can't parse it.  I found this out by
stracing a test run and watching it access /etc/ssl/openssl.cnf.  We
want bazel to not rely on anything outside the sandbox.  The error that
is returned otherwise is:

140302110000960:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library:dso_dlfcn.c:185:filename(libssl_conf.so): libssl_conf.so: cannot open shared object file: No such file or directory
140302110000960:error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:244:
140302110000960:error:0E07506E:configuration file routines:MODULE_LOAD_DSO:error loading dso:conf_mod.c:285:module=ssl_conf, path=ssl_conf
140302110000960:error:0E076071:configuration file routines:MODULE_RUN:unknown module name:conf_mod.c:222:module=ssl_conf

Fixes: bazelbuild#351
@gkdn
Copy link
Collaborator

gkdn commented Apr 4, 2019

@laurentlb I have no idea on this one. You need to make judgement call.

@AustinSchuh
Copy link
Contributor Author

Ping.

Copy link
Contributor

@laurentlb laurentlb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

I'm not familiar with this at all, but the change looks simple and harmless.

@laurentlb laurentlb merged commit 773ff41 into bazelbuild:master Apr 30, 2019
@ghost
Copy link

ghost commented Apr 24, 2020

I encountered the same problem on kali "2020.2"
First check that if you have openssl installed, then
sudo apt install openssl
I managed to solve this error by creating the OPENSSL_CONF variable.

  1. export OPENSSL_CONF = /etc/ssl/
  2. Disconnect the terminals and reopen

ptmphuong pushed a commit to ptmphuong/rules_closure that referenced this pull request Dec 9, 2022
Debian buster ahs changed /etc/ssl/openssl.cnf far enough that the
openssl built into phantomjs can't parse it.  I found this out by
stracing a test run and watching it access /etc/ssl/openssl.cnf.  We
want bazel to not rely on anything outside the sandbox.  The error that
is returned otherwise is:

140302110000960:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library:dso_dlfcn.c:185:filename(libssl_conf.so): libssl_conf.so: cannot open shared object file: No such file or directory
140302110000960:error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:244:
140302110000960:error:0E07506E:configuration file routines:MODULE_LOAD_DSO:error loading dso:conf_mod.c:285:module=ssl_conf, path=ssl_conf
140302110000960:error:0E076071:configuration file routines:MODULE_RUN:unknown module name:conf_mod.c:222:module=ssl_conf

Fixes: bazelbuild#351
@42510SR
Copy link

42510SR commented Jun 20, 2024

Hi, i am still getting an error, Error: html-pdf: Received the exit code '1'\nhtml-pdf: Evaluation - ReferenceError: Can't find variable: $\nStack:\n at undefined\n
not sure why can anyone help @AustinSchuh

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

Successfully merging this pull request may close these issues.

phantomjs leaks out of the sandbox
6 participants