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

get_type ordering crash #142

Closed
devinrsmith opened this issue Apr 11, 2024 · 1 comment · Fixed by #146
Closed

get_type ordering crash #142

devinrsmith opened this issue Apr 11, 2024 · 1 comment · Fixed by #146
Assignees

Comments

@devinrsmith
Copy link
Member

In some cases, it seems like jpy.get_type will cause crashes and SIGSEGVs. During the development of deephaven/deephaven-core#5225, I noticed that the following crashes:

import jpy

jpy.get_type("io.deephaven.json.ArrayOptions")

, but works if we import the base class first:

import jpy

jpy.get_type("io.deephaven.json.ValueOptions")
jpy.get_type("io.deephaven.json.ArrayOptions")

The error looks something like

2024-04-10T22:59:04.700Z | r-Scheduler-Serial-1 |  INFO | .p.PythonDeephavenSession | Evaluating command: import jpy
2024-04-10T22:59:06.225Z | r-Scheduler-Serial-1 |  INFO | .p.PythonDeephavenSession | Evaluating command: jpy.get_type("io.deephaven.json.ArrayOptions")
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fc317a0f9e9, pid=85835, tid=86053
#
# JRE version: OpenJDK Runtime Environment Zulu21.32+17-CA (21.0.2+13) (build 21.0.2+13-LTS)
# Java VM: OpenJDK 64-Bit Server VM Zulu21.32+17-CA (21.0.2+13-LTS, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C  [libpython3.12.so+0x20f9e9]
...

I assumed there might have been an issues with some static initializers, but I couldn't find anything. Via groovy, importing ArrayOptions first seems to work out just fine.

@jmao-denver
Copy link
Contributor

Could be related to deephaven/deephaven-core#4072

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

Successfully merging a pull request may close this issue.

2 participants