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

segfault 11 when password is missing from url #65

Open
nagylzs opened this issue May 10, 2020 · 1 comment
Open

segfault 11 when password is missing from url #65

nagylzs opened this issue May 10, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@nagylzs
Copy link

nagylzs commented May 10, 2020

Hello, this is on Ubuntu 18.04 LTS, Julia 1.4:

╰─$ julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.4.1 (2020-04-14)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> import Mongoc

julia> const mongodb_url = "mongodb://[email protected]:27017/?authSource=admin"
"mongodb://[email protected]:27017/?authSource=admin"

julia> client = Mongoc.Client(mongodb_url)
Client(URI("mongodb://[email protected]:27017/?authSource=admin"))

julia> Mongoc.ping(client)

signal (11): Segmentation fault
in expression starting at REPL[4]:1
unknown function (ip: 0x7fc2bd33e5a1)
_mongoc_scram_step at /home/gandalf/.julia/packages/Mongoc/OxMdy/deps/usr/lib/libmongoc-1.0.so (unknown line)
_mongoc_cluster_auth_node_scram.isra.7 at /home/gandalf/.julia/packages/Mongoc/OxMdy/deps/usr/lib/libmongoc-1.0.so (unknown line)
_mongoc_cluster_auth_node at /home/gandalf/.julia/packages/Mongoc/OxMdy/deps/usr/lib/libmongoc-1.0.so (unknown line)
_mongoc_cluster_stream_for_server at /home/gandalf/.julia/packages/Mongoc/OxMdy/deps/usr/lib/libmongoc-1.0.so (unknown line)
_mongoc_client_command_with_opts at /home/gandalf/.julia/packages/Mongoc/OxMdy/deps/usr/lib/libmongoc-1.0.so (unknown line)
mongoc_database_command_simple at /home/gandalf/.julia/packages/Mongoc/OxMdy/deps/usr/lib/libmongoc-1.0.so (unknown line)
mongoc_database_command_simple at /home/gandalf/.julia/packages/Mongoc/OxMdy/src/c_api.jl:472 [inlined]
command_simple at /home/gandalf/.julia/packages/Mongoc/OxMdy/src/database.jl:30
ping at /home/gandalf/.julia/packages/Mongoc/OxMdy/src/client.jl:70
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2158 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2322
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1700 [inlined]
do_call at /buildworker/worker/package_linux64/build/src/interpreter.c:369
eval_value at /buildworker/worker/package_linux64/build/src/interpreter.c:458
eval_stmt_value at /buildworker/worker/package_linux64/build/src/interpreter.c:409 [inlined]
eval_body at /buildworker/worker/package_linux64/build/src/interpreter.c:817
jl_interpret_toplevel_thunk at /buildworker/worker/package_linux64/build/src/interpreter.c:911
jl_toplevel_eval_flex at /buildworker/worker/package_linux64/build/src/toplevel.c:814
jl_toplevel_eval_flex at /buildworker/worker/package_linux64/build/src/toplevel.c:764
jl_toplevel_eval_in at /buildworker/worker/package_linux64/build/src/toplevel.c:843
eval at ./boot.jl:331
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2144 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2322
eval_user_input at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/REPL/src/REPL.jl:86
macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/REPL/src/REPL.jl:118 [inlined]
#26 at ./task.jl:358
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2144 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2322
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1700 [inlined]
start_task at /buildworker/worker/package_linux64/build/src/task.c:687
unknown function (ip: (nil))
Allocations: 925200 (Pool: 924866; Big: 334); GC: 1
[1]    15530 segmentation fault (core dumped)  julia
@nagylzs nagylzs changed the title segfault 11 segfault 11 when password is missing from url May 10, 2020
@nagylzs
Copy link
Author

nagylzs commented May 10, 2020

The same URL and connection gives "A password is required" error with many other clients.

@felipenoris felipenoris added the bug Something isn't working label May 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants