Benoit Daloze
Benoit Daloze
Thank you for the report. I had a quick look and I observed `$!` isn't set just before the `raise` no-args. And interestingly it does work fine when using `raise...
This seems caused by this change: https://github.com/oracle/truffleruby/commit/19f0e6af33651e177691a5ecb5a7a8b1dc3e8409 Reverting the changes in `cext_ruby.rb` make the example in the description work correctly. So it seems the semantics `$!` around calls to C...
I tried looking in CRuby if/how they clear `$!` but I couldn't find any special handling of $! for C functions (VM_METHOD_TYPE_CFUNC, vm_call0_body->vm_call0_cfunc_with_frame). There is some handling of `errinfo` in...
@aardvark179 Would you remember where/how CRuby sets `rb_errinfo` to nil on calls to C methods?
I'm looking at this a bit again, @nirvdrum reported a similar issue. With this script with more debug prints: ```ruby require "openssl" begin p in_first_begin: $! raise StandardError, "aaa" rescue...
I filed a CRuby issue for this because it's not clear to me if clearing $! on calling a method defined in C is intended or a CRuby bug: https://bugs.ruby-lang.org/issues/20455
After thinking about this more and what I understood from the CRuby semantics and discussion with Koichi, I think the best fix for now is to use a completely separate...
As @nirvdrum said, and from https://github.com/oracle/truffleruby/issues/1861#issuecomment-1369879140: `debase` [relies on](https://github.com/ruby-debug/debase/blob/520246269ab417cd4736caf4c395eb9562d87967/debase.gemspec#L29) `debase-ruby_core_source`, i.e., implementation details which are not supposed to be used even for CRuby. So it does not seem reasonable or...
I have filed an issue on the RubyMine tracker: https://youtrack.jetbrains.com/issue/RUBY-30772 Please vote or comment on it to share your interest.
Thank you for the report, I can reproduce it locally. It sounds like `UNUSED` is not properly defined, not immediately clear why. ``` /home/eregon/.rubies/truffleruby-dev/lib/gems/gems/numo-linalg-0.1.7/ext/numo/linalg/blas/gen/../tmpl/nrm2.c:36:57: error: expected ')' blas_s_dnrm2(int argc, VALUE...