[MacRuby] #1356: Segfault occurs when invoked a Pointer.new within some threads.
MacRuby
ruby-noreply at macosforge.org
Thu Jul 7 09:55:58 PDT 2011
#1356: Segfault occurs when invoked a Pointer.new within some threads.
----------------------------------+-----------------------------------------
Reporter: watson1978@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords:
----------------------------------+-----------------------------------------
Comment(by watson1978@…):
It looks like it needs exclusive control in
RoxorCore::gen_to_ocval_convertor()
{{{
#!diff
diff --git a/vm.cpp b/vm.cpp
index 5896ca6..a959bf0 100644
--- a/vm.cpp
+++ b/vm.cpp
@@ -3035,6 +3035,8 @@ RoxorCore::gen_to_rval_convertor(std::string type)
void *
RoxorCore::gen_to_ocval_convertor(std::string type)
{
+ RoxorCoreLock lock;
+
std::map<std::string, void *>::iterator iter =
to_ocval_convertors.find(type);
if (iter != to_ocval_convertors.end()) {
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/1356#comment:1>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list