Bug #3311: make test-all fails with *** stack smashing detected ***
http://redmine.ruby-lang.org/issues/show/3311

Author: caleb clausen
Status: Open, Priority: Normal
Category: test
ruby -v: ruby 1.9.3dev (2010-05-17 trunk 27864) [i686-linux]

When I run make test-all it eventually fails with the error 'stack smashing detected'. I'm using ubuntu 9.04 on x86. Here's a stacktrace:

caleb@baytree:~/hold/ruby-trunk$ make test-all
./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb  ./tool/runruby.rb --extout=.ext  -- "./test/runner.rb" 
/home/caleb/hold/ruby-trunk/test/open-uri/test_ssl.rb: no such file to load -- openssl
`gem cert` tests are being skipped, module OpenSSL not found
/home/caleb/hold/ruby-trunk/test/openssl/test_config.rb: no such file to load -- openssl
/home/caleb/hold/ruby-trunk/test/fiddle/test_closure.rb: no such file to load -- fiddle
/home/caleb/hold/ruby-trunk/test/fiddle/test_fiddle.rb: no such file to load -- fiddle
/home/caleb/hold/ruby-trunk/test/fiddle/test_function.rb: no such file to load -- fiddle
Loaded suite ./test/runner
Started
.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................!
 ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................!
 ......................................................................
.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................!
 ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................!
 ....................................................*** stack smashing
 detected ***: ./ruby terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0x401afda8]
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x0)[0x401afd60]
./ruby[0x8090063]
./ruby[0x81620a2]
./ruby[0x81637ac]
./ruby[0x8168e24]
./ruby(rb_yield_values+0x7a)[0x816987a]
./ruby[0x815e498]
./ruby(rb_yield+0x4f)[0x816a59f]
./ruby(rb_ary_each+0x41)[0x817edc1]
./ruby[0x815f492]
./ruby[0x8161970]
./ruby(rb_iterate+0xa8)[0x8159f68]
./ruby(rb_block_call+0x3f)[0x815a0ff]
./ruby[0x81a87e0]
./ruby[0x8159e3d]
./ruby[0x81620a2]
./ruby[0x81637ac]
./ruby[0x8168e24]
./ruby[0x816aa0d]
./ruby(rb_rescue2+0x141)[0x805dfd1]
./ruby[0x815ac74]
./ruby[0x81620a2]
./ruby[0x81637ac]
./ruby[0x8168e24]
./ruby(rb_yield+0x4f)[0x816a59f]
./ruby(rb_ensure+0x81)[0x805de41]
./ruby[0x8073587]
./ruby[0x8159e3d]
./ruby[0x81620a2]
./ruby[0x81637ac]
./ruby[0x8168e24]
./ruby(rb_vm_invoke_proc+0x76)[0x8169616]
./ruby[0x8161d8e]
./ruby[0x81637ac]
./ruby[0x8168e24]
./ruby(rb_yield+0x4f)[0x816a59f]
./ruby(rb_ary_each+0x41)[0x817edc1]
./ruby[0x81620a2]
./ruby[0x81637ac]
./ruby[0x8168e24]
./ruby(rb_yield+0x4f)[0x816a59f]
./ruby(rb_ary_each+0x41)[0x817edc1]
./ruby[0x81620a2]
./ruby[0x81637ac]
./ruby[0x8168e24]
./ruby(rb_vm_invoke_proc+0x76)[0x8169616]
./ruby(rb_proc_call+0x47)[0x8061a67]
./ruby(rb_call_end_proc+0x1a)[0x805e39a]
./ruby(rb_exec_end_proc+0x19c)[0x805f75c]
./ruby[0x805f7f7]
./ruby(ruby_cleanup+0x113)[0x805f943]
./ruby(ruby_run_node+0x3a)[0x805fc0a]
./ruby(main+0x60)[0x805d610]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0x400c8775]
./ruby[0x805d511]
======= Memory map: ========
08048000-08224000 r-xp 00000000 08:01 1755762    /home/caleb/hold/ruby-trunk/ruby
08224000-08225000 r--p 001db000 08:01 1755762    /home/caleb/hold/ruby-trunk/ruby
08225000-08226000 rw-p 001dc000 08:01 1755762    /home/caleb/hold/ruby-trunk/ruby
08226000-08233000 rw-p 08226000 00:00 0 
09655000-196df000 rw-p 09655000 00:00 0          [heap]
40000000-4001c000 r-xp 00000000 08:01 1663525    /lib/ld-2.9.so
4001c000-4001d000 r--p 0001b000 08:01 1663525    /lib/ld-2.9.so
4001d000-4001e000 rw-p 0001c000 08:01 1663525    /lib/ld-2.9.so
4001e000-4001f000 r-xp 4001e000 00:00 0          [vdso]
4001f000-40020000 rw-p 4001f000 00:00 0 
40020000-40027000 r--s 00000000 08:01 1581250    /usr/lib/gconv/gconv-modules.cache
40027000-40028000 ---p 40027000 00:00 0 
40028000-4002b000 rw-p 40028000 00:00 0 
4002b000-4002d000 r-xp 00000000 08:01 207662     /home/caleb/hold/ruby-trunk/.ext/i686-linux/enc/encdb.so
4002d000-4002e000 r--p 00001000 08:01 207662     /home/caleb/hold/ruby-trunk/.ext/i686-linux/enc/encdb.so
4002e000-4002f000 rw-p 00002000 08:01 207662     /home/caleb/hold/ruby-trunk/.ext/i686-linux/enc/encdb.so
4002f000-40030000 r-xp 00000000 08:01 207797     /home/caleb/hold/ruby-trunk/.ext/i686-linux/fcntl.so
40030000-40031000 r--p 00000000 08:01 207797     /home/caleb/hold/ruby-trunk/.ext/i686-linux/fcntl.so
40031000-40032000 rw-p 00001000 08:01 207797     /home/caleb/hold/ruby-trunk/.ext/i686-linux/fcntl.so
40032000-40033000 rw-p 40032000 00:00 0 
40033000-40048000 r-xp 00000000 08:01 1679701    /lib/tls/i686/cmov/libpthread-2.9.so
40048000-40049000 r--p 00014000 08:01 1679701    /lib/tls/i686/cmov/libpthread-2.9.so
40049000-4004a000 rw-p 00015000 08:01 1679701    /lib/tls/i686/cmov/libpthread-2.9.so
4004a000-4004c000 rw-p 4004a000 00:00 0 
4004c000-40053000 r-xp 00000000 08:01 1679703    /lib/tls/i686/cmov/librt-2.9.so
40053000-40054000 r--p 00006000 08:01 1679703    /lib/tls/i686/cmov/librt-2.9.so
40054000-40055000 rw-p 00007000 08:01 1679703    /lib/tls/i686/cmov/librt-2.9.so
40055000-40057000 r-xp 00000000 08:01 1679371    /lib/tls/i686/cmov/libdl-2.9.so
40057000-40058000 r--p 00001000 08:01 1679371    /lib/tls/i686/cmov/libdl-2.9.so
40058000-40059000 rw-p 00002000 08:01 1679371    /lib/tls/i686/cmov/libdl-2.9.so
40059000-40062000 r-xp 00000000 08:01 1679370    /lib/tls/i686/cmov/libcrypt-2.9.so
40062000-40063000 r--p 00008000 08:01 1679370    /lib/tls/i686/cmov/libcrypt-2.9.so
40063000-40064000 rw-p 00009000 08:01 1679370    /lib/tls/i686/cmov/libcrypt-2.9.so
40064000-4008b000 rw-p 40064000 00:00 0 
4008b000-400af000 r-xp 00000000 08:01 1679372    /lib/tls/i686/cmov/libm-2.9.so
400af000-400b0000 r--p 00023000 08:01 1679372    /lib/tls/i686/cmov/libm-2.9.so
400b0000-400b1000 rw-p 00024000 08:01 1679372    /lib/tls/i686/cmov/libm-2.9.so
400b1000-400b2000 rw-p 400b1000 00:00 0 
400b2000-4020e000 r-xp 00000000 08:01 1679368    /lib/tls/i686/cmov/libc-2.9.so
4020e000-4020f000 ---p 0015c000 08:01 1679368    /lib/tls/i686/cmov/libc-2.9.so
4020f000-40211000 r--p 0015c000 08:01 1679368    /lib/tls/i686/cmov/libc-2.9.so
40211000-40212000 rw-p 0015e000 08:01 1679368    /lib/tls/i686/cmov/libc-2.9.so
40212000-40216000 rw-p 40212000 00:00 0 
40216000-40255000 r--p 00000000 08:01 2277377   Aborted
make: *** [yes-test-all] Error 134


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