ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:69969] [Ruby trunk - Bug #11352] [Open] Sample code Garbage collection dies with a
       [not found] <redmine.issue-11352.20150714201154@ruby-lang.org>
@ 2015-07-14 20:11 ` fgifford
  2015-07-14 20:17 ` [ruby-core:69970] [Ruby trunk - Bug #11352] Sample code Garbage collection dies with an address is T_NONE fgifford
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: fgifford @ 2015-07-14 20:11 UTC (permalink / raw)
  To: ruby-core

Issue #11352 has been reported by Frank Gifford.

----------------------------------------
Bug #11352: Sample code Garbage collection dies with a
https://bugs.ruby-lang.org/issues/11352

* Author: Frank Gifford
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: 
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------




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

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

* [ruby-core:69970] [Ruby trunk - Bug #11352] Sample code Garbage collection dies with an address is T_NONE
       [not found] <redmine.issue-11352.20150714201154@ruby-lang.org>
  2015-07-14 20:11 ` [ruby-core:69969] [Ruby trunk - Bug #11352] [Open] Sample code Garbage collection dies with a fgifford
@ 2015-07-14 20:17 ` fgifford
  2015-07-16  1:17 ` [ruby-core:69989] " s.wanabe
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: fgifford @ 2015-07-14 20:17 UTC (permalink / raw)
  To: ruby-core

Issue #11352 has been updated by Frank Gifford.

File crash.rb added
File crash_out added
Subject changed from Sample code Garbage collection dies with a to Sample code Garbage collection dies with an address is T_NONE
ruby -v set to 2.2.2p95

> ./crash.rb
./crash.rb:5: [BUG] rb_gc_mark(): 0x85e344c is T_NONE
ruby 2.2.2p95 (2015-04-13 revision 50295) [i686-linux]


I was able to create a crash.rb file (attached) that would generate a crash.  Essentially, we create a large hash of 131 entries in a method and then discard it.  Having 130 entries did not seem to make the crash happen.  The crash happens right away. 

This was first noticed for sure in 2.1.3, it probably exists in 2.1.6 and I verified it here with 2.2.2p95

I believe this may be related to other bugs such as 10803, 10827, and 10163.


----------------------------------------
Bug #11352: Sample code Garbage collection dies with an address is T_NONE
https://bugs.ruby-lang.org/issues/11352#change-53401

* Author: Frank Gifford
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: 2.2.2p95
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------


---Files--------------------------------
crash.rb (4.53 KB)
crash_out (9.48 KB)


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

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

* [ruby-core:69989] [Ruby trunk - Bug #11352] Sample code Garbage collection dies with an address is T_NONE
       [not found] <redmine.issue-11352.20150714201154@ruby-lang.org>
  2015-07-14 20:11 ` [ruby-core:69969] [Ruby trunk - Bug #11352] [Open] Sample code Garbage collection dies with a fgifford
  2015-07-14 20:17 ` [ruby-core:69970] [Ruby trunk - Bug #11352] Sample code Garbage collection dies with an address is T_NONE fgifford
@ 2015-07-16  1:17 ` s.wanabe
  2015-07-16  5:16 ` [ruby-core:69991] " nobu
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: s.wanabe @ 2015-07-16  1:17 UTC (permalink / raw)
  To: ruby-core

Issue #11352 has been updated by _ wanabe.


```
ruby -e 'puts "GC.stress = true; {", *(1..128).map {|i| "#{i} => 0," }, "129 => [],", "130 => [],", "131 => [],", "}"' | ruby
```

It causes similer [BUG] on `ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14]` and `ruby 2.3.0dev (2015-07-15 trunk 51015) [x86_64-darwin14]`.
I guess hash.length should be >= 131, and 129th (and also 130th and 131st ?) item of hash should be a target of GC.

----------------------------------------
Bug #11352: Sample code Garbage collection dies with an address is T_NONE
https://bugs.ruby-lang.org/issues/11352#change-53421

* Author: Frank Gifford
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: 2.2.2p95
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------


---Files--------------------------------
crash.rb (4.53 KB)
crash_out (9.48 KB)


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

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

* [ruby-core:69991] [Ruby trunk - Bug #11352] Sample code Garbage collection dies with an address is T_NONE
       [not found] <redmine.issue-11352.20150714201154@ruby-lang.org>
                   ` (2 preceding siblings ...)
  2015-07-16  1:17 ` [ruby-core:69989] " s.wanabe
@ 2015-07-16  5:16 ` nobu
  2015-08-10 16:31 ` [ruby-core:70312] " nagachika00
  2015-08-17  7:47 ` [ruby-core:70409] " usa
  5 siblings, 0 replies; 6+ messages in thread
From: nobu @ 2015-07-16  5:16 UTC (permalink / raw)
  To: ruby-core

Issue #11352 has been updated by Nobuyoshi Nakada.

Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: WONTFIX, 2.1: REQUIRED, 2.2: REQUIRED

----------------------------------------
Bug #11352: Sample code Garbage collection dies with an address is T_NONE
https://bugs.ruby-lang.org/issues/11352#change-53425

* Author: Frank Gifford
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: 2.2.2p95
* Backport: 2.0.0: WONTFIX, 2.1: REQUIRED, 2.2: REQUIRED
----------------------------------------


---Files--------------------------------
crash.rb (4.53 KB)
crash_out (9.48 KB)


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

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

* [ruby-core:70312] [Ruby trunk - Bug #11352] Sample code Garbage collection dies with an address is T_NONE
       [not found] <redmine.issue-11352.20150714201154@ruby-lang.org>
                   ` (3 preceding siblings ...)
  2015-07-16  5:16 ` [ruby-core:69991] " nobu
@ 2015-08-10 16:31 ` nagachika00
  2015-08-17  7:47 ` [ruby-core:70409] " usa
  5 siblings, 0 replies; 6+ messages in thread
From: nagachika00 @ 2015-08-10 16:31 UTC (permalink / raw)
  To: ruby-core

Issue #11352 has been updated by Tomoyuki Chikanaga.

Backport changed from 2.0.0: WONTFIX, 2.1: REQUIRED, 2.2: REQUIRED to 2.0.0: WONTFIX, 2.1: REQUIRED, 2.2: DONE

Backported into `ruby_2_2` branch at r51521.

----------------------------------------
Bug #11352: Sample code Garbage collection dies with an address is T_NONE
https://bugs.ruby-lang.org/issues/11352#change-53734

* Author: Frank Gifford
* Status: Closed
* Priority: Normal
* Assignee: 
* ruby -v: 2.2.2p95
* Backport: 2.0.0: WONTFIX, 2.1: REQUIRED, 2.2: DONE
----------------------------------------


---Files--------------------------------
crash.rb (4.53 KB)
crash_out (9.48 KB)


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

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

* [ruby-core:70409] [Ruby trunk - Bug #11352] Sample code Garbage collection dies with an address is T_NONE
       [not found] <redmine.issue-11352.20150714201154@ruby-lang.org>
                   ` (4 preceding siblings ...)
  2015-08-10 16:31 ` [ruby-core:70312] " nagachika00
@ 2015-08-17  7:47 ` usa
  5 siblings, 0 replies; 6+ messages in thread
From: usa @ 2015-08-17  7:47 UTC (permalink / raw)
  To: ruby-core

Issue #11352 has been updated by Usaku NAKAMURA.

Backport changed from 2.0.0: WONTFIX, 2.1: REQUIRED, 2.2: DONE to 2.0.0: WONTFIX, 2.1: DONE, 2.2: DONE

ruby_2_1 r51601 merged revision(s) 51263,51264.

----------------------------------------
Bug #11352: Sample code Garbage collection dies with an address is T_NONE
https://bugs.ruby-lang.org/issues/11352#change-53815

* Author: Frank Gifford
* Status: Closed
* Priority: Normal
* Assignee: 
* ruby -v: 2.2.2p95
* Backport: 2.0.0: WONTFIX, 2.1: DONE, 2.2: DONE
----------------------------------------


---Files--------------------------------
crash.rb (4.53 KB)
crash_out (9.48 KB)


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

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

end of thread, other threads:[~2015-08-17  7:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-11352.20150714201154@ruby-lang.org>
2015-07-14 20:11 ` [ruby-core:69969] [Ruby trunk - Bug #11352] [Open] Sample code Garbage collection dies with a fgifford
2015-07-14 20:17 ` [ruby-core:69970] [Ruby trunk - Bug #11352] Sample code Garbage collection dies with an address is T_NONE fgifford
2015-07-16  1:17 ` [ruby-core:69989] " s.wanabe
2015-07-16  5:16 ` [ruby-core:69991] " nobu
2015-08-10 16:31 ` [ruby-core:70312] " nagachika00
2015-08-17  7:47 ` [ruby-core:70409] " 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).