ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: Charlie Savage <redmine@ruby-lang.org>
To: ruby-core@ruby-lang.org
Subject: [ruby-core:22115] [Bug #1161] Build Assertion Failure with VC+++ - Unitialized variable in rb_define_hooked_variable
Date: Sun, 15 Feb 2009 06:19:51 +0900	[thread overview]
Message-ID: <499735da66633_84f4cc20c84788@redmine.ruby-lang.org> (raw)

Bug #1161: Build Assertion Failure with VC+++ - Unitialized variable in rb_define_hooked_variable
http://redmine.ruby-lang.org/issues/show/1161

Author: Charlie Savage
Status: Open, Priority: Normal
Category: core
ruby -v: ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mswin32_90]

Build ruby 1.9.1 with VC 2008 using the following flags:

RUNTIMEFLAG = -MDd
OPTFLAGS = -Od -RTC1
LDFLAGS = -link -INCREMENTAL:NO -DEBUG -OPT:REF -OPT:ICF

Failure occurs when running miniruby.exe for the first time:

Run-Time Check Failure #3 - The variable 'tmp' is being used without being initialized.

This patch fixes the problem:

--- variable.c	2009-02-14 14:18:26 -0700
+++ variable.old.c	2009-02-14 14:16:05 -0700
@@ -484,8 +484,7 @@
     gvar->setter = setter?(gvar_setter_t *)setter:var_setter;
     gvar->marker = var_marker;
 
-    if (var)
-      RB_GC_GUARD(tmp);
+    RB_GC_GUARD(tmp);
 }
 
 void


----------------------------------------
http://redmine.ruby-lang.org

             reply	other threads:[~2009-02-14 21:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-14 21:19 Charlie Savage [this message]
2009-02-14 21:28 ` [ruby-core:22117] [Bug #1161] Build Assertion Failure with VC+++ - Unitialized variable in rb_define_hooked_variable Charlie Savage
2009-02-15  2:45 ` [ruby-core:22126] [Bug #1161](Closed) " Nobuyoshi Nakada

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=499735da66633_84f4cc20c84788@redmine.ruby-lang.org \
    --to=ruby-core@ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).