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

From: usa@...
Date: 2016-11-30 15:53:04 UTC
List: ruby-core #78445
Issue #12994 has been updated by Usaku NAKAMURA.

Status changed from Open to Feedback

I don't know what is "an ruby embedded engine".
But I can say that you have to call `rb_w32_sysinit` before calling `ruby_init` on Windows.

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

* 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