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

Statistics reporter may cause a core dump #3004

Closed
konnov opened this issue Sep 27, 2024 · 0 comments · May be fixed by #3009
Closed

Statistics reporter may cause a core dump #3004

konnov opened this issue Sep 27, 2024 · 0 comments · May be fixed by #3009
Assignees
Labels

Comments

@konnov
Copy link
Collaborator

konnov commented Sep 27, 2024

Even though we have locks in context disposal, in some cases, the statistics thread seems to query the disposed Z3 context:

State 1: Checking 1 state invariants                              I@13:54:10.173
State 1: state invariant 7 holds.                                 I@13:54:28.751
Z3 statistics for context 0...                                    I@13:54:28.969
conflicts=52,decisions=147,propagations=515241,added eqs=1265660,mk clause=2838243,del clause=2043,minimized lits=41,num checks=1,mk bool var=2136404,arith eq adapter=20746,arith-lower=17273,arith-upper=20375,arith-fixed-eqs=8122,arith-conflicts=26,arith-bound-propagations-lp=4913,arith-diseq=8670,arith-make-feasible=93,arith-max-columns=44159,arith-max-rows=23640,arith-offset-eqs=673,arith-fixed-eqs=15342,rlimit count=91473338,max memory=4170.54,memory=4104.51,num allocs=3.3337290742732E13,time=0.181
 I@13:54:28.969
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007ba55917c7fb, pid=349967, tid=350074
#
# JRE version: OpenJDK Runtime Environment (21.0.4+7) (build 21.0.4+7-Ubuntu-1ubuntu224.04)
# Java VM: OpenJDK 64-Bit Server VM (21.0.4+7-Ubuntu-1ubuntu224.04, mixed mode, sharing, tiered, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C  [libz3.so+0x97c7fb]  smt::context::undo_mk_bool_var()+0x6b
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to /home/igor/devl/era-consensus/spec/protocol-spec/simplified/core.349967)
#
# An error report file with more information is saved as:
# /home/igor/devl/era-consensus/spec/protocol-spec/simplified/hs_err_pid349967.log
[579.355s][warning][os] Loading hsdis library failed
#
# If you would like to submit a bug report, please visit:
#   https://bugs.launchpad.net/ubuntu/+source/openjdk-21
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
@konnov konnov added the bug label Sep 27, 2024
@konnov konnov self-assigned this Sep 27, 2024
konnov added a commit that referenced this issue Sep 30, 2024
@konnov konnov closed this as completed Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant