Skip to content

couldn't load C-exported library #42659

Closed
@aviatesk

Description

@aviatesk

Especially, I found :jl_coverage_visit_line couldn't be loaded:

julia> let 
           file = @__FILE__
           line = @__LINE__
           ccall(:jl_coverage_visit_line, Cvoid, (Cstring, Csize_t, Cint), file, sizeof(file), line)
       end
ERROR: could not load symbol "jl_coverage_visit_line":
dlsym(RTLD_DEFAULT, jl_coverage_visit_line): symbol not found
Stacktrace:
 [1] top-level scope
   @ ./REPL[1]:4

, which is defined at:

julia/src/codegen.cpp

Lines 1861 to 1869 in 72ec349

extern "C" JL_DLLEXPORT void jl_coverage_visit_line(const char* filename_, size_t len_filename, int line)
{
StringRef filename = StringRef(filename_, len_filename);
if (imaging_mode || filename == "" || filename == "none" || filename == "no file" || filename == "<missing>" || line < 0)
return;
std::vector<logdata_block*> &vec = coverageData[filename];
uint64_t *ptr = allocLine(vec, line);
(*ptr)++;
}

Bisected that #41936 seems to have caused this issue.

Metadata

Metadata

Assignees

Labels

bugIndicates an unexpected problem or unintended behaviorregressionRegression in behavior compared to a previous version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions