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

More consistent return value for annotations, take 2 #53333

Merged
merged 2 commits into from
Feb 20, 2024

Conversation

tecosaur
Copy link
Contributor

The PR #53281 was reverted due to issues it caused in CI that could not be quickly spotted. I think I may have identified the cause, and hope to use CI here to see whether this is the case or not.

@vtjnash
Copy link
Member

vtjnash commented Feb 14, 2024

I looked up the error you are getting in the logs, and it turns out to be #53147

     Testing Running tests...
julia: /cache/build/builder-amdci4-3/julialang/julia-master/src/staticdata.c:2273: jl_root_new_gvars: Assertion `codeinst && (__extension__ ({ __auto_type __atomic_load_ptr = (&codeinst->specsigflags); __typeof__ (*__atomic_load_ptr) __atomic_load_tmp; __atomic_load (__atomic_load_ptr, &__atomic_load_tmp, (memory_order_relaxed)); __atomic_load_tmp; }) & 0b01) && __extension__ ({ __auto_type __atomic_load_ptr = (&codeinst->specptr.fptr); __typeof__ (*__atomic_load_ptr) __atomic_load_tmp; __atomic_load (__atomic_load_ptr, &__atomic_load_tmp, (memory_order_relaxed)); __atomic_load_tmp; })' failed.

[2609] signal 6 (-6): Aborted
in expression starting at /tmp/jl_IF6A9B/packages/Example/aqsx3/test/runtests.jl:1
gsignal at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
abort at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
unknown function (ip: 0x7fe54044040e)
__assert_fail at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
jl_root_new_gvars at /cache/build/builder-amdci4-3/julialang/julia-master/src/staticdata.c:2273 [inlined]
jl_restore_system_image_from_stream_ at /cache/build/builder-amdci4-3/julialang/julia-master/src/staticdata.c:3494
jl_restore_package_image_from_stream at /cache/build/builder-amdci4-3/julialang/julia-master/src/staticdata.c:3632
jl_restore_incremental_from_buf at /cache/build/builder-amdci4-3/julialang/julia-master/src/staticdata.c:3687
ijl_restore_package_image_from_file at /cache/build/builder-amdci4-3/julialang/julia-master/src/staticdata.c:3775
_include_from_serialized at ./loading.jl:1128
_include_from_serialized at ./loading.jl:1103 [inlined]
#_require_search_from_serialized#1063 at ./loading.jl:1690
_require_search_from_serialized at ./loading.jl:1645
jfptr__require_search_from_serialized_41098.1 at /cache/build/tester-amdci5-9/julialang/julia-master/julia-f855c1d903/lib/julia/sys.so (unknown line)
_jl_invoke at /cache/build/builder-amdci4-3/julialang/julia-master/src/gf.c:2941 [inlined]
ijl_apply_generic at /cache/build/builder-amdci4-3/julialang/julia-master/src/gf.c:3118
_require at ./loading.jl:2118
__require_prelocked at ./loading.jl:1987
jfptr___require_prelocked_64844.1 at /cache/build/tester-amdci5-9/julialang/julia-master/julia-f855c1d903/lib/julia/sys.so (unknown line)
_jl_invoke at /cache/build/builder-amdci4-3/julialang/julia-master/src/gf.c:2941 [inlined]
ijl_apply_generic at /cache/build/builder-amdci4-3/julialang/julia-master/src/gf.c:3118
jl_apply at /cache/build/builder-amdci4-3/julialang/julia-master/src/julia.h:2165 [inlined]
jl_f__call_in_world at /cache/build/builder-amdci4-3/julialang/julia-master/src/builtins.c:894
#invoke_in_world#3 at ./essentials.jl:1064 [inlined]
invoke_in_world at ./essentials.jl:1061 [inlined]
_require_prelocked at ./loading.jl:1978
macro expansion at ./loading.jl:1916 [inlined]
macro expansion at ./lock.jl:273 [inlined]
__require at ./loading.jl:1873
jfptr___require_64781.1 at /cache/build/tester-amdci5-9/julialang/julia-master/julia-f855c1d903/lib/julia/sys.so (unknown line)
_jl_invoke at /cache/build/builder-amdci4-3/julialang/julia-master/src/gf.c:2941 [inlined]
ijl_apply_generic at /cache/build/builder-amdci4-3/julialang/julia-master/src/gf.c:3118
jl_apply at /cache/build/builder-amdci4-3/julialang/julia-master/src/julia.h:2165 [inlined]
jl_f__call_in_world at /cache/build/builder-amdci4-3/julialang/julia-master/src/builtins.c:894
#invoke_in_world#3 at ./essentials.jl:1064 [inlined]
invoke_in_world at ./essentials.jl:1061 [inlined]
require at ./loading.jl:1866
jfptr_require_64778.1 at /cache/build/tester-amdci5-9/julialang/julia-master/julia-f855c1d903/lib/julia/sys.so (unknown line)
_jl_invoke at /cache/build/builder-amdci4-3/julialang/julia-master/src/gf.c:2941 [inlined]
ijl_apply_generic at /cache/build/builder-amdci4-3/julialang/julia-master/src/gf.c:3118
jl_apply at /cache/build/builder-amdci4-3/julialang/julia-master/src/julia.h:2165 [inlined]
call_require at /cache/build/builder-amdci4-3/julialang/julia-master/src/toplevel.c:486 [inlined]
eval_import_path at /cache/build/builder-amdci4-3/julialang/julia-master/src/toplevel.c:523
jl_toplevel_eval_flex at /cache/build/builder-amdci4-3/julialang/julia-master/src/toplevel.c:759
jl_toplevel_eval_flex at /cache/build/builder-amdci4-3/julialang/julia-master/src/toplevel.c:886
ijl_toplevel_eval_in at /cache/build/builder-amdci4-3/julialang/julia-master/src/toplevel.c:994
eval at ./boot.jl:428 [inlined]
include_string at ./loading.jl:2260
_jl_invoke at /cache/build/builder-amdci4-3/julialang/julia-master/src/gf.c:2941 [inlined]
ijl_apply_generic at /cache/build/builder-amdci4-3/julialang/julia-master/src/gf.c:3118
_include at ./loading.jl:2320
include at ./sysimg.jl:38
unknown function (ip: 0x7fe5263ca992)
_jl_invoke at /cache/build/builder-amdci4-3/julialang/julia-master/src/gf.c:2941 [inlined]
ijl_apply_generic at /cache/build/builder-amdci4-3/julialang/julia-master/src/gf.c:3118
jl_apply at /cache/build/builder-amdci4-3/julialang/julia-master/src/julia.h:2165 [inlined]
do_call at /cache/build/builder-amdci4-3/julialang/julia-master/src/interpreter.c:126
eval_value at /cache/build/builder-amdci4-3/julialang/julia-master/src/interpreter.c:223
eval_stmt_value at /cache/build/builder-amdci4-3/julialang/julia-master/src/interpreter.c:174 [inlined]
eval_body at /cache/build/builder-amdci4-3/julialang/julia-master/src/interpreter.c:657
jl_interpret_toplevel_thunk at /cache/build/builder-amdci4-3/julialang/julia-master/src/interpreter.c:815
jl_toplevel_eval_flex at /cache/build/builder-amdci4-3/julialang/julia-master/src/toplevel.c:943
jl_toplevel_eval_flex at /cache/build/builder-amdci4-3/julialang/julia-master/src/toplevel.c:886
ijl_toplevel_eval_in at /cache/build/builder-amdci4-3/julialang/julia-master/src/toplevel.c:994
eval at ./boot.jl:428 [inlined]
exec_options at ./client.jl:291
_start at ./client.jl:525
jfptr__start_66507.1 at /cache/build/tester-amdci5-9/julialang/julia-master/julia-f855c1d903/lib/julia/sys.so (unknown line)
_jl_invoke at /cache/build/builder-amdci4-3/julialang/julia-master/src/gf.c:2941 [inlined]
ijl_apply_generic at /cache/build/builder-amdci4-3/julialang/julia-master/src/gf.c:3118
jl_apply at /cache/build/builder-amdci4-3/julialang/julia-master/src/julia.h:2165 [inlined]
true_main at /cache/build/builder-amdci4-3/julialang/julia-master/src/jlapi.c:898
jl_repl_entrypoint at /cache/build/builder-amdci4-3/julialang/julia-master/src/jlapi.c:1057
main at /cache/build/builder-amdci4-3/julialang/julia-master/cli/loader_exe.c:58
__libc_start_main at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
unknown function (ip: 0x4010b8)
Allocations: 1 (Pool: 1; Big: 0); GC: 0

@tecosaur tecosaur added the backport 1.11 Change should be backported to release-1.11 label Feb 16, 2024
@tecosaur
Copy link
Contributor Author

So I'm guessing we re-visit this once #53147 has been solved?

@vtjnash
Copy link
Member

vtjnash commented Feb 17, 2024

This should be merged (rebased first though) after #53373

@tecosaur tecosaur force-pushed the annotated-return-values-take-two branch from f855c1d to c4a9965 Compare February 19, 2024 04:46
The commit e1a76bb was ultimately
reverted due to it seeming to introduce an abort signal in CI. It turns
out there's an underlying issue with a compiler flag being broken,
however I've also noticed that the annotation calculation for SubStrings
was incorrect, as it didn't take into account the substring offset or
width. We might as well fix this.
@KristofferC KristofferC force-pushed the annotated-return-values-take-two branch from c4a9965 to efa721b Compare February 19, 2024 12:52
@tecosaur
Copy link
Contributor Author

The failures in CI just seem to be two things with Pkg. I'm not sure if they're unrelated to this or not though?

@tecosaur tecosaur marked this pull request as ready for review February 20, 2024 17:05
@KristofferC
Copy link
Member

Package Example errored during testing (received signal: 6)

Seems to be the same as complained about in #53281 (comment) but not sure how this PR would cause that.

@vtjnash vtjnash merged commit fbc766a into JuliaLang:master Feb 20, 2024
5 of 7 checks passed
KristofferC pushed a commit that referenced this pull request Feb 26, 2024
Relands #53281 with some fixes noticed, though not the original causes
of the failure.

(cherry picked from commit fbc766a)
@KristofferC KristofferC mentioned this pull request Feb 26, 2024
28 tasks
KristofferC added a commit that referenced this pull request Mar 1, 2024
Backported PRs:
- [x] #53361 <!-- 🤖 [master] Bump the SparseArrays stdlib from c9f7293
to cb602d7 -->
- [x] #53300 <!-- allow external absint to hold custom data in
`codeinst.inferred` -->
- [x] #53342 <!-- Add `Base.wrap` to docs -->
- [x] #53372 <!-- Silence warnings in `test/file.jl` -->
- [x] #53357 <!-- 🤖 [master] Bump the Pkg stdlib from 6dd0e7c9e to
76070d295 -->
- [x] #53373 <!-- fix sysimage-native-code=no option with pkgimages -->
- [x] #53333 <!-- More consistent return value for annotations, take 2
-->
- [x] #53354 <!-- fix code coverage bug in tail position and `else` -->
- [x] #53407 <!-- fix sysimage-native-code=yes option -->
- [x] #53388 <!-- Fix documentation: thread pool of main thread -->
- [x] #53355 <!-- Fix synchronization issues on the GC scheduler. -->
- [x] #53429 <!-- Subtype: skip slow-path in `local_∀_∃_subtype` if
inputs contain no ∃ typevar. -->
- [x] #53437 <!-- Add debug variant of loader_trampolines.o -->
- [x] #53284 <!-- Add annotate! method for AnnotatedIOBuffer -->
- [x] #53466 <!-- [MozillaCACerts_jll] Update to v2023-12-12 -->
- [x] #53467 <!-- [LibGit2_jll] Update to v1.7.2 -->
- [x] #53326 <!-- RFC: when loading code for internal purposes, load
stdlib files directly, bypassing DEPOT_PATH, LOAD_PATH, and stale checks
-->
- [x] #53332
- [x] #53320 <!-- Add `Sys.isreadable, Sys.iswriteable`, update `ispath`
-->
- [x] #53476

Contains multiple commits, manual intervention needed:
- [ ] #53285 <!-- Add update mechanism for Terminfo, and common
user-alias data -->

Non-merged PRs with backport label:
- [ ] #53424 <!-- yet more atomics & cache-line fixes on work-stealing
queue -->
- [ ] #53408 <!-- task splitting: change additive accumulation to
multiplicative -->
- [ ] #53403 <!-- Move parallel precompilation to Base -->
- [ ] #53402 <!-- Add `jl_getaffinity` and `jl_setaffinity` -->
- [ ] #53391 <!-- Default to the medium code model in x86 linux -->
- [ ] #53125 <!-- coverage: count coverage where explicitly requested by
inference only -->
- [ ] #52694 <!-- Reinstate similar for AbstractQ for backward
compatibility -->
@KristofferC KristofferC removed the backport 1.11 Change should be backported to release-1.11 label Mar 1, 2024
tecosaur added a commit to tecosaur/julia that referenced this pull request Mar 4, 2024
Relands JuliaLang#53281 with some fixes noticed, though not the original causes
of the failure.
mkitti pushed a commit to mkitti/julia that referenced this pull request Mar 7, 2024
Relands JuliaLang#53281 with some fixes noticed, though not the original causes
of the failure.
@tecosaur tecosaur deleted the annotated-return-values-take-two branch May 2, 2024 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
strings "Strings!"
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants