Project

General

Profile

Actions

Bug #11423

closed

ruby_cleanup does not reset initialized flag

Added by scorpion007 (Alex Budovski) over 8 years ago. Updated over 8 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:70274]

Description

ruby_setup checks for this static initialized to determine whether to run.

int
ruby_setup(void)
{
    static int initialized = 0;
    int state;

    if (initialized)
	return 0;
    initialized = 1;

But ruby_cleanup fails to reset it, causing future initializations to do nothing. This means an embedded app which runs ruby scripts in a setup/run/cleanup cycle will crash the second time.


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #13380: [PATCH] Remove unused Init_frozen_strings declarationClosedsorah (Sorah Fukumori)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0