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

Check for crashes when killing processes #244

Open
maleadt opened this issue Jan 3, 2024 · 0 comments
Open

Check for crashes when killing processes #244

maleadt opened this issue Jan 3, 2024 · 0 comments

Comments

@maleadt
Copy link
Member

maleadt commented Jan 3, 2024

When killing due to large output, it's possible the output is just:

GC error (probable corruption)
Allocations: 22893206 (Pool: 22892733; Big: 473); GC: 17
<?#0x7f1b5d124960::(nil)>

thread 0 ptr queue:
~~~~~~~~~~ ptr queue top ~~~~~~~~~~
Memory{Base.StackTraces.StackFrame}(1, 0x7f1b304fc020)[Base.StackTraces.StackFrame(func=#<null>, file=#<null>, line=0, linfo=#<null>, from_c=false, inlined=false, pointer=0x0000000000000000)]
==========
Base.Dict{Base.StackTraces.StackFrame, Profile.StackFrameTree{Base.StackTraces.StackFrame}}(slots=Memory{UInt8}(16, 0x7f1b356d5c40)[0x00, 0x00, 0x00, 0x00, 0x9e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00], keys=Memory{Base.StackTraces.StackFrame}(16, 0x7f1b32581340)[Base.StackTraces.StackFrame(func=#<null>, file=#<null>, line=0, linfo=#<null>, from_c=false, inlined=false, pointer=0x0000000000000000), Base.StackTraces.StackFrame(func=#<null>, file=#<null>, line=0, linfo=#<null>, from_c=false, inlined=false, pointer=0x0000000000000000), Base.StackTraces.StackFrame(func=#<null>, file=#<null>, line=0, linfo=#<null>, from_c=false, inlined=false, pointer=0x0000000000000000), Base.StackTraces.StackFrame(func=#<null>, file=#<null>, line=0, linfo=#<null>, from_c=false, inlined=false, pointer=0x0000000000000000), Base.StackTraces.StackFrame(func=:abstract_call_known, file=Symbol("./compiler/abstractinterpretation.jl"), line=2168, linfo=abstract_call_known(Core.Compiler.NativeInterpreter, Any, Core.Compiler.ArgInfo, Core.Compiler.StmtInfo, Core.Compiler.InferenceState, Int64) from abstract_call_known(Core.Compiler.AbstractInterpreter, Any, Core.Compiler.ArgInfo, Core.Compiler.StmtInfo, Union{Core.Compiler.IRInterpretationState, Core.Compiler.InferenceState}, Int64), from_c=false, inlined=false, pointer=0x00007f1b53bdff4f), Base.StackTraces.StackFrame(func=#<null>, file=#<null>, line=0, linfo=#<null>, from_c=false, inlined=false, pointer=0x0000000000000000), Base.StackTraces.StackFrame(func=#<null>, file=#<null>, line=0, linfo=#<null>, from_c=false, inlined=false, pointer=0x0000000000000000), Base.StackTraces.StackFrame(func=#<null>, file=#<null>, line=0, linfo=#<null>, from_c=false, inlined=false, pointer=0x0000000000000000), Base.StackTraces.StackFrame(func=#<null>, file=#<null>, line=0, linfo=#<null>, from_c=false, inlined=false, pointer=0x0000000000000000), Base.StackTraces.StackFrame(func=#<null>, file=#<null>, line=0, linfo=#<null>, from_c=false, inlined=false, pointer=0x0000000000000000), Base.StackTraces.StackFrame(func=#<null>, file=#<null>, line=0, linfo=#<null>, from_c=false, inlined=false, pointer=0x0000000000000000), Base.StackTraces.StackFrame(func=#<null>, file=#<null>, line=0, linfo=#<null>, from_c=false, inlined=false, pointer=0x0000000000000000), Base.StackTraces.StackFrame(func=#<null>, file=#<null>, line=0, linfo=#<null>, from_c=false, inlined=false, pointer=0x0000000000000000), Base.StackTraces.StackFrame(func=#<null>, file=#<null>, line=0, linfo=#<null>, from_c=false, inlined=false, pointer=0x0000000000000000), Base.StackTraces.StackFrame(func=#<null>, file=#<null>, line=0, linfo=#<null>, from_c=false, inlined=false, pointer=0x0000000000000000), Base.StackTraces.StackFrame(func=#<null>, file=#<null>, line=0, linfo=#<null>, from_c=false, inlined=false, pointer=0x0000000000000000)], vals=Memory{Profile.StackFrameTree{Base.StackTraces.StackFrame}}(16, 0x7f1b32584d40)[
...

i.e. we should have classified this as a GC corruption crash.

Similarly, it's possible that the process hangs after an internal error.

However, we need to take care that we don't introduce internal errors after interrupting the process...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant