[#47409] [ruby-trunk - Feature #6973][Open] Add an #integral? method to Numeric to test for whole-number values — "regularfry (Alex Young)" <alex@...>

12 messages 2012/09/03

[#47481] [ruby-trunk - Bug #7008][Open] rake is crashing when trying to compile ffi gem — "drookie (Eugene M. Zheganin Eugene M. Zheganin)" <eugene@...>

10 messages 2012/09/12

[#47505] [ruby-trunk - Feature #7019][Open] allow `private` and `protected` keywords to take blocks — "alexeymuranov (Alexey Muranov)" <redmine@...>

15 messages 2012/09/13

[#47582] [ruby-trunk - Bug #7037][Open] float formatting inconsistently rounds half to even — "headius (Charles Nutter)" <headius@...>

14 messages 2012/09/19

[#47638] [ruby-trunk - Bug #7046][Open] ERB#run and ERB#result are not safe for concurrent use — "headius (Charles Nutter)" <headius@...>

11 messages 2012/09/21

[#47655] [ruby-trunk - Feature #7051][Open] Extend caller_locations API to include klass and bindings. Allow caller_locations as a method hanging off Thread. — "sam.saffron (Sam Saffron)" <sam.saffron@...>

13 messages 2012/09/23

[#47657] [ruby-trunk - Feature #7055][Open] Allow `.foo=` as a synonym of `self.foo=` — "alexeymuranov (Alexey Muranov)" <redmine@...>

11 messages 2012/09/23

[#47730] [ruby-trunk - Bug #7085][Open] Subversion → GitHub gateway stops. — "shyouhei (Shyouhei Urabe)" <shyouhei@...>

27 messages 2012/09/29

[#47735] [ruby-trunk - Bug #7087][Open] ::ConditionVariable#wait does not work with Monitor because Monitor#sleep does not exist — "rklemme (Robert Klemme)" <shortcutter@...>

10 messages 2012/09/29

[#47759] [ruby-trunk - Bug #7092][Open] StringScanner start-of-line matches false positives, while lookbehind for a newline gives false negatives — "jayferd (Jay Adkisson)" <jjmadkisson@...>

8 messages 2012/09/30

[ruby-core:47664] [ruby-trunk - Bug #7059][Open] rb_name_err_mesg_new at shut down appears to cause: [BUG] object allocation during garbage collection phase

From: "harrison.uhl@... (Harrison Uhl)" <harrison.uhl@...>
Date: 2012-09-23 18:03:56 UTC
List: ruby-core #47664
Issue #7059 has been reported by harrison.uhl@gmail.com (Harrison Uhl).

----------------------------------------
Bug #7059: rb_name_err_mesg_new at shut down appears to cause: [BUG] object allocation during garbage collection phase
https://bugs.ruby-lang.org/issues/7059

Author: harrison.uhl@gmail.com (Harrison Uhl)
Status: Open
Priority: High
Assignee: 
Category: 
Target version: 
ruby -v: 1.9.3p194


On shut down of a long running app, a rb_name_err_mesg_new appears to be causing a "object allocation during garbage collection"

It pops up a Windows 7 crash window which says the error is in msvcrt-ruby.dll

I'm using WxRuby to create a GUI app, and OCRA to create the exe.  The app is just a small test app, and does what it is suppose to.

Having read about a "object allocation during garbage collection" issue in WxRuby, I wrapped the WxRuby dispatch() method with a GC.disable; oldDispatch; GC.enable

Attached are two crash dumps, one before wrapping dispatch() and one after.

After wrapping dispatch(), I started and shut down the app about a dozen times.  In all cases it terminated normally.

In both cases that generated the crashes, I'd left the app running overnight.  (The app was doing nothing except waiting in its idle loop.)


WHILE it does appear that there might be a bug in WxRuby initiating the crash,  IT appears that msvcrt-ruby is also trying to instantiate a new object (during Garbage Collection)

ALSO: Why is the rb_name_err_mesg_new not handled more gracefully, say with an informative Ruby exception (perhaps giving the missing name.)

Because of these reasons, I listed this as a Ruby error in the hopes that a patch to msvcrt-ruby will make the nature of the (possible) WxRuby error much clearer.

Please don't bump this to WxRuby without explaining the above apparent msvcrt-ruby issues.

Thanks
Harrison
 


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

In This Thread

Prev Next