Title: Flaky assertion failure in `PythonUtils.createMethod` · Issue #575 · oracle/graalpython · GitHub
Open Graph Title: Flaky assertion failure in `PythonUtils.createMethod` · Issue #575 · oracle/graalpython
X Title: Flaky assertion failure in `PythonUtils.createMethod` · Issue #575 · oracle/graalpython
Description: I am encountering assertion failures in com.oracle.graal.python.util.PythonUtils.createMethod. This occurs during unit tests where a GraalVM Engine is shared across multiple Context instances. This is the assertion that fails : assert ca...
Open Graph Description: I am encountering assertion failures in com.oracle.graal.python.util.PythonUtils.createMethod. This occurs during unit tests where a GraalVM Engine is shared across multiple Context instances. This...
X Description: I am encountering assertion failures in com.oracle.graal.python.util.PythonUtils.createMethod. This occurs during unit tests where a GraalVM Engine is shared across multiple Context instances. This...
Opengraph URL: https://github.com/oracle/graalpython/issues/575
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Flaky assertion failure in `PythonUtils.createMethod`","articleBody":"I am encountering assertion failures in `com.oracle.graal.python.util.PythonUtils.createMethod`. This occurs during unit tests where a GraalVM Engine is shared across multiple Context instances. \nThis is the assertion that fails : `assert callTarget.getRootNode() instanceof BuiltinFunctionRootNode r \u0026\u0026 r.getBuiltin() == builtin;`\n\nThis is the stack trace \n```java\norg.graalvm.polyglot.PolyglotException: java.lang.AssertionError\n\tat com.oracle.graal.python.util.PythonUtils.createMethod(PythonUtils.java:717)\n\tat com.oracle.graal.python.util.PythonUtils.createMethod(PythonUtils.java:712)\n\tat com.oracle.graal.python.builtins.modules.codecs.CodecsRegistry.registerDefaultHandler(CodecsRegistry.java:154)\n\tat com.oracle.graal.python.builtins.modules.codecs.CodecsRegistry.doInitialize(CodecsRegistry.java:140)\n\tat com.oracle.graal.python.builtins.modules.codecs.CodecsRegistry.ensureRegistryInitialized(CodecsRegistry.java:134)\n\tat com.oracle.graal.python.builtins.modules.CodecsModuleBuiltins.ensureRegistryInitialized(CodecsModuleBuiltins.java:1036)\n\tat com.oracle.graal.python.builtins.modules.CodecsModuleBuiltins$PyCodecLookupNode.lookup(CodecsModuleBuiltins.java:986)\n\tat com.oracle.graal.python.builtins.modules.CodecsModuleBuiltinsFactory$PyCodecLookupNodeGen$Uncached.execute(CodecsModuleBuiltinsFactory.java:2680)\n\tat com.oracle.graal.python.builtins.modules.CodecsTruffleModuleBuiltins$LookupTextEncoding.lookup(CodecsTruffleModuleBuiltins.java:428)\n\tat com.oracle.graal.python.builtins.modules.CodecsTruffleModuleBuiltinsFactory$LookupTextEncodingNodeGen$Uncached.execute(CodecsTruffleModuleBuiltinsFactory.java:1357)\n\tat com.oracle.graal.python.builtins.modules.io.TextIOWrapperNodes$TextIOWrapperInitNode.init(TextIOWrapperNodes.java:869)\n\tat com.oracle.graal.python.builtins.modules.io.TextIOWrapperNodesFactory$TextIOWrapperInitNodeGen$Uncached.execute(TextIOWrapperNodesFactory.java:3565)\n\tat com.oracle.graal.python.builtins.modules.SysModuleBuiltins.setWrapper(SysModuleBuiltins.java:774)\n\tat com.oracle.graal.python.builtins.modules.SysModuleBuiltins.initStd(SysModuleBuiltins.java:749)\n\tat com.oracle.graal.python.builtins.modules.SysModuleBuiltins.postInitialize(SysModuleBuiltins.java:726)\n\tat com.oracle.graal.python.builtins.Python3Core.postInitialize(Python3Core.java:1062)\n\tat com.oracle.graal.python.runtime.PythonContext.initialize(PythonContext.java:1553)\n\tat com.oracle.graal.python.PythonLanguage.initializeContext(PythonLanguage.java:515)\n\tat com.oracle.graal.python.PythonLanguage.initializeContext(PythonLanguage.java:149)\n\tat com.oracle.truffle.api.TruffleLanguage$Env.postInit(TruffleLanguage.java:3987)\n\tat com.oracle.truffle.api.LanguageAccessor$LanguageImpl.postInitEnv(LanguageAccessor.java:287)\n\tat com.oracle.truffle.polyglot.PolyglotLanguageContext.ensureInitialized(PolyglotLanguageContext.java:894)\n\tat com.oracle.truffle.polyglot.PolyglotContextImpl.eval(PolyglotContextImpl.java:1896)\n\tat com.oracle.truffle.polyglot.PolyglotContextDispatch.eval(PolyglotContextDispatch.java:62)\n\tat org.graalvm.polyglot.Context.eval(Context.java:419)\n\tat tech.picnic.ruleengine.evaluator.logic.impl.ExecutableRuleImpl.create(ExecutableRuleImpl.java:109)\n\tat tech.picnic.ruleengine.evaluator.logic.bindings.actions.BaseActionBindingsTestCase.verifyActionCreation(BaseActionBindingsTestCase.java:78)\n\tat tech.picnic.ruleengine.evaluator.logic.bindings.actions.BaseActionBindingsTestCase.pythonCreateActions(BaseActionBindingsTestCase.java:72)\n\tat java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:565)\n\tat org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:701)\n\tat org.junit.platform.commons.support.ReflectionSupport.invokeMethod(ReflectionSupport.java:502)\n\tat org.junit.jupiter.engine.support.MethodReflectionUtils.invoke(MethodReflectionUtils.java:45)\n\tat org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:61)\n\tat org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:124)\n\tat org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:163)\n\tat org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:148)\n\tat org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86)\n\tat org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:123)\n\tat org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:105)\n\tat org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:99)\n\tat org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:66)\n\tat org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:47)\n\tat org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:39)\n\tat org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:104)\n\tat org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:98)\n\tat org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invokeVoid(InterceptingExecutableInvoker.java:71)\n\tat org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$0(TestMethodTestDescriptor.java:219)\n\tat org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:74)\n\tat org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:215)\n\tat org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:157)\n\tat org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:70)\n\tat org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$2(NodeTestTask.java:176)\n\tat org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:74)\n\tat org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$1(NodeTestTask.java:166)\n\tat org.junit.platform.engine.support.hierarchical.Node.around(Node.java:138)\n\tat org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$0(NodeTestTask.java:164)\n\tat org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:74)\n\tat org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:163)\n\tat org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:116)\n\tat java.base/java.util.ArrayList.forEach(ArrayList.java:1604)\n\tat org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:42)\n\tat org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$2(NodeTestTask.java:180)\n\tat org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:74)\n\tat org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$1(NodeTestTask.java:166)\n\tat org.junit.platform.engine.support.hierarchical.Node.around(Node.java:138)\n\tat org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$0(NodeTestTask.java:164)\n\tat org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:74)\n\tat org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:163)\n\tat org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:116)\n\tat java.base/java.util.ArrayList.forEach(ArrayList.java:1604)\n\tat org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:42)\n\tat org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$2(NodeTestTask.java:180)\n\tat org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:74)\n\tat org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$1(NodeTestTask.java:166)\n\tat org.junit.platform.engine.support.hierarchical.Node.around(Node.java:138)\n\tat org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$0(NodeTestTask.java:164)\n\tat org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:74)\n\tat org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:163)\n\tat org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:116)\n\tat org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:36)\n\tat org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:52)\n\tat org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:58)\n\tat org.junit.platform.launcher.core.EngineExecutionOrchestrator.executeEngine(EngineExecutionOrchestrator.java:246)\n\tat org.junit.platform.launcher.core.EngineExecutionOrchestrator.failOrExecuteEngine(EngineExecutionOrchestrator.java:218)\n\tat org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:179)\n\tat org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:108)\n\tat org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:66)\n\tat org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:157)\n\tat org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:65)\n\tat org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:125)\n\tat org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)\n\tat org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:93)\n\tat org.junit.platform.launcher.core.DelegatingLauncher.execute(DelegatingLauncher.java:48)\n\tat org.junit.platform.launcher.core.InterceptingLauncher.lambda$execute$0(InterceptingLauncher.java:41)\n\tat org.junit.platform.launcher.core.ClasspathAlignmentCheckingLauncherInterceptor.intercept(ClasspathAlignmentCheckingLauncherInterceptor.java:25)\n\tat org.junit.platform.launcher.core.InterceptingLauncher.execute(InterceptingLauncher.java:40)\n\tat org.junit.platform.launcher.core.DelegatingLauncher.execute(DelegatingLauncher.java:48)\n\tat org.junit.platform.launcher.core.SessionPerRequestLauncher.execute(SessionPerRequestLauncher.java:67)\n\tat com.intellij.junit6.JUnit6IdeaTestRunner.startRunnerWithArgs(JUnit6IdeaTestRunner.java:67)\n\tat com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38)\n\tat com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11)\n\tat com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35)\n\tat com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:237)\n\tat com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:58)\n\tSuppressed: Attached Guest Language Frames (0)\nInternal GraalVM error, please report at https://github.com/oracle/graal/issues/.\n```\n\nLet me know if there is any other information you need to help fix this.","author":{"url":"https://github.com/IshanSanjeevUpadhyay","@type":"Person","name":"IshanSanjeevUpadhyay"},"datePublished":"2025-12-09T16:09:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/575/graalpython/issues/575"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ff556f08-2a35-41e7-4638-dc4397c6632b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CE2C:3486B:66111:8751B:696970A8 |
| html-safe-nonce | ba63ea544bdfa51509f343e3454b72dae6395890d9ff8edea8c6458d2af28a86 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTJDOjM0ODZCOjY2MTExOjg3NTFCOjY5Njk3MEE4IiwidmlzaXRvcl9pZCI6IjU5NjA1MjUyMzY4NTM2MzMxOTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4b3d2c2dffa76c8858a98a77d6887fcb7e921e43a9838d2798f0f000f6ba3602 |
| hovercard-subject-tag | issue:3711624860 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/oracle/graalpython/575/issue_layout |
| twitter:image | https://opengraph.githubassets.com/be6c74fc072dbe5a54fe0be990c6dda6084f0d1acf19868455d810754f054be7/oracle/graalpython/issues/575 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/be6c74fc072dbe5a54fe0be990c6dda6084f0d1acf19868455d810754f054be7/oracle/graalpython/issues/575 |
| og:image:alt | I am encountering assertion failures in com.oracle.graal.python.util.PythonUtils.createMethod. This occurs during unit tests where a GraalVM Engine is shared across multiple Context instances. This... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | IshanSanjeevUpadhyay |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6f193beb8ff08443adc07685d75302ab8aaf0a135f6e251c3ff3112c8deb881 |
| turbo-cache-control | no-preview |
| go-import | github.com/oracle/graalpython git https://github.com/oracle/graalpython.git |
| octolytics-dimension-user_id | 4430336 |
| octolytics-dimension-user_login | oracle |
| octolytics-dimension-repository_id | 129883600 |
| octolytics-dimension-repository_nwo | oracle/graalpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 129883600 |
| octolytics-dimension-repository_network_root_nwo | oracle/graalpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ec4d88fbe7ed62446d90b0a6d8e6db4248a8f8b8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width