conda-forge / curl-feedstock

A conda-smithy repository for curl.
BSD 3-Clause "New" or "Revised" License
3 stars 44 forks source link

libcurl 7.81 results in segfault in Julia #102

Open mkitti opened 2 years ago

mkitti commented 2 years ago

Continuous integration efforts picked up that julia 1.6.5 and 1.7.1 segfaults when using libcurl 7.81. Downgrading to libcurl 7.80 resolves the issue.

$ conda create -n julia171_20220107 julia=1.7.1
Collecting package metadata (current_repodata.json): done
Solving environment: done

# Package Plan ##

  environment location: /home/mkitti/anaconda3/envs/julia171_20220107

  added / updated specs:
    - julia=1.7.1

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    curl-7.81.0                |       h494985f_0          90 KB  conda-forge
    julia-1.7.1                |       h989b2f6_2       105.1 MB  conda-forge
    libcurl-7.81.0             |       h494985f_0         340 KB  conda-forge
    openlibm-0.7.5             |       h7f98852_0         208 KB  conda-forge
    ------------------------------------------------------------
                                           Total:       105.7 MB

The following NEW packages will be INSTALLED:

  _libgcc_mutex      conda-forge/linux-64::_libgcc_mutex-0.1-conda_forge
  _openmp_mutex      conda-forge/linux-64::_openmp_mutex-4.5-1_gnu
  arpack             conda-forge/linux-64::arpack-3.7.0-hdefa2d7_2
  bzip2              conda-forge/linux-64::bzip2-1.0.8-h7f98852_4
  c-ares             conda-forge/linux-64::c-ares-1.18.1-h7f98852_0
  ca-certificates    conda-forge/linux-64::ca-certificates-2021.10.8-ha878542_0
  curl               conda-forge/linux-64::curl-7.81.0-h494985f_0
  expat              conda-forge/linux-64::expat-2.4.2-h9c3ff4c_0
  gettext            conda-forge/linux-64::gettext-0.19.8.1-h73d1719_1008
  git                conda-forge/linux-64::git-2.34.1-pl5321hf874766_0
  gmp                conda-forge/linux-64::gmp-6.2.1-h58526e2_0
  julia              conda-forge/linux-64::julia-1.7.1-h989b2f6_2
  krb5               conda-forge/linux-64::krb5-1.19.2-h48eae69_3
  libblas            conda-forge/linux-64::libblas-3.9.0-12_linux64_openblas
  libcblas           conda-forge/linux-64::libcblas-3.9.0-12_linux64_openblas
  libcurl            conda-forge/linux-64::libcurl-7.81.0-h494985f_0
  libedit            conda-forge/linux-64::libedit-3.1.20191231-he28a2e2_2
  libev              conda-forge/linux-64::libev-4.33-h516909a_1
  libffi             conda-forge/linux-64::libffi-3.4.2-h7f98852_5
  libgcc-ng          conda-forge/linux-64::libgcc-ng-11.2.0-h1d223b6_11
  libgfortran-ng     conda-forge/linux-64::libgfortran-ng-11.2.0-h69a702a_11
  libgfortran5       conda-forge/linux-64::libgfortran5-11.2.0-h5c6108e_11
  libgit2            conda-forge/linux-64::libgit2-1.3.0-haabb1ae_1
  libgomp            conda-forge/linux-64::libgomp-11.2.0-h1d223b6_11
  libiconv           conda-forge/linux-64::libiconv-1.16-h516909a_0
  liblapack          conda-forge/linux-64::liblapack-3.9.0-12_linux64_openblas
  libnghttp2         conda-forge/linux-64::libnghttp2-1.43.0-ha19adfc_1
  libopenblas        conda-forge/linux-64::libopenblas-0.3.18-pthreads_h8fe5266_0
  libopenblas-ilp64  conda-forge/linux-64::libopenblas-ilp64-0.3.18-pthreads_h0aa5bea_0
  libssh2            conda-forge/linux-64::libssh2-1.10.0-ha35d2d1_2
  libstdcxx-ng       conda-forge/linux-64::libstdcxx-ng-11.2.0-he4da1e4_11
  libunwind          conda-forge/linux-64::libunwind-1.5.0-h9c3ff4c_1
  libutf8proc        conda-forge/linux-64::libutf8proc-2.7.0-h7f98852_0
  libzlib            conda-forge/linux-64::libzlib-1.2.11-h36c2ea0_1013
  mbedtls            conda-forge/linux-64::mbedtls-3.1.0-h9c3ff4c_0
  metis              conda-forge/linux-64::metis-5.1.0-h58526e2_1006
  mpfr               conda-forge/linux-64::mpfr-4.1.0-h9202a9a_1
  ncurses            conda-forge/linux-64::ncurses-6.2-h58526e2_4
  openblas-ilp64     conda-forge/linux-64::openblas-ilp64-0.3.18-pthreads_h3d04fff_0
  openlibm           conda-forge/linux-64::openlibm-0.7.5-h7f98852_0
  openssl            conda-forge/linux-64::openssl-3.0.0-h7f98852_2
  p7zip              conda-forge/linux-64::p7zip-16.02-he1b5a44_1000
  pcre2              conda-forge/linux-64::pcre2-10.37-h032f7d1_0
  perl               conda-forge/linux-64::perl-5.32.1-1_h7f98852_perl5
  suitesparse        conda-forge/linux-64::suitesparse-5.10.1-h9e50725_1
  tbb                conda-forge/linux-64::tbb-2021.5.0-h4bd325d_0
  tk                 conda-forge/linux-64::tk-8.6.11-h27826a3_1
  zlib               conda-forge/linux-64::zlib-1.2.11-h36c2ea0_1013

Proceed ([y]/n)? 

Downloading and Extracting Packages
julia-1.7.1          | 105.1 MB  | ######################################################################################################################################################################## | 100% 
openlibm-0.7.5       | 208 KB    | ######################################################################################################################################################################## | 100% 
curl-7.81.0          | 90 KB     | ######################################################################################################################################################################## | 100% 
libcurl-7.81.0       | 340 KB    | ######################################################################################################################################################################## | 100% 
Preparing transaction: done
Verifying transaction: done
Executing transaction: |   No Changes to `~/anaconda3/envs/julia171_20220107/share/julia/environments/julia171_20220107/Project.toml`
  No Changes to `~/anaconda3/envs/julia171_20220107/share/julia/environments/julia171_20220107/Manifest.toml`

done
#
# To activate this environment, use
#
#     $ conda activate julia171_20220107
#
# To deactivate an active environment, use
#
#     $ conda deactivate

$ conda activate julia171_20220107
$ julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.7.1 (2021-12-22)
 _/ |\__'_|_|_|\__'_|  |  https://github.com/conda-forge/julia-feedstock
|__/                   |

(@julia171_20220107) pkg> up
  No Changes to `~/anaconda3/envs/julia171_20220107/share/julia/environments/julia171_20220107/Project.toml`
  No Changes to `~/anaconda3/envs/julia171_20220107/share/julia/environments/julia171_20220107/Manifest.toml`
[ Info: We haven't cleaned this depot up for a bit, running Pkg.gc()...
      Active manifest files: 1 found
      Active artifact files: 0 found
      Active scratchspaces: 0 found
     Deleted no artifacts, repos, packages or scratchspaces

(@julia171_20220107) pkg> add Cxx
Cxx          CxxInterface  CxxWrap
(@julia171_20220107) pkg> add Cxx
Cxx          CxxInterface  CxxWrap
(@julia171_20220107) pkg> activate --temp
  Activating new project at `/tmp/jl_cwQiCr`

(jl_cwQiCr) pkg> add CxxWrap
   Resolving package versions...

signal (11): Segmentation fault
in expression starting at none:0
Curl_connect at /home/mkitti/anaconda3/envs/julia171_20220107/bin/../lib/julia/libcurl.so (unknown line)
multi_runsingle at /home/mkitti/anaconda3/envs/julia171_20220107/bin/../lib/julia/libcurl.so (unknown line)
multi_socket at /home/mkitti/anaconda3/envs/julia171_20220107/bin/../lib/julia/libcurl.so (unknown line)
curl_multi_socket_action at /home/mkitti/anaconda3/envs/julia171_20220107/bin/../lib/julia/libcurl.so (unknown line)
curl_multi_socket_action at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/LibCURL/src/lC_curl_h.jl:230 [inlined]
curl_multi_socket_action at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Downloads/src/Curl/utils.jl:91 [inlined]
macro expansion at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Downloads/src/Curl/utils.jl:35 [inlined]
#47 at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Downloads/src/Curl/Multi.jl:147
lock at ./lock.jl:190
timer_callback at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Downloads/src/Curl/Multi.jl:146
jfptr_timer_callback_19000.clone_1 at /home/mkitti/anaconda3/envs/julia171_20220107/lib/julia/sys.so (unknown line)
_jl_invoke at /usr/local/src/conda/julia-1.7.1/src/gf.c:2247 [inlined]
jl_apply_generic at /usr/local/src/conda/julia-1.7.1/src/gf.c:2429
jlcapi_timer_callback_18861.clone_1 at /home/mkitti/anaconda3/envs/julia171_20220107/lib/julia/sys.so (unknown line)
Curl_update_timer.part.0 at /home/mkitti/anaconda3/envs/julia171_20220107/bin/../lib/julia/libcurl.so (unknown line)
curl_multi_add_handle at /home/mkitti/anaconda3/envs/julia171_20220107/bin/../lib/julia/libcurl.so (unknown line)
curl_multi_add_handle at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/LibCURL/src/lC_curl_h.jl:194 [inlined]
macro expansion at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Downloads/src/Curl/utils.jl:35 [inlined]
#27 at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Downloads/src/Curl/Multi.jl:51
lock at ./lock.jl:190
add_handle at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Downloads/src/Curl/Multi.jl:44 [inlined]
#9 at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Downloads/src/Downloads.jl:345
with_handle at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Downloads/src/Curl/Curl.jl:64
#8 at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Downloads/src/Downloads.jl:311 [inlined]
arg_write at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/ArgTools/src/ArgTools.jl:112
#7 at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Downloads/src/Downloads.jl:310 [inlined]
arg_read at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/ArgTools/src/ArgTools.jl:61
jfptr_arg_read_49372.clone_1 at /home/mkitti/anaconda3/envs/julia171_20220107/lib/julia/sys.so (unknown line)
_jl_invoke at /usr/local/src/conda/julia-1.7.1/src/gf.c:2247 [inlined]
jl_apply_generic at /usr/local/src/conda/julia-1.7.1/src/gf.c:2429
#request#5 at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Downloads/src/Downloads.jl:309
request##kw at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Downloads/src/Downloads.jl:293 [inlined]
#3 at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Downloads/src/Downloads.jl:222 [inlined]
#open#355 at ./io.jl:330
jfptr_YY.openYY.355_19311.clone_1 at /home/mkitti/anaconda3/envs/julia171_20220107/lib/julia/sys.so (unknown line)
_jl_invoke at /usr/local/src/conda/julia-1.7.1/src/gf.c:2247 [inlined]
jl_apply_generic at /usr/local/src/conda/julia-1.7.1/src/gf.c:2429
open##kw at ./io.jl:328
arg_write at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/ArgTools/src/ArgTools.jl:86
#download#2 at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Downloads/src/Downloads.jl:221 [inlined]
download##kw at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Downloads/src/Downloads.jl:221
jfptr_downloadYY.YY.kw_18730.clone_1 at /home/mkitti/anaconda3/envs/julia171_20220107/lib/julia/sys.so (unknown line)
_jl_invoke at /usr/local/src/conda/julia-1.7.1/src/gf.c:2247 [inlined]
jl_apply_generic at /usr/local/src/conda/julia-1.7.1/src/gf.c:2429
#download#14 at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Pkg/src/PlatformEngines.jl:282
download##kw at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Pkg/src/PlatformEngines.jl:259 [inlined]
#install_archive#32 at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Pkg/src/Operations.jl:484
install_archive##kw at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Pkg/src/Operations.jl:477
jfptr_install_archiveYY.YY.kw_57010.clone_1 at /home/mkitti/anaconda3/envs/julia171_20220107/lib/julia/sys.so (unknown line)
_jl_invoke at /usr/local/src/conda/julia-1.7.1/src/gf.c:2247 [inlined]
jl_apply_generic at /usr/local/src/conda/julia-1.7.1/src/gf.c:2429
macro expansion at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Pkg/src/Operations.jl:698 [inlined]
#45 at ./task.jl:423
jfptr_YY.45_55733.clone_1 at /home/mkitti/anaconda3/envs/julia171_20220107/lib/julia/sys.so (unknown line)
_jl_invoke at /usr/local/src/conda/julia-1.7.1/src/gf.c:2247 [inlined]
jl_apply_generic at /usr/local/src/conda/julia-1.7.1/src/gf.c:2429
jl_apply at /usr/local/src/conda/julia-1.7.1/src/julia.h:1788 [inlined]
start_task at /usr/local/src/conda/julia-1.7.1/src/task.c:877
Allocations: 3924950 (Pool: 3922867; Big: 2083); GC: 5
Segmentation fault (core dumped)
$ conda add libcurl=7.80.0
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/mkitti/anaconda3/envs/julia171_20220107

  added / updated specs:
    - libcurl=7.80.0

The following packages will be DOWNGRADED:

  curl                                    7.81.0-h494985f_0 --> 7.80.0-h494985f_1
  libcurl                                 7.81.0-h494985f_0 --> 7.80.0-h494985f_1

Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
$ julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.7.1 (2021-12-22)
 _/ |\__'_|_|_|\__'_|  |  https://github.com/conda-forge/julia-feedstock
|__/                   |

(@julia171_20220107) pkg> add CxxWrap
   Resolving package versions...
   Installed libcxxwrap_julia_jll ─ v0.8.8+1
   Installed CxxWrap ────────────── v0.11.2
   Installed Preferences ────────── v1.2.3
  Downloaded artifact: libcxxwrap_julia
    Updating `~/anaconda3/envs/julia171_20220107/share/julia/environments/julia171_20220107/Project.toml`
  [1f15a43c] + CxxWrap v0.11.2
    Updating `~/anaconda3/envs/julia171_20220107/share/julia/environments/julia171_20220107/Manifest.toml`
  [1f15a43c] + CxxWrap v0.11.2
  [692b3bcd] + JLLWrappers v1.3.0
  [1914dd2f] + MacroTools v0.5.9
  [21216c6a] + Preferences v1.2.3
  [3eaa8342] + libcxxwrap_julia_jll v0.8.8+1
  [0dad84c5] + ArgTools
  [56f22d72] + Artifacts
  [2a0f44e3] + Base64
  [ade2ca70] + Dates
  [f43a241f] + Downloads
  [b77e0a4c] + InteractiveUtils
  [b27032c2] + LibCURL
  [76f85450] + LibGit2
  [8f399da3] + Libdl
  [56ddb016] + Logging
  [d6f4376e] + Markdown
  [ca575930] + NetworkOptions
  [44cfe95a] + Pkg
  [de0858da] + Printf
  [3fa0cd96] + REPL
  [9a3f8284] + Random
  [ea8e919c] + SHA
  [9e88b42a] + Serialization
  [6462fe0b] + Sockets
  [fa267f1f] + TOML
  [a4e569a6] + Tar
  [cf7118a7] + UUIDs
  [4ec0a83e] + Unicode
  [deac9b47] + LibCURL_jll
  [29816b5a] + LibSSH2_jll
  [c8ffd9c3] + MbedTLS_jll
  [14a3606d] + MozillaCACerts_jll
  [83775a58] + Zlib_jll
  [8e850ede] + nghttp2_jll
  [3f19e933] + p7zip_jll
Precompiling project...
  8 dependencies successfully precompiled in 12 seconds

(@julia171_20220107) pkg>