Thanks to visit codestin.com
Credit goes to github.com

Skip to content

SSL_CERT_DIR can cause LibGit2 initialization error #20439

@omus

Description

@omus

It appears that broken symlinks within the SSL_CERT_DIR can cause Julia to raise an exception during startup:

$ mkdir /tmp/certs
$ cd /tmp/certs
$ ln -s bar foo
$ ln -s /doesnotexist bar
$ SSL_CERT_DIR=/tmp/certs julia  # Julia 0.6
fatal: error thrown and no exception handler available.
Base.InitError(mod=:LibGit2, error=ErrorException("error initializing LibGit2 module"))
rec_backtrace at /home/centos/buildbot/slave/package_tarball64/build/src/stackwalk.c:84
record_backtrace at /home/centos/buildbot/slave/package_tarball64/build/src/task.c:239
jl_throw at /home/centos/buildbot/slave/package_tarball64/build/src/task.c:565
__init__ at ./libgit2/libgit2.jl:669
unknown function (ip: 0x7f0b84fc7a88)
jl_call_method_internal at /home/centos/buildbot/slave/package_tarball64/build/src/julia_internal.h:248 [inlined]
jl_apply_generic at /home/centos/buildbot/slave/package_tarball64/build/src/gf.c:2217
jl_apply at /home/centos/buildbot/slave/package_tarball64/build/src/julia.h:1411 [inlined]
jl_module_run_initializer at /home/centos/buildbot/slave/package_tarball64/build/src/toplevel.c:85
_julia_init at /home/centos/buildbot/slave/package_tarball64/build/src/init.c:704
julia_init at /home/centos/buildbot/slave/package_tarball64/build/src/task.c:292
unknown function (ip: 0x401656)
__libc_start_main at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
unknown function (ip: 0x40170c)

Note that the paths in the exception above appear to be from the official build server as I encountered this in a Debian environment.

versioninfo:

Julia Version 0.6.0-dev.2499
Commit cdca71b (2017-02-01 15:33 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.9.1 (ORCJIT, ivybridge)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviorlibgit2The libgit2 library or the LibGit2 stdlib module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions