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

module-jni: crash in handling Java calls to a varargs method from another language with no args passed #4594

Closed
davidnich opened this issue Oct 2, 2022 · 0 comments

Comments

@davidnich
Copy link
Contributor

ex:

Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libqore.so.12.0.3+0x1251c4]  QoreListNode::size() const+0x4
C  [jni-api-1.3.qmod+0x12113d]  jni::BaseMethod::convertArgsToArray(QoreListNode const*, unsigned long, unsigned long, jni::JniExternalProgramData*) const+0x537
C  [jni-api-1.3.qmod+0x121c58]  jni::BaseMethod::invoke(_jobject*, QoreListNode const*, QoreProgram*, int) const+0x4dc
C  [jni-api-1.3.qmod+0x129e77]  jni::QoreJniFunctionalInterface::execValue(QoreListNode const*, ExceptionSink*) const+0x243

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.qore.jni.JavaClassBuilder.doNormalCall0(Ljava/lang/String;JJJ[Ljava/lang/Object;)Ljava/lang/Object;+0
j  org.qore.jni.JavaClassBuilder.doNormalCall(Ljava/lang/String;JJJ[Ljava/lang/Object;)Ljava/lang/Object;+7
j  qoremod.QUnit.Test.main()J+13
j  DynamicBasicsSimpleWfTest.<init>([Ljava/lang/String;)V+24
j  DynamicBasicsSimpleWfTest.main([Ljava/lang/String;)V+5
v  ~StubRoutines::call_stub
@davidnich davidnich added this to the 1.12.0 milestone Oct 2, 2022
@davidnich davidnich self-assigned this Oct 2, 2022
@davidnich davidnich added this to To do in Qore Development via automation Oct 2, 2022
davidnich added a commit to qorelanguage/module-jni that referenced this issue Oct 2, 2022
@davidnich davidnich added the fixed label Oct 2, 2022
Qore Development automation moved this from To do to Done Oct 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant