>>>>> "t" == ts  <decoux / moulon.inra.fr> writes:

t>  Not really sure, but seems to be a bug in gcc : someone can test it with
t>  another compiler ?

 When I was looking at this problem, I've found (I know it's stupid :-))

svg% cat b.rb
#!/usr/bin/ruby

def a
   ThreadGroup.instance_eval { remove_const :Default }
   nil
end
a()
GC.start

Thread.abort_on_exception = true
Thread.new do
   p Thread.current.group
end.join
svg% 

svg% b.rb
./b.rb:12:in `p': method `inspect' called on terminated object (0x400a4d1c) (NotImplementedError)
        from ./b.rb:12
        from ./b.rb:11:in `initialize'
        from ./b.rb:11:in `new'
        from ./b.rb:11
svg% 


 perhaps best to protect thgroup (thgroup_default), no ?


Guy Decoux