Skip to content

Base.Compiler.stdout incorrectly defined now #56645

@vtjnash

Description

@vtjnash

Looks like Core.Compiler.stdout got incorrectly changed from Core.CoreSTDOUT to a dynamic value, causing some internal uses of print to crash the whole process instead:

threads    (1) |        started at 2024-11-21T21:21:34.569 on pid 135830                                                                                                                
Internal error: during type inference of                                                    
Tuple{}                                                                                     
Encountered unexpected error in runtime:                                                    
MethodError(f=Core.io_pointer, args=(Base.TTY(handle=0x0000555c7f8b9c20, status=3, buffer=Base.GenericIOBuffer{Memory{UInt8}}(data=Memory{UInt8}(0, 0x7f04b66bc9f0)[], reinit=false, readable=true, writable=true, seekable=false, append=true, size=0, maxsize=9223372036854775807, ptr=1, offset=0, mark=-1), cond=Base.GenericCondition{Base.Threads.SpinLock}(waitq=Base.Int
rusiveLinkedList{Task}(head=nothing, tail=nothing), lock=Base.Threads.SpinLock(owned=0)), readerror=nothing, sendbuf=nothing, lock=Base.ReentrantLock(locked_by=nothing, reentrancy_cnt=0x00000000, havelock=0x00, cond_wait=Base.GenericCondition{Base.Threads.SpinLock}(waitq=Base.IntrusiveLinkedList{Task}(head=nothing, tail=nothing), lock=Base.Threads.SpinLock(owned=0)), _=(0, 0, 0)), throttle=10485760),), world=0x000000000000192c)          
jl_method_error_bare at /home/vtjnash/julia1/src/gf.c:2364                                  
jl_method_error at /home/vtjnash/julia1/src/gf.c:2382                                       
jl_f_throw_methoderror at /home/vtjnash/julia1/src/builtins.c:587 [inlined]
jl_f_throw_methoderror at /home/vtjnash/julia1/src/builtins.c:583        
unsafe_write at ./boot.jl:730                                                               
write at ./boot.jl:736                                                                      
print at ./boot.jl:742                                                                      
print at ./boot.jl:744                                                                                                                                                                  
_jl_invoke at /home/vtjnash/julia1/src/gf.c:3306 [inlined]           
ijl_apply_generic at /home/vtjnash/julia1/src/gf.c:3494
jl_apply at /home/vtjnash/julia1/src/julia.h:2240 [inlined]                                 
do_apply at /home/vtjnash/julia1/src/builtins.c:839                                                                                                                                     
println at ./boot.jl:746                                                                    
_jl_invoke at /home/vtjnash/julia1/src/gf.c:3306 [inlined]                     
ijl_apply_generic at /home/vtjnash/julia1/src/gf.c:3494   
maybe_validate_code at ./../usr/share/julia/Compiler/src/validation.jl:77
<snip>
[135830] signal 6 (-6): Aborted                                                             

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions