-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Thanks for the library!
Describe the bug
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f35de3b08f2, pid=1445153, tid=1445157
#
# JRE version: OpenJDK Runtime Environment GraalVM CE 22.0.2+9.1 (22.0.2+9) (build 22.0.2+9-jvmci-b01)
# Java VM: OpenJDK 64-Bit Server VM GraalVM CE 22.0.2+9.1 (22.0.2+9-jvmci-b01, mixed mode, sharing, tiered, jvmci, jvmci compiler, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x9b08f2] oopDesc* JNIHandles::resolve_impl<0ul, false>(_jobject*)+0x12
Expected behavior
Parse java code from bytes[].
OS and Java version
- OS: Fedora 42 x86_64
- Java version: 24.0.1
- tree-sitter 0.25.3
- tree-sitter-java 0.23.4
Sample code:
public void test() {
TSParser parser = new TSParser();
TSLanguage language = new TreeSitterJava();
parser.setLanguage(language);
String a = "package org.test;\n\npublic class Test {\n\n}";
byte[] sourceBytes = a.getBytes(StandardCharsets.UTF_8);
parser.parse(sourceBytes, null, null, TSInputEncoding.TSInputEncodingUTF8);
}Source code:
package org.test;
public class Test {
}Additional context
Core dump file attached. Not sure if I am doing this right.
hs_err_pid1446854.log
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working