* [ruby-core:121293] [Ruby master Bug#21181] LoadError in P4Ruby on Windows (MSYS2) After Ruby Security Update
@ 2025-03-11 13:38 hjain (Himanshu Jain) via ruby-core
2025-03-11 13:44 ` [ruby-core:121294] " hjain (Himanshu Jain) via ruby-core
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: hjain (Himanshu Jain) via ruby-core @ 2025-03-11 13:38 UTC (permalink / raw)
To: ruby-core; +Cc: hjain (Himanshu Jain)
Issue #21181 has been reported by hjain (Himanshu Jain).
----------------------------------------
Bug #21181: LoadError in P4Ruby on Windows (MSYS2) After Ruby Security Update
https://bugs.ruby-lang.org/issues/21181
* Author: hjain (Himanshu Jain)
* Status: Open
* ruby -v: 3.0.7, 3.1.5, 3.2.4, 3.3.1
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN
----------------------------------------
## After updating to Ruby versions 3.0.7, 3.1.5, 3.2.4, and 3.3.1, P4Ruby fails to load with the following error:
***<internal:c:/Ruby/x64/ruby-3.0.7-devkit/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require':
126: The specified module could not be found. - C:/build/p4ruby/lib/P4.so (LoadError)** ***
This issue started occurring after the release of CVE-2024-27282: Arbitrary memory address read vulnerability with Regex search. The same P4Ruby build worked on earlier Ruby versions but now consistently fails.
Environment:
* OS: Windows 10/11
* Ruby Versions Affected: 3.0.7, 3.1.5, 3.2.4, 3.3.1
* MSYS2 Version: mingw-w64-x86_64 toolchain
* Perforce P4Ruby Version: Latest from source
* Compiler Used: x86_64-w64-mingw32-gcc (from MSYS2)
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-core:121294] [Ruby master Bug#21181] LoadError in P4Ruby on Windows (MSYS2) After Ruby Security Update
2025-03-11 13:38 [ruby-core:121293] [Ruby master Bug#21181] LoadError in P4Ruby on Windows (MSYS2) After Ruby Security Update hjain (Himanshu Jain) via ruby-core
@ 2025-03-11 13:44 ` hjain (Himanshu Jain) via ruby-core
2025-03-11 22:27 ` [ruby-core:121301] " alanwu (Alan Wu) via ruby-core
2025-03-12 5:44 ` [ruby-core:121305] " nobu (Nobuyoshi Nakada) via ruby-core
2 siblings, 0 replies; 4+ messages in thread
From: hjain (Himanshu Jain) via ruby-core @ 2025-03-11 13:44 UTC (permalink / raw)
To: ruby-core; +Cc: hjain (Himanshu Jain)
Issue #21181 has been updated by hjain (Himanshu Jain).
After updating to Ruby versions 3.0.7, 3.1.5, 3.2.4, and 3.3.1, P4Ruby fails to load with the following error:
internal:c:/Ruby/x64/ruby-3.0.7-devkit/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb:85:in `require':
126: The specified module could not be found. - C:/build/p4ruby/lib/P4.so (LoadError)
This issue started occurring after the release of CVE-2024-27282: Arbitrary memory address read vulnerability with Regex search.
I am able to load the P4Ruby build from previous Ruby versions in these new versions.
However, P4Ruby built with these new Ruby versions fails to load on both old and new Ruby versions.
Environment:
OS: Windows 10/11
Ruby Versions Affected: 3.0.7, 3.1.5, 3.2.4, 3.3.1
MSYS2 Version: mingw-w64-x86_64 toolchain
Perforce P4Ruby Version: Latest from source
Compiler Used: x86_64-w64-mingw32-gcc (from MSYS2)
----------------------------------------
Bug #21181: LoadError in P4Ruby on Windows (MSYS2) After Ruby Security Update
https://bugs.ruby-lang.org/issues/21181#change-112257
* Author: hjain (Himanshu Jain)
* Status: Open
* ruby -v: 3.0.7, 3.1.5, 3.2.4, 3.3.1
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN
----------------------------------------
## After updating to Ruby versions 3.0.7, 3.1.5, 3.2.4, and 3.3.1, P4Ruby fails to load with the following error:
***<internal:c:/Ruby/x64/ruby-3.0.7-devkit/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require':
126: The specified module could not be found. - C:/build/p4ruby/lib/P4.so (LoadError)** ***
This issue started occurring after the release of CVE-2024-27282: Arbitrary memory address read vulnerability with Regex search. The same P4Ruby build worked on earlier Ruby versions but now consistently fails.
Environment:
* OS: Windows 10/11
* Ruby Versions Affected: 3.0.7, 3.1.5, 3.2.4, 3.3.1
* MSYS2 Version: mingw-w64-x86_64 toolchain
* Perforce P4Ruby Version: Latest from source
* Compiler Used: x86_64-w64-mingw32-gcc (from MSYS2)
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-core:121301] [Ruby master Bug#21181] LoadError in P4Ruby on Windows (MSYS2) After Ruby Security Update
2025-03-11 13:38 [ruby-core:121293] [Ruby master Bug#21181] LoadError in P4Ruby on Windows (MSYS2) After Ruby Security Update hjain (Himanshu Jain) via ruby-core
2025-03-11 13:44 ` [ruby-core:121294] " hjain (Himanshu Jain) via ruby-core
@ 2025-03-11 22:27 ` alanwu (Alan Wu) via ruby-core
2025-03-12 5:44 ` [ruby-core:121305] " nobu (Nobuyoshi Nakada) via ruby-core
2 siblings, 0 replies; 4+ messages in thread
From: alanwu (Alan Wu) via ruby-core @ 2025-03-11 22:27 UTC (permalink / raw)
To: ruby-core; +Cc: alanwu (Alan Wu)
Issue #21181 has been updated by alanwu (Alan Wu).
Status changed from Open to Feedback
Make sure P4.so exists and try passing an absolute path of it to `require`.
----------------------------------------
Bug #21181: LoadError in P4Ruby on Windows (MSYS2) After Ruby Security Update
https://bugs.ruby-lang.org/issues/21181#change-112264
* Author: hjain (Himanshu Jain)
* Status: Feedback
* ruby -v: 3.0.7, 3.1.5, 3.2.4, 3.3.1
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN
----------------------------------------
## After updating to Ruby versions 3.0.7, 3.1.5, 3.2.4, and 3.3.1, P4Ruby fails to load with the following error:
***<internal:c:/Ruby/x64/ruby-3.0.7-devkit/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require':
126: The specified module could not be found. - C:/build/p4ruby/lib/P4.so (LoadError)** ***
This issue started occurring after the release of CVE-2024-27282: Arbitrary memory address read vulnerability with Regex search. The same P4Ruby build worked on earlier Ruby versions but now consistently fails.
Environment:
* OS: Windows 10/11
* Ruby Versions Affected: 3.0.7, 3.1.5, 3.2.4, 3.3.1
* MSYS2 Version: mingw-w64-x86_64 toolchain
* Perforce P4Ruby Version: Latest from source
* Compiler Used: x86_64-w64-mingw32-gcc (from MSYS2)
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-core:121305] [Ruby master Bug#21181] LoadError in P4Ruby on Windows (MSYS2) After Ruby Security Update
2025-03-11 13:38 [ruby-core:121293] [Ruby master Bug#21181] LoadError in P4Ruby on Windows (MSYS2) After Ruby Security Update hjain (Himanshu Jain) via ruby-core
2025-03-11 13:44 ` [ruby-core:121294] " hjain (Himanshu Jain) via ruby-core
2025-03-11 22:27 ` [ruby-core:121301] " alanwu (Alan Wu) via ruby-core
@ 2025-03-12 5:44 ` nobu (Nobuyoshi Nakada) via ruby-core
2 siblings, 0 replies; 4+ messages in thread
From: nobu (Nobuyoshi Nakada) via ruby-core @ 2025-03-12 5:44 UTC (permalink / raw)
To: ruby-core; +Cc: nobu (Nobuyoshi Nakada)
Issue #21181 has been updated by nobu (Nobuyoshi Nakada).
Description updated
Seems like a DLL used by that `P4.so` lacked.
Check the DLLs by `ldd C:/build/p4ruby/lib/P4.so`.
----------------------------------------
Bug #21181: LoadError in P4Ruby on Windows (MSYS2) After Ruby Security Update
https://bugs.ruby-lang.org/issues/21181#change-112267
* Author: hjain (Himanshu Jain)
* Status: Feedback
* ruby -v: 3.0.7, 3.1.5, 3.2.4, 3.3.1
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN
----------------------------------------
After updating to Ruby versions 3.0.7, 3.1.5, 3.2.4, and 3.3.1, P4Ruby fails to load with the following error:
```
<internal:c:/Ruby/x64/ruby-3.0.7-devkit/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require':
126: The specified module could not be found. - C:/build/p4ruby/lib/P4.so (LoadError)
```
This issue started occurring after the release of CVE-2024-27282: Arbitrary memory address read vulnerability with Regex search. The same P4Ruby build worked on earlier Ruby versions but now consistently fails.
Environment:
* OS: Windows 10/11
* Ruby Versions Affected: 3.0.7, 3.1.5, 3.2.4, 3.3.1
* MSYS2 Version: mingw-w64-x86_64 toolchain
* Perforce P4Ruby Version: Latest from source
* Compiler Used: x86_64-w64-mingw32-gcc (from MSYS2)
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-03-12 5:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-11 13:38 [ruby-core:121293] [Ruby master Bug#21181] LoadError in P4Ruby on Windows (MSYS2) After Ruby Security Update hjain (Himanshu Jain) via ruby-core
2025-03-11 13:44 ` [ruby-core:121294] " hjain (Himanshu Jain) via ruby-core
2025-03-11 22:27 ` [ruby-core:121301] " alanwu (Alan Wu) via ruby-core
2025-03-12 5:44 ` [ruby-core:121305] " nobu (Nobuyoshi Nakada) via ruby-core
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).