ErezGeva2@gmail.com (Erez Geva)
- Login: ErezGeva2@gmail.com
- Email: ErezGeva2@gmail.com
- Registered on: 08/04/2024
- Last sign in: 08/04/2024
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 1 | 1 | 2 |
Activity
08/11/2024
-
09:58 AM Ruby Bug #20666: Segmentation fault instead of LoadError exception
- Did some minimising.
# Three sources:
## `extconf.rb`
> require 'mkmf'
> ...
## `good.cpp`
> #include <ruby.h>
> ...
## `load.rb`
> begin
> ...
# Result on Linux
`$ ruby extconf.rb; make; ruby -I. load.rb; echo $?`
> creating extconf.h
...
08/08/2024
-
11:30 AM Ruby Bug #20666: Segmentation fault instead of LoadError exception
- # Testing with `mkmf`
It is worse.
I build the extension in `Test` using `mkmf`.
Now both Ruby issue a Segmentation fault.
Ruby 3.1.6 and Ruby 3.2.5.
<br>
Using `-L<Ruby lib dir> -l<Ruby lib> <RbConfig::CONFIG["LIBS"]>`
Works with the ...
08/07/2024
-
10:26 PM Ruby Misc #20665: Swig testing of Ruby with MinGW-w64 UCRT
- The problem was I add `-static-libstdc++ -static-libgcc` and `-lucrt` to the linking.
But once I removed and left only `-l<Ruby lib> <RbConfig::CONFIG["LIBS"]>` in linking.
All my tests passed smoothly.
Sometime Windows require some hac... -
09:46 PM Ruby Bug #20666: Segmentation fault instead of LoadError exception
- ~~source.zip added~~
To build shared library using MinGW-w64 ucrt64:
`g++ -c -std=c++20 import_fragments_wrap.cxx -I<Ruby dir> -I<Ruby arch dir>`
`g++ -shared -std=c++20 import_fragments_wrap.o -L<Ruby lib dir> -l<Ruby lib> <RbConfig::C... -
08:29 PM Ruby Bug #20666: Segmentation fault instead of LoadError exception
- I do add the new Ruby to the SWIG project testing.
If I would suspect it is a SWIG bug, I would not hesitate and report it there.
The same test works with older Ruby:
ruby 3.1.6p260 (2024-05-29 revision a777087be6) [x64-mingw-ucrt]
...
08/04/2024
-
06:36 PM Ruby Bug #20666 (Open): Segmentation fault instead of LoadError exception
- Using ruby -v
ruby 3.2.5 (2024-07-26 revision 31d0f1a2e7) [x64-mingw-ucrt]
From [GitHub windows 2022](https://github.com/actions/runner-images/blob/main/images/windows/Windows2022-Readme.md
)
We run the SWIG test:
[import_fragme... -
04:53 PM Ruby Misc #20665: Swig testing of Ruby with MinGW-w64 UCRT
- I manage to run Ruby version 3.1.6 with MinGW-w64 UCRT.
I have a crash with 3.2.5, which I will investigate.
This bug can be closed!
Erez -
04:12 PM Ruby Misc #20665 (Closed): Swig testing of Ruby with MinGW-w64 UCRT
- Hi,
I try to add SWIG project testing with already installed Ruby on [GitHub Windows2022](https://github.com/actions/runner-images/blob/main/images/windows/Windows2022-Readme.md).
I manage to test with Ruby version 3.0.7 and instal...