[#30995] [Bug #3523] win32 exception c0000029 on exit using fibers — B Kelly <redmine@...>

Bug #3523: win32 exception c0000029 on exit using fibers

19 messages 2010/07/02

[#31100] [rubysoc] Queue C-extension patch to come — Ricardo Panaggio <panaggio.ricardo@...>

Hello,

26 messages 2010/07/07
[#31148] Re: [rubysoc] Queue C-extension patch to come — Roger Pack <rogerdpack2@...> 2010/07/09

> As this it my first patch to Ruby, I don't know where to begin with.

[#31320] Re: [rubysoc] Queue C-extension patch to come — Ricardo Panaggio <panaggio.ricardo@...> 2010/07/16

Sorry for leaving this thread for so long. I've tried to finish the

[#31322] Re: [rubysoc] Queue C-extension patch to come — Aaron Patterson <aaron@...> 2010/07/16

On Sat, Jul 17, 2010 at 06:55:35AM +0900, Ricardo Panaggio wrote:

[#31324] Re: [rubysoc] Queue C-extension patch to come — Caleb Clausen <vikkous@...> 2010/07/17

NB: I am Ricardo's mentor for this project.

[#31331] Re: [rubysoc] Queue C-extension patch to come — Benoit Daloze <eregontp@...> 2010/07/17

On 17 July 2010 06:00, Caleb Clausen <vikkous@gmail.com> wrote:

[#31332] Re: [rubysoc] Queue C-extension patch to come — Caleb Clausen <vikkous@...> 2010/07/17

On 7/17/10, Benoit Daloze <eregontp@gmail.com> wrote:

[#31138] Why is there no standard way of creating a String from a char *? — Nikolai Weibull <now@...>

Hi!

14 messages 2010/07/08
[#31146] Re: Why is there no standard way of creating a String from a char *? — Urabe Shyouhei <shyouhei@...> 2010/07/09

(2010/07/09 7:04), Nikolai Weibull wrote:

[#31149] Re: Why is there no standard way of creating a String from a char *? — Nikolai Weibull <now@...> 2010/07/09

On Fri, Jul 9, 2010 at 06:20, Urabe Shyouhei <shyouhei@ruby-lang.org> wrote:

[#31150] Re: Why is there no standard way of creating a String from a char *? — Urabe Shyouhei <shyouhei@...> 2010/07/09

(2010/07/09 18:28), Nikolai Weibull wrote:

[#31217] [Bug #3562] regression in respond_to? — Aaron Patterson <redmine@...>

Bug #3562: regression in respond_to?

14 messages 2010/07/12

[#31269] [Bug #3566] memory leak when spawning+joining Threads in a loop — Eric Wong <redmine@...>

Bug #3566: memory leak when spawning+joining Threads in a loop

14 messages 2010/07/13

[#31399] [Backport #3595] Theres no encoding to differentiate a stream of Binary data from an 8-Bit ASCII string — Dreamcat Four <redmine@...>

Backport #3595: Theres no encoding to differentiate a stream of Binary data from an 8-Bit ASCII string

17 messages 2010/07/21

[#31459] [Bug #3607] [trunk/r28731] Gem.path has disappeared? — Ollivier Robert <redmine@...>

Bug #3607: [trunk/r28731] Gem.path has disappeared?

22 messages 2010/07/23

[#31519] [Bug #3622] Net::HTTP does not wait to send request body with Expect: 100-continue — Eric Hodel <redmine@...>

Bug #3622: Net::HTTP does not wait to send request body with Expect: 100-continue

9 messages 2010/07/28

[ruby-core:31311] Re: [Bug #3566] memory leak when spawning+joining Threads in a loop

From: Rocky Bernstein <rocky.bernstein@...>
Date: 2010-07-16 12:49:27 UTC
List: ruby-core #31311
On Fri, Jul 16, 2010 at 7:42 AM, Yusuke ENDOH <mame@tsg.ne.jp> wrote:

>
> Thanks!
>
> I'll commit the following patch instead of the previous one, because
> the previous one seems to cause SEGV when running make test. (sorry!)
>
>
> diff --git a/thread_pthread.c b/thread_pthread.c
> index e974b73..e832b82 100644
> --- a/thread_pthread.c
> +++ b/thread_pthread.c
> @@ -226,9 +226,7 @@ get_stack(void **addr, size_t *size)
>  # endif
>     CHECK_ERR(pthread_attr_getguardsize(&attr, &guard));
>     *size -= guard;
> -# ifndef HAVE_PTHREAD_GETATTR_NP
>     pthread_attr_destroy(&attr);
> -# endif
>  #elif defined HAVE_PTHREAD_GET_STACKADDR_NP && defined
> HAVE_PTHREAD_GET_STACKSIZE_NP
>     pthread_t th = pthread_self();
>     *addr = pthread_get_stackaddr_np(th);
>
>
I am now getting a SEGV presumably in a garbage collection routine (gc_mark)
on trunk (SVN revision 28656), but about 15 hours ago I didn't. I don't get
the crash every time I run "make check" but in 1 out of 3 tries I do.
Attached should be a slightly stripped down log of a "make check" run from
Ubuntu.

Thanks.

Attachments (1)

crash.txt (7.17 KB, text/plain)
make check

sample/test.rb:assignment ......................................................
[lots of tests]
.........
test_thread.rb ..................................................
PASS all 933 tests
./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb  ./tool/runruby.rb --extout=.ext  -- "./bootstraptest/runner.rb" --ruby="ruby"  ./KNOWNBUGS.rb
2010-07-16 08:34:45 -0400
Driver is ruby 1.9.3dev (2010-07-16 trunk 28656) [i686-linux]
Target is ruby 1.9.3dev (2010-07-16 trunk 28656) [i686-linux]


KNOWNBUGS.rb .
PASS all 1 tests
./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb  ./tool/runruby.rb --extout=.ext  -- "./test/runner.rb" 
/src/external-vcs/ruby-test-crash/test/psych/test_class.rb: cannot load such file -- psych
[lots of pysc missing output]
 file -- fiddle
/src/external-vcs/ruby-test-crash/test/fiddle/test_closure.rb: cannot load such file -- fiddle
/src/external-vcs/ruby-test-crash/lib/yaml.rb:30: warning: already initialized constant ENGINE
/src/external-vcs/ruby-test-crash/lib/yaml.rb:36: warning: already initialized constant ENGINE
/src/external-vcs/ruby-test-crash/lib/yaml.rb:40: warning: already initialized constant ENGINE
Loaded suite ./test/runner
Started
................................................................................................................................................................/src/external-vcs/ruby-test-crash/.ext/common/dl/value.rb:76: [BUG] Segmentation fault
ruby 1.9.3dev (2010-07-16 trunk 28656) [i686-linux]

-- control frame ----------
c:0024 p:---- s:0105 b:0105 l:000104 d:000104 CFUNC  :pack
c:0023 p:0481 s:0101 b:0101 l:000100 d:000100 METHOD /src/external-vcs/ruby-test-crash/.ext/common/dl/value.rb:76
c:0022 p:0029 s:0094 b:0093 l:000079 d:000092 BLOCK  /src/external-vcs/ruby-test-crash/.ext/common/dl/value.rb:43
c:0021 p:---- s:0089 b:0089 l:000088 d:000088 FINISH
c:0020 p:---- s:0087 b:0087 l:000082 d:000086 IFUNC 
c:0019 p:---- s:0085 b:0085 l:000084 d:000084 CFUNC  :each
c:0018 p:---- s:0083 b:0083 l:000082 d:000082 CFUNC  :each_with_index
c:0017 p:0036 s:0080 b:0080 l:000079 d:000079 METHOD /src/external-vcs/ruby-test-crash/.ext/common/dl/value.rb:42
c:0016 p:0093 s:0072 b:0072 l:000071 d:000071 METHOD /src/external-vcs/ruby-test-crash/.ext/common/dl/func.rb:58
c:0015 p:0125 s:0064 b:0064 l:000063 d:000063 METHOD /src/external-vcs/ruby-test-crash/test/dl/test_func.rb:54
c:0014 p:0063 s:0057 b:0057 l:000056 d:000056 METHOD /src/external-vcs/ruby-test-crash/lib/minitest/unit.rb:680
c:0013 p:0091 s:0051 b:0051 l:000032 d:000050 BLOCK  /src/external-vcs/ruby-test-crash/lib/minitest/unit.rb:641
c:0012 p:---- s:0046 b:0046 l:000045 d:000045 FINISH
c:0011 p:---- s:0044 b:0044 l:000043 d:000043 CFUNC  :each
c:0010 p:0026 s:0041 b:0041 l:000032 d:000040 BLOCK  /src/external-vcs/ruby-test-crash/lib/minitest/unit.rb:635
c:0009 p:---- s:0038 b:0038 l:000037 d:000037 FINISH
c:0008 p:---- s:0036 b:0036 l:000035 d:000035 CFUNC  :each
c:0007 p:0082 s:0033 b:0033 l:000032 d:000032 METHOD /src/external-vcs/ruby-test-crash/lib/minitest/unit.rb:634
c:0006 p:0188 s:0028 b:0028 l:000027 d:000027 METHOD /src/external-vcs/ruby-test-crash/lib/minitest/unit.rb:594
c:0005 p:0027 s:0019 b:0019 l:000018 d:000018 METHOD /src/external-vcs/ruby-test-crash/lib/test/unit.rb:95
c:0004 p:0034 s:0014 b:0014 l:000013 d:000013 METHOD /src/external-vcs/ruby-test-crash/lib/test/unit.rb:100
c:0003 p:0115 s:0009 b:0008 l:001964 d:001c54 EVAL   ./test/runner.rb:9
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:001964 d:001964 TOP   
---------------------------
-- Ruby level backtrace information ----------------------------------------
./test/runner.rb:9:in `<main>'
/src/external-vcs/ruby-test-crash/lib/test/unit.rb:100:in `start'
/src/external-vcs/ruby-test-crash/lib/test/unit.rb:95:in `run'
/src/external-vcs/ruby-test-crash/lib/minitest/unit.rb:594:in `run'
/src/external-vcs/ruby-test-crash/lib/minitest/unit.rb:634:in `run_test_suites'
/src/external-vcs/ruby-test-crash/lib/minitest/unit.rb:634:in `each'
/src/external-vcs/ruby-test-crash/lib/minitest/unit.rb:635:in `block in run_test_suites'
/src/external-vcs/ruby-test-crash/lib/minitest/unit.rb:635:in `each'
/src/external-vcs/ruby-test-crash/lib/minitest/unit.rb:641:in `block (2 levels) in run_test_suites'
/src/external-vcs/ruby-test-crash/lib/minitest/unit.rb:680:in `run'
/src/external-vcs/ruby-test-crash/test/dl/test_func.rb:54:in `test_string'
/src/external-vcs/ruby-test-crash/.ext/common/dl/func.rb:58:in `call'
/src/external-vcs/ruby-test-crash/.ext/common/dl/value.rb:42:in `wrap_args'
/src/external-vcs/ruby-test-crash/.ext/common/dl/value.rb:42:in `each_with_index'
/src/external-vcs/ruby-test-crash/.ext/common/dl/value.rb:42:in `each'
/src/external-vcs/ruby-test-crash/.ext/common/dl/value.rb:43:in `block in wrap_args'
/src/external-vcs/ruby-test-crash/.ext/common/dl/value.rb:76:in `wrap_arg'
/src/external-vcs/ruby-test-crash/.ext/common/dl/value.rb:76:in `pack'

-- C level backtrace information -------------------------------------------
./ruby(rb_vm_bugreport+0x72) [0x814cbfb]
./ruby() [0x817ec33]
./ruby(rb_bug+0x34) [0x817eca1]
./ruby() [0x80e889e]
[0x4001d410]
./ruby(rb_gc_mark+0x28) [0x8065424]
./ruby(rb_thread_mark+0xc4) [0x814ae82]
./ruby() [0x806584d]
./ruby() [0x80653ea]
./ruby(rb_gc_mark+0x28) [0x8065424]
./ruby() [0x814aa99]
./ruby(st_foreach+0x1e5) [0x80f0d06]
./ruby(rb_vm_mark+0x3f) [0x814ab06]
./ruby() [0x806584d]
./ruby() [0x80653ea]
./ruby(rb_gc_mark+0x28) [0x8065424]
./ruby() [0x8066cb2]
./ruby() [0x8066f36]
./ruby() [0x8063fb0]
./ruby() [0x8064061]
./ruby(ruby_xmalloc2+0x55) [0x8064213]
./ruby(rb_str_buf_new+0x74) [0x80f31dc]
./ruby() [0x809023f]
./ruby() [0x8139c40]
./ruby() [0x813a55b]
./ruby() [0x813aa70]
./ruby() [0x813f04a]
./ruby() [0x8149f65]
./ruby() [0x8148c6e]
./ruby() [0x8148d7f]
./ruby() [0x8146120]
./ruby(rb_yield_values+0x96) [0x81461f1]
./ruby() [0x8179fa3]
./ruby() [0x813b22f]
./ruby() [0x8148c9e]
./ruby() [0x8148d7f]
./ruby() [0x8146120]
./ruby(rb_yield+0x37) [0x8146159]
./ruby(rb_ary_each+0x72) [0x815be9d]
./ruby() [0x8139c27]
./ruby() [0x8144e80]
./ruby() [0x81453f8]
./ruby() [0x81459f1]
./ruby() [0x81465ca]
./ruby(rb_iterate+0xdf) [0x8146412]
./ruby(rb_block_call+0x3f) [0x814660f]
./ruby() [0x817a01d]
./ruby() [0x8139c17]
./ruby() [0x813a55b]
./ruby() [0x813aa70]
./ruby() [0x813f04a]
./ruby() [0x8149f65]
./ruby() [0x8148c6e]
./ruby() [0x8148d7f]
./ruby() [0x8146120]
./ruby(rb_yield+0x37) [0x8146159]
./ruby(rb_ary_each+0x72) [0x815be9d]
./ruby() [0x8139c27]
./ruby() [0x813a55b]
./ruby() [0x813aa70]
./ruby() [0x813f04a]
./ruby() [0x8149f65]
./ruby() [0x8148c6e]
./ruby() [0x8148d7f]
./ruby() [0x8146120]
./ruby(rb_yield+0x37) [0x8146159]
./ruby(rb_ary_each+0x72) [0x815be9d]
./ruby() [0x8139c27]
./ruby() [0x813a55b]
./ruby() [0x813aa70]
./ruby() [0x813f04a]
./ruby() [0x8149f65]
./ruby(rb_iseq_eval_main+0x2b) [0x814a73e]
./ruby() [0x805ee06]
./ruby(ruby_exec_node+0x1c) [0x805eeed]
./ruby(ruby_run_node+0x38) [0x805eec7]
./ruby(main+0x5a) [0x805da8e]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0x400cebd6]
./ruby() [0x805d9a1]

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Aborted
make: *** [yes-test-all] Error 134

In This Thread