[#78633] ruby/spec needs help from CRuby committers — Benoit Daloze <eregontp@...>

Currently, ruby/spec is maintained mostly by individuals and enjoys the

13 messages 2016/12/13

[ruby-core:78506] [Ruby trunk Bug#12994] Embedded ruby vs2015 build crashes

From: nobu@...
Date: 2016-12-06 07:20:34 UTC
List: ruby-core #78506
Issue #12994 has been updated by Nobuyoshi Nakada.


Freddy Jilderda wrote:
> Also the function `ruby_sysinit` in ruby.c (which is the one calling `rb_w32_sysinit`) mentions in the header comment that this function should not be called by programs embedding the CRuby interpreter.

Not to call `ruby_sysinit` doesn't mean not to call `rb_w32_sysinit`.

----------------------------------------
Bug #12994: Embedded ruby vs2015 build crashes
https://bugs.ruby-lang.org/issues/12994#change-61888

* Author: Freddy Jilderda
* Status: Feedback
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.4.0dev (2016-11-07 v2_4_0_preview2 56129) [i386-mswin32_140]
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
When an embedded ruby engine in a vs2015 application is initialised using ruby_init the function set_pioinfo_extra in win32.c is not called.
This results in a crash when ruby_init is called and it is trying to derefence the __pioinfo pointer in the _pioinfo function in win32.c



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next