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

Segmentation fault in Coverage tests #57053

Open
inkydragon opened this issue Jan 15, 2025 · 0 comments
Open

Segmentation fault in Coverage tests #57053

inkydragon opened this issue Jan 15, 2025 · 0 comments
Labels
bug Indicates an unexpected problem or unintended behavior code coverage

Comments

@inkydragon
Copy link
Member

inkydragon commented Jan 15, 2025

Image

coverage.cpp:39

From worker 23:
2025-01-14 19:01:10 null	      From worker 23:	[16255] signal 11 (1): Segmentation fault
2025-01-14 19:01:10 null	      From worker 23:	in expression starting at none:0
2025-01-14 19:01:10 null	      From worker 23:	allocLine at /cache/build/default-jelaqua-0/julialang/julia-master-scheduled/src/coverage.cpp:39
2025-01-14 19:01:10 null	      From worker 23:	jl_coverage_alloc_line at /cache/build/default-jelaqua-0/julialang/julia-master-scheduled/src/coverage.cpp:53
2025-01-14 19:01:10 null	      From worker 23:	operator() at /cache/build/default-jelaqua-0/julialang/julia-master-scheduled/src/codegen.cpp:9414 [inlined]
2025-01-14 19:01:10 null	      From worker 23:	_M_invoke at /usr/local/x86_64-linux-gnu/include/c++/9.1.0/bits/std_function.h:300

julia/src/coverage.cpp

Lines 29 to 40 in 2cc296c

static uint64_t *allocLine(SmallVector<logdata_block*, 0> &vec, int line)
{
unsigned block = line / logdata_blocksize;
line = line % logdata_blocksize;
if (vec.size() <= block)
vec.resize(block + 1);
if (vec[block] == NULL) {
vec[block] = (logdata_block*)calloc(1, sizeof(logdata_block));
}
logdata_block &data = *vec[block];
if (data[line] == 0)
data[line] = 1;

jltypes.c:1828

From worker 23:
2025-01-14 19:12:55 null	      From worker 23:	[16493] signal 11 (128): Segmentation fault
2025-01-14 19:12:55 null	      From worker 23:	in expression starting at none:0
2025-01-14 19:12:55 null	      From worker 23:	typekeyvalue_hash at /cache/build/default-jelaqua-0/julialang/julia-master-scheduled/src/jltypes.c:1828 [inlined]
2025-01-14 19:12:55 null	      From worker 23:	lookup_typevalue at /cache/build/default-jelaqua-0/julialang/julia-master-scheduled/src/jltypes.c:1136
2025-01-14 19:12:55 null	      From worker 23:	jl_inst_arg_tuple_type at /cache/build/default-jelaqua-0/julialang/julia-master-scheduled/src/jltypes.c:2479
2025-01-14 19:12:55 null	      From worker 23:	arg_type_tuple at /cache/build/default-jelaqua-0/julialang/julia-master-scheduled/src/gf.c:2531 [inlined]

julia/src/jltypes.c

Lines 1822 to 1829 in 2cc296c

if (leaf && jl_is_kind(jl_typeof(kj))) {
hj = typekey_hash(jl_type_typename, &kj, 1, 0);
if (hj == 0)
return 0;
}
else {
hj = ((jl_datatype_t*)jl_typeof(kj))->hash;
}

julia.h:877

From worker 26:
2025-01-09 17:14:59 null	      From worker 26:	[20654] signal 11 (128): Segmentation fault
2025-01-09 17:14:59 null	      From worker 26:	in expression starting at none:0
2025-01-09 17:14:59 null	      From worker 26:	jl_to_typeof at /cache/build/tester-demeter6-11/julialang/julia-master-scheduled/src/julia.h:877 [inlined]
2025-01-09 17:14:59 null	      From worker 26:	ijl_subtype_env at /cache/build/tester-demeter6-11/julialang/julia-master-scheduled/src/subtype.c:2216
2025-01-09 17:14:59 null	      From worker 26:	ijl_isa at /cache/build/tester-demeter6-11/julialang/julia-master-scheduled/src/subtype.c:2492

julia/src/julia.h

Lines 873 to 878 in 2cc296c

static inline jl_value_t *jl_to_typeof(uintptr_t t)
{
if (t < (jl_max_tags << 4))
return (jl_value_t*)ijl_small_typeof[t / sizeof(*ijl_small_typeof)];
return (jl_value_t*)t;
}

julia.h:1697

From worker 126:	Internal error: during type inference of
2025-01-05 16:51:35 null	      From worker 126:	typeinf_ext_toplevel(Core.MethodInstance, UInt64, UInt8)
2025-01-05 16:51:35 null	      From worker 126:	Encountered unexpected error in runtime:
2025-01-05 16:51:35 null	      From worker 126:	TypeError(func=:trunc_int, context="", expected=DataType, got=
2025-01-05 16:51:35 null	      From worker 126:	[37238] signal 11 (128): Segmentation fault
2025-01-05 16:51:35 null	      From worker 126:	in expression starting at none:0
2025-01-05 16:51:35 null	      From worker 126:	jl_is_cpointer_type at /cache/build/builder-amdci4-4/julialang/julia-master-scheduled/src/julia.h:1697 [inlined]
2025-01-05 16:51:35 null	      From worker 126:	jl_static_show_x_ at /cache/build/builder-amdci4-4/julialang/julia-master-scheduled/src/rtutils.c:980

julia/src/julia.h

Lines 1695 to 1699 in 468d5c2

STATIC_INLINE int jl_is_cpointer_type(jl_value_t *t) JL_NOTSAFEPOINT
{
return (jl_is_datatype(t) &&
((jl_datatype_t*)(t))->name == ((jl_datatype_t*)jl_pointer_type->body)->name);
}

builtins.c:1540

From worker 112:	in expression starting at none:0
2025-01-12 17:05:40 null	      From worker 112:	jl_valid_type_param at /cache/build/builder-amdci5-6/julialang/julia-master-scheduled/src/builtins.c:1540 [inlined]
2025-01-12 17:05:40 null	      From worker 112:	jl_f_apply_type at /cache/build/builder-amdci5-6/julialang/julia-master-scheduled/src/builtins.c:1587

julia/src/builtins.c

Lines 1538 to 1541 in 2cc296c

int jl_valid_type_param(jl_value_t *v)
{
if (jl_is_tuple(v) || jl_is_namedtuple(v))
return is_nestable_type_param(jl_typeof(v));

@nsajko nsajko added the bug Indicates an unexpected problem or unintended behavior label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior code coverage
Projects
None yet
Development

No branches or pull requests

2 participants