ruby-dev (Japanese) list archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-dev:49666] [Ruby trunk Bug#12492] RUBY_DEBUG=gc_stress dumps core
       [not found] <redmine.issue-12492.20160615081420@ruby-lang.org>
@ 2016-06-15  8:14 ` shyouhei
  2016-06-16  3:43 ` [ruby-dev:49668] " shyouhei
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: shyouhei @ 2016-06-15  8:14 UTC (permalink / raw
  To: ruby-dev

Issue #12492 has been reported by Shyouhei Urabe.

----------------------------------------
Bug #12492: RUBY_DEBUG=gc_stress dumps core
https://bugs.ruby-lang.org/issues/12492

* Author: Shyouhei Urabe
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.4.0dev (2016-05-09 trunk 55419) [x86_64-darwin15]
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
次のようにすると core を吐きます。

```
zsh % PATH="/usr/bin:$PATH" RUBY_DEBUG=gc_stress /usr/bin/lldb -- ./ruby -e 'p GC.stress'
(lldb) target create "./ruby"
Current executable set to './ruby' (x86_64).
(lldb) settings set -- target.run-args  "-e" "p GC.stress"
(lldb) run
Process 15385 launched: './ruby' (x86_64)
Process 15385 stopped
* thread #1: tid = 0x5a843, 0x00000001001b4dda ruby`rb_const_defined(klass=4320291960, id=3643) + 106 at variable.c:3082, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x10)
    frame #0: 0x00000001001b4dda ruby`rb_const_defined(klass=4320291960, id=3643) + 106 at variable.c:3082
   3079 st_table *
   3080 rb_st_copy(VALUE obj, struct st_table *orig_tbl)
   3081 {
-> 3082     st_table *new_tbl = st_copy(orig_tbl);
   3083     st_foreach(new_tbl, tbl_copy_i, (st_data_t)obj);
   3084     return new_tbl;
   3085 }
(lldb) bt
* thread #1: tid = 0x5a843, 0x00000001001b4dda ruby`rb_const_defined(klass=4320291960, id=3643) + 106 at variable.c:3082, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x10)
  * frame #0: 0x00000001001b4dda ruby`rb_const_defined(klass=4320291960, id=3643) + 106 at variable.c:3082
    frame #1: 0x000000010002d6b8 ruby`rb_define_module(name="Kernel") + 40 at class.c:773
    frame #2: 0x00000001000d4287 ruby`InitVM_Object + 263 at object.c:3407
    frame #3: 0x000000010009853d ruby`rb_call_inits + 29 at inits.c:23
    frame #4: 0x000000010006789b ruby`ruby_setup + 155 at eval.c:60
    frame #5: 0x0000000100067909 ruby`ruby_init + 9 at eval.c:76
    frame #6: 0x000000010021369d ruby`main(argc=<unavailable>, argv=<unavailable>) + 77 at main.c:35
    frame #7: 0x00007fff9c00f5ad libdyld.dylib`start + 1
    frame #8: 0x00007fff9c00f5ad libdyld.dylib`start + 1
(lldb)
```

[ruby-dev:41536](http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-dev/41536) が再発しているのではないでしょうか。



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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-dev:49668] [Ruby trunk Bug#12492] RUBY_DEBUG=gc_stress dumps core
       [not found] <redmine.issue-12492.20160615081420@ruby-lang.org>
  2016-06-15  8:14 ` [ruby-dev:49666] [Ruby trunk Bug#12492] RUBY_DEBUG=gc_stress dumps core shyouhei
@ 2016-06-16  3:43 ` shyouhei
  2016-08-04  7:04 ` [ruby-dev:49746] " usa
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: shyouhei @ 2016-06-16  3:43 UTC (permalink / raw
  To: ruby-dev

Issue #12492 has been updated by Shyouhei Urabe.


なお当方の環境はgcc version 6.0.0 20160320 (experimental) (Homebrew gcc6 6-20160320)です。

----------------------------------------
Bug #12492: RUBY_DEBUG=gc_stress dumps core
https://bugs.ruby-lang.org/issues/12492#change-59247

* Author: Shyouhei Urabe
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.4.0dev (2016-05-09 trunk 55419) [x86_64-darwin15]
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
次のようにすると core を吐きます。

```
zsh % PATH="/usr/bin:$PATH" RUBY_DEBUG=gc_stress /usr/bin/lldb -- ./ruby -e 'p GC.stress'
(lldb) target create "./ruby"
Current executable set to './ruby' (x86_64).
(lldb) settings set -- target.run-args  "-e" "p GC.stress"
(lldb) run
Process 15385 launched: './ruby' (x86_64)
Process 15385 stopped
* thread #1: tid = 0x5a843, 0x00000001001b4dda ruby`rb_const_defined(klass=4320291960, id=3643) + 106 at variable.c:3082, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x10)
    frame #0: 0x00000001001b4dda ruby`rb_const_defined(klass=4320291960, id=3643) + 106 at variable.c:3082
   3079 st_table *
   3080 rb_st_copy(VALUE obj, struct st_table *orig_tbl)
   3081 {
-> 3082     st_table *new_tbl = st_copy(orig_tbl);
   3083     st_foreach(new_tbl, tbl_copy_i, (st_data_t)obj);
   3084     return new_tbl;
   3085 }
(lldb) bt
* thread #1: tid = 0x5a843, 0x00000001001b4dda ruby`rb_const_defined(klass=4320291960, id=3643) + 106 at variable.c:3082, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x10)
  * frame #0: 0x00000001001b4dda ruby`rb_const_defined(klass=4320291960, id=3643) + 106 at variable.c:3082
    frame #1: 0x000000010002d6b8 ruby`rb_define_module(name="Kernel") + 40 at class.c:773
    frame #2: 0x00000001000d4287 ruby`InitVM_Object + 263 at object.c:3407
    frame #3: 0x000000010009853d ruby`rb_call_inits + 29 at inits.c:23
    frame #4: 0x000000010006789b ruby`ruby_setup + 155 at eval.c:60
    frame #5: 0x0000000100067909 ruby`ruby_init + 9 at eval.c:76
    frame #6: 0x000000010021369d ruby`main(argc=<unavailable>, argv=<unavailable>) + 77 at main.c:35
    frame #7: 0x00007fff9c00f5ad libdyld.dylib`start + 1
    frame #8: 0x00007fff9c00f5ad libdyld.dylib`start + 1
(lldb)
```

[ruby-dev:41536](http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-dev/41536) が再発しているのではないでしょうか。



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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-dev:49746] [Ruby trunk Bug#12492] RUBY_DEBUG=gc_stress dumps core
       [not found] <redmine.issue-12492.20160615081420@ruby-lang.org>
  2016-06-15  8:14 ` [ruby-dev:49666] [Ruby trunk Bug#12492] RUBY_DEBUG=gc_stress dumps core shyouhei
  2016-06-16  3:43 ` [ruby-dev:49668] " shyouhei
@ 2016-08-04  7:04 ` usa
  2017-05-09  7:27 ` [ruby-dev:50107] " shyouhei
  2017-06-30 10:36 ` [ruby-dev:50156] " usa
  4 siblings, 0 replies; 5+ messages in thread
From: usa @ 2016-08-04  7:04 UTC (permalink / raw
  To: ruby-dev

Issue #12492 has been updated by Usaku NAKAMURA.

Backport changed from 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN to 2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONTNEED

----------------------------------------
Bug #12492: RUBY_DEBUG=gc_stress dumps core
https://bugs.ruby-lang.org/issues/12492#change-59923

* Author: Shyouhei Urabe
* Status: Closed
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.4.0dev (2016-05-09 trunk 55419) [x86_64-darwin15]
* Backport: 2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONTNEED
----------------------------------------
次のようにすると core を吐きます。

```
zsh % PATH="/usr/bin:$PATH" RUBY_DEBUG=gc_stress /usr/bin/lldb -- ./ruby -e 'p GC.stress'
(lldb) target create "./ruby"
Current executable set to './ruby' (x86_64).
(lldb) settings set -- target.run-args  "-e" "p GC.stress"
(lldb) run
Process 15385 launched: './ruby' (x86_64)
Process 15385 stopped
* thread #1: tid = 0x5a843, 0x00000001001b4dda ruby`rb_const_defined(klass=4320291960, id=3643) + 106 at variable.c:3082, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x10)
    frame #0: 0x00000001001b4dda ruby`rb_const_defined(klass=4320291960, id=3643) + 106 at variable.c:3082
   3079 st_table *
   3080 rb_st_copy(VALUE obj, struct st_table *orig_tbl)
   3081 {
-> 3082     st_table *new_tbl = st_copy(orig_tbl);
   3083     st_foreach(new_tbl, tbl_copy_i, (st_data_t)obj);
   3084     return new_tbl;
   3085 }
(lldb) bt
* thread #1: tid = 0x5a843, 0x00000001001b4dda ruby`rb_const_defined(klass=4320291960, id=3643) + 106 at variable.c:3082, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x10)
  * frame #0: 0x00000001001b4dda ruby`rb_const_defined(klass=4320291960, id=3643) + 106 at variable.c:3082
    frame #1: 0x000000010002d6b8 ruby`rb_define_module(name="Kernel") + 40 at class.c:773
    frame #2: 0x00000001000d4287 ruby`InitVM_Object + 263 at object.c:3407
    frame #3: 0x000000010009853d ruby`rb_call_inits + 29 at inits.c:23
    frame #4: 0x000000010006789b ruby`ruby_setup + 155 at eval.c:60
    frame #5: 0x0000000100067909 ruby`ruby_init + 9 at eval.c:76
    frame #6: 0x000000010021369d ruby`main(argc=<unavailable>, argv=<unavailable>) + 77 at main.c:35
    frame #7: 0x00007fff9c00f5ad libdyld.dylib`start + 1
    frame #8: 0x00007fff9c00f5ad libdyld.dylib`start + 1
(lldb)
```

[ruby-dev:41536](http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-dev/41536) が再発しているのではないでしょうか。



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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-dev:50107] [Ruby trunk Bug#12492] RUBY_DEBUG=gc_stress dumps core
       [not found] <redmine.issue-12492.20160615081420@ruby-lang.org>
                   ` (2 preceding siblings ...)
  2016-08-04  7:04 ` [ruby-dev:49746] " usa
@ 2017-05-09  7:27 ` shyouhei
  2017-06-30 10:36 ` [ruby-dev:50156] " usa
  4 siblings, 0 replies; 5+ messages in thread
From: shyouhei @ 2017-05-09  7:27 UTC (permalink / raw
  To: ruby-dev

Issue #12492 has been updated by shyouhei (Shyouhei Urabe).

Backport changed from 2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONTNEED to 2.1: REQUIRED, 2.2: REQUIRED, 2.3: REQUIRED

GCC 7が出ていたので試したところ再現したので、r55429 はバックポートが必要です。

```
% lldb -- miniruby -ve0
(lldb) target create "miniruby"
Current executable set to 'miniruby' (x86_64).
(lldb) settings set -- target.run-args  "-ve0"
(lldb) run
Process 49206 launched: 'miniruby' (x86_64)
Process 49206 stopped
* thread #1: tid = 0xee0d7, 0x00000001001b2f3a miniruby`rb_const_defined(klass=4317686760, id=3579) + 106 at variable.c:3067, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x10)
    frame #0: 0x00000001001b2f3a miniruby`rb_const_defined(klass=4317686760, id=3579) + 106 at variable.c:3067
   3064 rb_const_entry_t *
   3065 rb_const_lookup(VALUE klass, ID id)
   3066 {
-> 3067     st_table *tbl = RCLASS_CONST_TBL(klass);
   3068     st_data_t val;
   3069
   3070     if (tbl && st_lookup(tbl, (st_data_t)id, &val)) {
(lldb) bt
* thread #1: tid = 0xee0d7, 0x00000001001b2f3a miniruby`rb_const_defined(klass=4317686760, id=3579) + 106 at variable.c:3067, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x10)
  * frame #0: 0x00000001001b2f3a miniruby`rb_const_defined(klass=4317686760, id=3579) + 106 at variable.c:3067
    frame #1: 0x0000000100029358 miniruby`rb_define_module(name="Kernel") + 40 at class.c:771
    frame #2: 0x00000001000d3907 miniruby`InitVM_Object + 263 at object.c:3412
    frame #3: 0x000000010009523d miniruby`rb_call_inits + 29 at inits.c:23
    frame #4: 0x00000001000630ee miniruby`ruby_setup + 190 at eval.c:60
    frame #5: 0x0000000100063119 miniruby`ruby_init + 9 at eval.c:76
    frame #6: 0x0000000100210ead miniruby`main(argc=<unavailable>, argv=<unavailable>) + 77 at main.c:35
    frame #7: 0x00007fff972a35ad libdyld.dylib`start + 1
(lldb)
```

----------------------------------------
Bug #12492: RUBY_DEBUG=gc_stress dumps core
https://bugs.ruby-lang.org/issues/12492#change-64705

* Author: shyouhei (Shyouhei Urabe)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.4.0dev (2016-05-09 trunk 55419) [x86_64-darwin15]
* Backport: 2.1: REQUIRED, 2.2: REQUIRED, 2.3: REQUIRED
----------------------------------------
次のようにすると core を吐きます。

```
zsh % PATH="/usr/bin:$PATH" RUBY_DEBUG=gc_stress /usr/bin/lldb -- ./ruby -e 'p GC.stress'
(lldb) target create "./ruby"
Current executable set to './ruby' (x86_64).
(lldb) settings set -- target.run-args  "-e" "p GC.stress"
(lldb) run
Process 15385 launched: './ruby' (x86_64)
Process 15385 stopped
* thread #1: tid = 0x5a843, 0x00000001001b4dda ruby`rb_const_defined(klass=4320291960, id=3643) + 106 at variable.c:3082, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x10)
    frame #0: 0x00000001001b4dda ruby`rb_const_defined(klass=4320291960, id=3643) + 106 at variable.c:3082
   3079 st_table *
   3080 rb_st_copy(VALUE obj, struct st_table *orig_tbl)
   3081 {
-> 3082     st_table *new_tbl = st_copy(orig_tbl);
   3083     st_foreach(new_tbl, tbl_copy_i, (st_data_t)obj);
   3084     return new_tbl;
   3085 }
(lldb) bt
* thread #1: tid = 0x5a843, 0x00000001001b4dda ruby`rb_const_defined(klass=4320291960, id=3643) + 106 at variable.c:3082, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x10)
  * frame #0: 0x00000001001b4dda ruby`rb_const_defined(klass=4320291960, id=3643) + 106 at variable.c:3082
    frame #1: 0x000000010002d6b8 ruby`rb_define_module(name="Kernel") + 40 at class.c:773
    frame #2: 0x00000001000d4287 ruby`InitVM_Object + 263 at object.c:3407
    frame #3: 0x000000010009853d ruby`rb_call_inits + 29 at inits.c:23
    frame #4: 0x000000010006789b ruby`ruby_setup + 155 at eval.c:60
    frame #5: 0x0000000100067909 ruby`ruby_init + 9 at eval.c:76
    frame #6: 0x000000010021369d ruby`main(argc=<unavailable>, argv=<unavailable>) + 77 at main.c:35
    frame #7: 0x00007fff9c00f5ad libdyld.dylib`start + 1
    frame #8: 0x00007fff9c00f5ad libdyld.dylib`start + 1
(lldb)
```

[ruby-dev:41536](http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-dev/41536) が再発しているのではないでしょうか。



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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-dev:50156] [Ruby trunk Bug#12492] RUBY_DEBUG=gc_stress dumps core
       [not found] <redmine.issue-12492.20160615081420@ruby-lang.org>
                   ` (3 preceding siblings ...)
  2017-05-09  7:27 ` [ruby-dev:50107] " shyouhei
@ 2017-06-30 10:36 ` usa
  4 siblings, 0 replies; 5+ messages in thread
From: usa @ 2017-06-30 10:36 UTC (permalink / raw
  To: ruby-dev

Issue #12492 has been updated by usa (Usaku NAKAMURA).

Backport changed from 2.1: REQUIRED, 2.2: REQUIRED, 2.3: REQUIRED to 2.1: REQUIRED, 2.2: REQUIRED, 2.3: DONE

ruby_2_3 r59215 merged revision(s) 55429.

----------------------------------------
Bug #12492: RUBY_DEBUG=gc_stress dumps core
https://bugs.ruby-lang.org/issues/12492#change-65569

* Author: shyouhei (Shyouhei Urabe)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.4.0dev (2016-05-09 trunk 55419) [x86_64-darwin15]
* Backport: 2.1: REQUIRED, 2.2: REQUIRED, 2.3: DONE
----------------------------------------
次のようにすると core を吐きます。

```
zsh % PATH="/usr/bin:$PATH" RUBY_DEBUG=gc_stress /usr/bin/lldb -- ./ruby -e 'p GC.stress'
(lldb) target create "./ruby"
Current executable set to './ruby' (x86_64).
(lldb) settings set -- target.run-args  "-e" "p GC.stress"
(lldb) run
Process 15385 launched: './ruby' (x86_64)
Process 15385 stopped
* thread #1: tid = 0x5a843, 0x00000001001b4dda ruby`rb_const_defined(klass=4320291960, id=3643) + 106 at variable.c:3082, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x10)
    frame #0: 0x00000001001b4dda ruby`rb_const_defined(klass=4320291960, id=3643) + 106 at variable.c:3082
   3079 st_table *
   3080 rb_st_copy(VALUE obj, struct st_table *orig_tbl)
   3081 {
-> 3082     st_table *new_tbl = st_copy(orig_tbl);
   3083     st_foreach(new_tbl, tbl_copy_i, (st_data_t)obj);
   3084     return new_tbl;
   3085 }
(lldb) bt
* thread #1: tid = 0x5a843, 0x00000001001b4dda ruby`rb_const_defined(klass=4320291960, id=3643) + 106 at variable.c:3082, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x10)
  * frame #0: 0x00000001001b4dda ruby`rb_const_defined(klass=4320291960, id=3643) + 106 at variable.c:3082
    frame #1: 0x000000010002d6b8 ruby`rb_define_module(name="Kernel") + 40 at class.c:773
    frame #2: 0x00000001000d4287 ruby`InitVM_Object + 263 at object.c:3407
    frame #3: 0x000000010009853d ruby`rb_call_inits + 29 at inits.c:23
    frame #4: 0x000000010006789b ruby`ruby_setup + 155 at eval.c:60
    frame #5: 0x0000000100067909 ruby`ruby_init + 9 at eval.c:76
    frame #6: 0x000000010021369d ruby`main(argc=<unavailable>, argv=<unavailable>) + 77 at main.c:35
    frame #7: 0x00007fff9c00f5ad libdyld.dylib`start + 1
    frame #8: 0x00007fff9c00f5ad libdyld.dylib`start + 1
(lldb)
```

[ruby-dev:41536](http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-dev/41536) が再発しているのではないでしょうか。



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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-06-30  9:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <redmine.issue-12492.20160615081420@ruby-lang.org>
2016-06-15  8:14 ` [ruby-dev:49666] [Ruby trunk Bug#12492] RUBY_DEBUG=gc_stress dumps core shyouhei
2016-06-16  3:43 ` [ruby-dev:49668] " shyouhei
2016-08-04  7:04 ` [ruby-dev:49746] " usa
2017-05-09  7:27 ` [ruby-dev:50107] " shyouhei
2017-06-30 10:36 ` [ruby-dev:50156] " usa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).