-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Description
Reproduction steps
- Link libgit2 and oniguruma together in one project
- Use any libgit2 function that calls
git_config_next
, which callsall_iter_glob_next
andregexec
Expected behavior
The library should co-exist with other libraries
Actual behavior
It crashes if the linker decides to use regexec
from oniguruma rather than from libgit2's internal regex dependency.
regexec + 256 (regposix.c:203) // note regposix.c is oniguruma's.
all_iter_glob_next + 85 (config.c:426) // this was meant to call regexec.c
git_config_next + 45 (config.c:1081)
apply_insteadof + 411 (remote.c:2506)
create_internal + 407 (remote.c:216)
git_remote_create_with_fetchspec + 129 (remote.c:321)
git_remote_create + 171 (remote.c:304)
default_remote_create + 49 (clone.c:248)
create_and_configure_origin + 324 (clone.c:280)
git_clone + 532 (clone.c:424)
git2::build::RepoBuilder::clone::h38f379ee2822ae4f + 960 (build.rs:231)
Version of libgit2 (release number or SHA1)
Operating system(s) tested
macOS 10.14
Metadata
Metadata
Assignees
Labels
No labels