{"action":"opened","issue":{"url":"https://api.github.com/repos/oracle/truffleruby/issues/1508","repository_url":"https://api.github.com/repos/oracle/truffleruby","labels_url":"https://api.github.com/repos/oracle/truffleruby/issues/1508/labels{/name}","comments_url":"https://api.github.com/repos/oracle/truffleruby/issues/1508/comments","events_url":"https://api.github.com/repos/oracle/truffleruby/issues/1508/events","html_url":"https://github.com/oracle/truffleruby/issues/1508","id":388823420,"node_id":"MDU6SXNzdWUzODg4MjM0MjA=","number":1508,"title":"BSON::ByteBuffer#put_hash causes Cannot convert LLVMTypedForeignObject+0x0 to LLVMNativePointer","user":{"login":"deepj","id":33736,"node_id":"MDQ6VXNlcjMzNzM2","avatar_url":"https://avatars0.githubusercontent.com/u/33736?v=4","gravatar_id":"","url":"https://api.github.com/users/deepj","html_url":"https://github.com/deepj","followers_url":"https://api.github.com/users/deepj/followers","following_url":"https://api.github.com/users/deepj/following{/other_user}","gists_url":"https://api.github.com/users/deepj/gists{/gist_id}","starred_url":"https://api.github.com/users/deepj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepj/subscriptions","organizations_url":"https://api.github.com/users/deepj/orgs","repos_url":"https://api.github.com/users/deepj/repos","events_url":"https://api.github.com/users/deepj/events{/privacy}","received_events_url":"https://api.github.com/users/deepj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-07T21:39:10Z","updated_at":"2018-12-07T21:39:10Z","closed_at":null,"author_association":"NONE","body":"\r\nTo reproduce:\r\n```ruby\r\nrequire 'bson'\r\n\r\nbuffer = BSON::ByteBuffer.new\r\nbuffer.put_hash({}, false)\r\n```\r\n\r\nError:\r\n\r\n```\r\nRuntimeError: Cannot convert LLVMTypedForeignObject+0x0 to LLVMNativePointer (IllegalStateException)\r\n\tfrom java.lang.Throwable.<init>(Throwable.java:287)\r\n\tfrom java.lang.Exception.<init>(Exception.java:84)\r\n\tfrom java.lang.RuntimeException.<init>(RuntimeException.java:80)\r\n\tfrom java.lang.IllegalStateException.<init>(IllegalStateException.java:75)\r\n\tfrom com.oracle.truffle.llvm.runtime.nodes.api.LLVMToNativeNode$LLVMObjectToNativeNode.transitionToNative(LLVMToNativeNode.java:117)\r\n\tfrom com.oracle.truffle.llvm.runtime.nodes.api.LLVMToNativeNodeGen$LLVMObjectToNativeNodeGen.executeAndSpecialize(LLVMToNativeNodeGen.java:301)\r\n\tfrom com.oracle.truffle.llvm.runtime.nodes.api.LLVMToNativeNodeGen$LLVMObjectToNativeNodeGen.executeWithTarget(LLVMToNativeNodeGen.java:201)\r\n\tfrom com.oracle.truffle.llvm.runtime.nodes.api.LLVMToNativeNode.doOther(LLVMToNativeNode.java:78)\r\n\tfrom com.oracle.truffle.llvm.runtime.nodes.api.LLVMToNativeNodeGen.executeAndSpecialize(LLVMToNativeNodeGen.java:129)\r\n\tfrom com.oracle.truffle.llvm.runtime.nodes.api.LLVMToNativeNodeGen.executeWithTarget(LLVMToNativeNodeGen.java:50)\r\nCaused by:\r\nMessage not supported: TO_NATIVE (UnsupportedMessageException)\r\n\tfrom java.lang.Throwable.<init>(Throwable.java:265)\r\n\tfrom java.lang.Exception.<init>(Exception.java:66)\r\n\tfrom com.oracle.truffle.api.interop.InteropException.<init>(InteropException.java:52)\r\n\tfrom com.oracle.truffle.api.interop.UnsupportedMessageException.<init>(UnsupportedMessageException.java:57)\r\n\tfrom com.oracle.truffle.api.interop.UnsupportedMessageException.raise(UnsupportedMessageException.java:84)\r\n\tfrom org.truffleruby.interop.RubyMessageResolution$ForeignToNativeNode.access(RubyMessageResolution.java:190)\r\n\tfrom org.truffleruby.interop.RubyMessageResolutionForeign$ForeignToNativeSubNode.accessWithTarget(RubyMessageResolutionForeign.java:506)\r\n\tfrom org.truffleruby.interop.RubyMessageResolutionForeignFactory$ForeignToNativeSubNodeGen.executeAndSpecialize(RubyMessageResolutionForeignFactory.java:602)\r\n\tfrom org.truffleruby.interop.RubyMessageResolutionForeignFactory$ForeignToNativeSubNodeGen.executeWithTarget(RubyMessageResolutionForeignFactory.java:588)\r\n\tfrom org.truffleruby.interop.RubyMessageResolutionForeign$ForeignToNativeSubNode$TO_NATIVERootNode.execute(RubyMessageResolutionForeign.java:523)\r\nTranslated to internal error\r\n\tfrom ~/.rubies/truffleruby-1.0.0-rc10/lib/truffle/truffle/cext.rb:221:in `execute_without_conversion'\r\n\tfrom ~/.rubies/truffleruby-1.0.0-rc10/lib/truffle/truffle/cext.rb:221:in `execute_with_mutex'\r\n\tfrom ~/.rubies/truffleruby-1.0.0-rc10/lib/truffle/truffle/cext_ruby.rb:36:in `put_hash'\r\n\tfrom (irb):6\r\n\tfrom ~/.rubies/truffleruby-1.0.0-rc10/bin/irb:29:in `<main>'\r\n```"}}
{"actor":{"display_login":"deepj"}}