[#50466] [ruby-trunk - Bug #7492][Open] Segmentation fault at DL::TestDL#test_call_double on x64 Windows 8 — "phasis68 (Heesob Park)" <phasis@...>

23 messages 2012/12/02

[#50558] [ruby-trunk - Feature #7511][Open] short-circuiting logical implication operator — "rits (First Last)" <redmine@...>

12 messages 2012/12/04

[#50575] [ruby-trunk - Feature #7517][Open] Fixnum::MIN,MAX — "matz (Yukihiro Matsumoto)" <matz@...>

20 messages 2012/12/05

[#50755] Becoming a committer — Charlie Somerville <charlie@...>

Hi ruby-core,

21 messages 2012/12/11
[#50759] Re: Becoming a committer — Yukihiro Matsumoto <matz@...> 2012/12/11

Hi,

[#50784] Re: Becoming a committer — Charles Oliver Nutter <headius@...> 2012/12/11

It's really this easy? If so, I'll send over my public key today :)

[#50795] Re: Becoming a committer — Yukihiro Matsumoto <matz@...> 2012/12/11

Hi,

[#50806] [ruby-trunk - Feature #7548][Open] Load and Require Callbacks — "trans (Thomas Sawyer)" <transfire@...>

12 messages 2012/12/12

[#50810] [ruby-trunk - Feature #7549][Open] A Ruby Design Process — "brixen (Brian Ford)" <brixen@...>

34 messages 2012/12/12

[#50867] [ruby-trunk - Bug #7556][Assigned] test error on refinement — "usa (Usaku NAKAMURA)" <usa@...>

14 messages 2012/12/13

[#50900] [ruby-trunk - Bug #7564][Open] r38175 introduces incompatibility — "tenderlovemaking (Aaron Patterson)" <aaron@...>

14 messages 2012/12/14

[#50951] [ruby-trunk - Bug #7584][Open] Ruby hangs when shutting down an ssl connection in gc finalization — "bpot (Bob Potter)" <bobby.potter@...>

12 messages 2012/12/17

[#51076] [ruby-trunk - Feature #7604][Open] Make === comparison operator ability to delegate comparison to an argument — "prijutme4ty (Ilya Vorontsov)" <prijutme4ty@...>

12 messages 2012/12/22

[ruby-core:51092] [ruby-trunk - Bug #7607] TypeError: invalid inspect_tbl pair_list on Windows 8

From: "phasis68 (Heesob Park)" <phasis@...>
Date: 2012-12-23 12:57:57 UTC
List: ruby-core #51092
Issue #7607 has been updated by phasis68 (Heesob Park).


Here is patch for this bug:

diff --git a/thread.c b/thread.c.new
index b7ae84c..9ef3d82 100644
--- a/thread.c
+++ b/thread.c.new
@@ -4591,7 +4591,11 @@ recursive_check(VALUE list, VALUE obj_id, VALUE paired_obj_id)
 	return Qfalse;
     if (paired_obj_id) {
 	if (!RB_TYPE_P(pair_list, T_HASH)) {
+#if SIZEOF_LONG == SIZEOF_VOIDP
 	if (pair_list != paired_obj_id)
+#elif SIZEOF_LONG_LONG == SIZEOF_VOIDP
+	if (!rb_eql(pair_list, paired_obj_id))
+#endif
 	    return Qfalse;
 	}
 	else {

----------------------------------------
Bug #7607: TypeError: invalid inspect_tbl pair_list on Windows 8
https://bugs.ruby-lang.org/issues/7607#change-35028

Author: phasis68 (Heesob Park)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 2.0.0dev (2012-12-23 trunk 38564) [x64-mswin64_110]


The changeset r38548 caused following test failures on x64 Windows 8.

  2) Error:
test_self_referential(Psych::TestArray):
TypeError: invalid inspect_tbl pair_list for :== in #<Thread:0x000045a4649558 run>
    C:/work/snapshot-ms64/test/psych/helper.rb:36:in `assert_cycle'
    C:/work/snapshot-ms64/test/psych/test_array.rb:50:in `test_self_referential'
    C:/work/snapshot-ms64/lib/test/unit.rb:651:in `block in _run_suites'
    C:/work/snapshot-ms64/lib/test/unit.rb:649:in `each'
    C:/work/snapshot-ms64/lib/test/unit.rb:649:in `_run_suites'
    C:/work/snapshot-ms64/lib/test/unit.rb:21:in `run'
    C:/work/snapshot-ms64/lib/test/unit.rb:768:in `run'
    C:/work/snapshot-ms64/lib/test/unit.rb:828:in `run'
    C:/work/snapshot-ms64/lib/test/unit.rb:832:in `run'
    ./test/runner.rb:17:in `<main>'

  3) Error:
test_self_referential(Psych::TestHash):
TypeError: invalid inspect_tbl pair_list for :== in #<Thread:0x000045a4649558 run>
    C:/work/snapshot-ms64/test/psych/helper.rb:36:in `assert_cycle'
    C:/work/snapshot-ms64/test/psych/test_hash.rb:26:in `test_self_referential'
    C:/work/snapshot-ms64/lib/test/unit.rb:651:in `block in _run_suites'
    C:/work/snapshot-ms64/lib/test/unit.rb:649:in `each'
    C:/work/snapshot-ms64/lib/test/unit.rb:649:in `_run_suites'
    C:/work/snapshot-ms64/lib/test/unit.rb:21:in `run'
    C:/work/snapshot-ms64/lib/test/unit.rb:768:in `run'
    C:/work/snapshot-ms64/lib/test/unit.rb:828:in `run'
    C:/work/snapshot-ms64/lib/test/unit.rb:832:in `run'
    ./test/runner.rb:17:in `<main>'

  4) Error:
test_self_referential(Psych::TestOmap):
TypeError: invalid inspect_tbl pair_list for :== in #<Thread:0x000045a4649558 run>
    C:/work/snapshot-ms64/test/psych/test_omap.rb:16:in `test_self_referential'
    C:/work/snapshot-ms64/lib/test/unit.rb:651:in `block in _run_suites'
    C:/work/snapshot-ms64/lib/test/unit.rb:649:in `each'
    C:/work/snapshot-ms64/lib/test/unit.rb:649:in `_run_suites'
    C:/work/snapshot-ms64/lib/test/unit.rb:21:in `run'
    C:/work/snapshot-ms64/lib/test/unit.rb:768:in `run'
    C:/work/snapshot-ms64/lib/test/unit.rb:828:in `run'
    C:/work/snapshot-ms64/lib/test/unit.rb:832:in `run'
    ./test/runner.rb:17:in `<main>'

  5) Error:
test_set_self_reference(Psych::TestSet):
TypeError: invalid inspect_tbl pair_list for :== in #<Thread:0x000045a4649558 run>
    C:/work/snapshot-ms64/test/psych/helper.rb:36:in `assert_cycle'
    C:/work/snapshot-ms64/test/psych/test_set.rb:46:in `test_set_self_reference'

    C:/work/snapshot-ms64/lib/test/unit.rb:651:in `block in _run_suites'
    C:/work/snapshot-ms64/lib/test/unit.rb:649:in `each'
    C:/work/snapshot-ms64/lib/test/unit.rb:649:in `_run_suites'
    C:/work/snapshot-ms64/lib/test/unit.rb:21:in `run'
    C:/work/snapshot-ms64/lib/test/unit.rb:768:in `run'
    C:/work/snapshot-ms64/lib/test/unit.rb:828:in `run'
    C:/work/snapshot-ms64/lib/test/unit.rb:832:in `run'
    ./test/runner.rb:17:in `<main>'

  6) Error:
test_self_referential_struct(Psych::TestStruct):
TypeError: invalid inspect_tbl pair_list for :== in #<Thread:0x000045a4649558 run>
    C:/work/snapshot-ms64/test/psych/test_struct.rb:27:in `test_self_referential_struct'
    C:/work/snapshot-ms64/lib/test/unit.rb:651:in `block in _run_suites'
    C:/work/snapshot-ms64/lib/test/unit.rb:649:in `each'
    C:/work/snapshot-ms64/lib/test/unit.rb:649:in `_run_suites'
    C:/work/snapshot-ms64/lib/test/unit.rb:21:in `run'
    C:/work/snapshot-ms64/lib/test/unit.rb:768:in `run'
    C:/work/snapshot-ms64/lib/test/unit.rb:828:in `run'
    C:/work/snapshot-ms64/lib/test/unit.rb:832:in `run'
    ./test/runner.rb:17:in `<main>'

 24) Failure:
test_class_nonascii(TestMarshal) [C:/work/snapshot-ms64/test/ruby/test_marshal.rb:302]:
[ruby-core:24882].
Exception raised:
<#<TypeError: invalid inspect_tbl pair_list for :== in #<Thread:0x000045a4649558 run>>>.

 53) Error:
test_comparison_when_recursive(TestRange):
TypeError: invalid inspect_tbl pair_list for :== in #<Thread:0x000045a4649558 run>
    C:/work/snapshot-ms64/test/ruby/test_range.rb:322:in `=='
    C:/work/snapshot-ms64/test/ruby/test_range.rb:322:in `block in test_comparison_when_recursive'
    C:/work/snapshot-ms64/lib/timeout.rb:65:in `timeout'
    C:/work/snapshot-ms64/test/ruby/test_range.rb:321:in `test_comparison_when_recursive'

 57) Error:
test_comparison_when_recursive(TestStruct):
TypeError: invalid inspect_tbl pair_list for :== in #<Thread:0x000045a4649558 run>
    C:/work/snapshot-ms64/test/ruby/test_struct.rb:243:in `=='
    C:/work/snapshot-ms64/test/ruby/test_struct.rb:243:in `block in test_comparison_when_recursive'
    C:/work/snapshot-ms64/lib/timeout.rb:65:in `timeout'
    C:/work/snapshot-ms64/test/ruby/test_struct.rb:242:in `test_comparison_when_recursive'



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

In This Thread