From: fjilderda@... Date: 2016-12-05T10:56:16+00:00 Subject: [ruby-core:78494] [Ruby trunk Bug#12994] Embedded ruby vs2015 build crashes Issue #12994 has been updated by Freddy Jilderda. I'm sorry I was not clear, what I mean is I'm updating a C++ application from VS2010 to VS2015. This application embeds a ruby engine (version 1.8.6), so that users of the application can uses ruby scripting to add custom functionality to the application. I'm updating ruby from 1.8.6 to 2.4.0 as this will be the version that can be build using VS2015. The code for initialising the ruby engine (that I know of) is: -call ruby_init () to initialise the ruby vm -call ruby_init_loadpath () to make loading of modules possible (see for instance: http://stackoverflow.com/questions/626333/embedding-a-ruby-interpreter-in-a-c-app). 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. ---------------------------------------- Bug #12994: Embedded ruby vs2015 build crashes https://bugs.ruby-lang.org/issues/12994#change-61872 * 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: