summaryrefslogtreecommitdiffstats
path: root/sample/test.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-11-13 08:14:27 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-11-13 08:14:27 +0000
commit6c2f9396c38cb8fc6ccbee9329501ba7914b3c23 (patch)
treeb457a7351639193c4cdbbb3960c97fc079dd725d /sample/test.rb
parent1632a1c0cfe990326fa009f0eb931066a22f1334 (diff)
downloadruby-6c2f9396c38cb8fc6ccbee9329501ba7914b3c23.tar.gz
ruby-6c2f9396c38cb8fc6ccbee9329501ba7914b3c23.tar.xz
ruby-6c2f9396c38cb8fc6ccbee9329501ba7914b3c23.zip
* signal.c (sighandle): should not re-register sighandler if
POSIX_SIGNAL is defined. * eval.c (error_print): errat array may be empty. * eval.c (rb_eval_cmd): should not upgrade safe level unless explicitly specified by argument newly added. * signal.c (sig_trap): should not allow tainted trap closure. * variable.c (rb_f_trace_var): should not allow trace_var on safe level higher than 3. * variable.c (rb_f_trace_var): should not allow tainted trace closure. * gc.c: do not use static stack until system stack overflows. * eval.c (eval): should call Exception#exception instead of calling rb_exc_new3() directly. * error.c (exc_exception): set "mesg" directly to the clone. it might be better to set mesg via some method for flexibility. * variable.c (cvar_override_check): should print original module name, if 'a' is T_ICLASS. * parse.y (yylex): float '1_.0' should not be allowed. * variable.c (var_getter): should care about var as Qfalse (ruby-bugs#PR199). * array.c (cmpint): <=> or block for {min,max} may return bignum. * array.c (sort_1): use rb_compint. * array.c (sort_2): ditto. * enum.c (min_ii): ditto. * enum.c (min_ii): ditto. * enum.c (max_i): ditto. * enum.c (max_ii): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/test.rb')
-rw-r--r--sample/test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/sample/test.rb b/sample/test.rb
index 4ee6ddcec..b342fb854 100644
--- a/sample/test.rb
+++ b/sample/test.rb
@@ -1338,6 +1338,13 @@ l=nil
100000.times {
l = S.new(l)
}
+GC.start
+test_ok true # reach here or dumps core
+l = []
+100000.times {
+ l.push([l])
+}
+GC.start
test_ok true # reach here or dumps core
if $failed > 0