search for: rb_gc_mark

Displaying 18 results from an estimated 18 matches for "rb_gc_mark".

2006 Dec 07
8
crash on repeated search
...tor more often, but I''m not sure that''s a stable workaround under the circumstances. This one isn''t a segfault, but more complicated versions have been. This bug manifests as a error in the garbage collector: $ ruby rw_ferret_test.rb .......rw_ferret_test.rb:20: [BUG] rb_gc_mark(): unknown data type 0x28(0x402ba3a4) non object ruby 1.8.2 (2005-04-11) [i386-linux] Aborted Here''s the code: require ''rubygems'' require ''ferret'' include Ferret def phrase(num) "a_fairly_long_phrase%05d"%num end LOOPS=(ARGV[1]||40).t...
2007 Jul 21
0
[1135] trunk/wxruby2/swig/mark_free_impl.i: Convert from DOS to Unix newlines
...w should be marked, -// not those picked up as marked by in-scope variables by -// Ruby. Otherwise, segfaults may result. Because Sizers are SWIG -// directors, they must be preserved from GC. -void GC_mark_SizerBelongingToWindow(wxSizer *wx_sizer, VALUE rb_sizer) -{ - // First, mark this sizer - rb_gc_mark( rb_sizer ); - - // Then loop over hte sizer''s content and mark each sub-sizer in turn - wxSizerItemList& children = wx_sizer->GetChildren(); - for ( wxwxSizerItemListNode *node = children.GetFirst(); -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&am...
2007 Jul 21
0
[1127] trunk/wxruby2: Move shared C++ GC functions into separate file included into wx.i
...w should be marked, +// not those picked up as marked by in-scope variables by +// Ruby. Otherwise, segfaults may result. Because Sizers are SWIG +// directors, they must be preserved from GC. +void GC_mark_SizerBelongingToWindow(wxSizer *wx_sizer, VALUE rb_sizer) +{ + // First, mark this sizer + rb_gc_mark( rb_sizer ); + + // Then loop over hte sizer''s content and mark each sub-sizer in turn + wxSizerItemList& children = wx_sizer->GetChildren(); + for ( wxwxSizerItemListNode *node = children.GetFirst(); +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&am...
2009 Jun 15
6
Spork and Merb and rSpec
Andy Shipman wrote: > When running spork on a merb application, whenever a spec is run I get > the following error from the Spork server. > > /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.11/lib/merb-core/bootloader.rb:1358: > [BUG] rb_gc_mark(): unknown data type 0x3c(0x2203d0) non object > ruby 1.8.7 (2009-06-08 patchlevel 173) [i686-darwin9] > > Which crashes the Spork server. Have you tried it on 1.8.6? Scott > > Anyone else out there had experience in getting Merb and Spork running > together nicely? > >...
2007 Jun 27
0
[1089] trunk/wxruby2/swig/classes/TreeCtrl.i: Hide missing method call in TreeCtrl on Win32
...ound </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspimg_list = tree_ctrl->GetImageList(); </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspif ( img_list ) rb_gc_mark(SWIG_RubyInstanceFor(img_list)); </span><ins>+#if !defined(__WXMSW__) </ins><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspimg_list = tree_ctrl->GetButtonsImageList(); </span><span class="cx"> &amp...
2007 Jun 05
0
[1046] trunk/wxruby2/swig/classes/TreeCtrl.i: Prevent crashes in TreeCtrl from premature deletion of associated ImageList
...p;nbsp&nbsp&nbsp&nbsp// First check if there''s ImageLists and mark if found +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspimg_list = tree_ctrl->GetImageList(); +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspif ( img_list ) rb_gc_mark(SWIG_RubyInstanceFor(img_list)); +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspimg_list = tree_ctrl->GetButtonsImageList(); +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspif ( img_list ) rb_gc_mark(SWIG_RubyInstanceFor(img_list)); +&nbsp&a...
2008 Jan 21
0
Wx::GenericDirCtrl Segfault Crash
...b7e24e23 in rb_each () from /usr/lib/libruby.so.1.8 #22 0xb7e2fd01 in rb_iterate () from /usr/lib/libruby.so.1.8 #23 0xb77007a2 in wxRubyApp::mark_wxRubyApp () from /usr/lib/ruby/site_ruby/1.8/i586-linux-gnu/wxruby2.so #24 0xb7e48ba0 in Init_heap () from /usr/lib/libruby.so.1.8 #25 0xb7e49101 in rb_gc_mark () from /usr/lib/libruby.so.1.8 #26 0xb7e972d9 in st_foreach () from /usr/lib/libruby.so.1.8 ---Type <return> to continue, or q <return> to quit--- #27 0xb7e486ae in rb_mark_hash () from /usr/lib/libruby.so.1.8 #28 0xb7e48f46 in Init_heap () from /usr/lib/libruby.so.1.8 #29 0xb7e49101 i...
2007 Jul 05
0
[1109] trunk/wxruby2/swig: Move marking of MenuBar from direct %markfunc to via mark_wxFrame, so
...&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp wxMenu* menu = menu_bar->GetMenu(i); -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp VALUE rb_menu = SWIG_RubyInstanceFor(menu); -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp rb_gc_mark(rb_menu); -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp} -} -%} - -%markfunc wxMenuBar "mark_wxMenuBar"; - </del><span class="cx"> %import "include/wxObject.h" </span><span class="cx"> %import "includ...
2007 Jul 20
0
[1123] trunk/wxruby2/swig/wx.i: Check sizers being marked have a ruby rep and are not internal Wx-only,
...void GC_mark_SizerBelongingToWindow(wxSizer *wx_sizer) </del><ins>+void GC_mark_SizerBelongingToWindow(wxSizer *wx_sizer, VALUE rb_sizer) </ins><span class="cx"> { </span><span class="cx"> // First, mark this sizer </span><del>- rb_gc_mark( SWIG_RubyInstanceFor(wx_sizer) ); </del><ins>+ rb_gc_mark( rb_sizer ); </ins><span class="cx"> </span><span class="cx"> // Then loop over hte sizer''s content and mark each sub-sizer in turn </span><span class="cx&...
2007 May 22
0
[1032] trunk/wxruby2/swig: Preserve Sizers associated with Windows from GC; fix several sample
...zer(); + if ( wx_sizer ) +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp{ +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp VALUE rb_sizer = SWIG_RubyInstanceFor(wx_sizer); +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp rb_gc_mark(rb_sizer); +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp} + + wxCaret* wx_caret = wx_win->GetCaret(); + if ( wx_caret ) +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp{ +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nb...
2007 Jul 04
0
[1108] trunk/wxruby2/swig: Revised mem mgmt for Sizers to address more GC crashes in Sizers demo
...bsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp VALUE rb_child_sizer = SWIG_RubyInstanceFor(child_sizer); -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp rb_gc_mark(rb_child_sizer); -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp} -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp} -} -%} - </del></span></pre></div>...
2007 Feb 13
10
Is there a limit on the size of a template?
Hello, I have recently run across the following error: /usr/lib/ruby/1.8/yaml/rubytypes.rb:315: [BUG] Segmentation fault This has happened after adding a particularly large template file with ruby 1.8.1. Thank you, -- Rob -- ____________________________________________________________________________________ Be a PS3 game guru. Get your game face on with the latest PS3 news and previews
2006 Oct 11
0
Memory allocation bug with index.search
...\t14004 \"61433\": 1.751220\n\t14005 \"61434\": 1.751220\n\t14006 \"61435\": 1.751220\n]\n" and this one doesn''t.. : >> INDEX.search(''type:hardware'', :limit => :all).to_s /usr/local/lib/site_ruby/1.8/ferret/index.rb:718: [BUG] rb_gc_mark(): unknown data type 0x18(0x89b4268) non objectruby 1.8.4 (2005-12-24) [i486-linux] Aborted i tried to get to the limit point and got it : works : >> INDEX.search(''type:hardware'', :limit => 9719).to_s don''t work : >> INDEX.search(''type:hardware&...
2007 May 22
0
[1029] trunk/wxruby2/swig/classes/MenuBar.i: Add special GC protection for Wx::Menu to prevent premature destruction
...&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp wxMenu* menu = menu_bar->GetMenu(i); +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp VALUE rb_menu = SWIG_RubyInstanceFor(menu); +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp rb_gc_mark(rb_menu); +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp} +} +%} + +%markfunc wxMenuBar "mark_wxMenuBar"; + </ins><span class="cx"> %import "include/wxObject.h" </span><span class="cx"> %import "includ...
2006 Aug 15
5
Ferret Segmentation Faults
Hi, I am getting a number of segmentation faults using Ferret 0.9.5, Fedora Core 5 and Ruby 1.8.4 I installed it with the recommended gem install ferret and example segmentation fault creation line would be as follows: @records = FerretConfig::INDEX.search("address_line_2:\"Dumbarton\"") I am also using acts_as_ferret and rails 1.15 but think this is an issue with
2007 May 28
0
[1033] trunk/wxruby2/swig: GC fixes for nested sizers; fix crashes in html.rb demo
...bsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp VALUE rb_child_sizer = SWIG_RubyInstanceFor(child_sizer); +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp rb_gc_mark(rb_child_sizer); +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp} +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp} +} +%} + </ins></span></pre> </div&gt...
2006 Aug 31
4
crashes
...r debug: puppetconfig/puppetd/file=/etc/puppet/localconfig/mode: File does not exist; cannot set mode debug: Finishing transaction -741277348 with 6 changes info: Caching configuration at /etc/puppet/localconfig.yaml debug: Creating default schedules /usr/lib/ruby/1.8/puppet/parameter.rb:335: [BUG] rb_gc_mark(): unknown data type 0x20(0x808b298) non object ruby 1.8.4 (2005-12-24) [i486-linux] Aborted Thanks, Christian
2006 Dec 15
15
running mongrel in production on win32
Hey guys, I''m running the mongrel server that comes with rails-1.2rc1 for development on a winxp box, anticipating taking it into production on a win2k3 box in the next few weeks. I''ve had a couple of crashes occur during development that give me pause, however. I made a ticket for the last one here: http://dev.rubyonrails.org/ticket/6841 I know, or at least believe, that