[#84280] [Ruby trunk Bug#14181] hangs or deadlocks from waitpid, threads, and trapping SIGCHLD โ nobu@...
Issue #14181 has been updated by nobu (Nobuyoshi Nakada).
3 messages
2017/12/15
[#84398] [Ruby trunk Bug#14220] WEBrick changes - failures on MSWIN, MinGW โ Greg.mpls@...
Issue #14220 has been reported by MSP-Greg (Greg L).
3 messages
2017/12/22
[#84472] Re: [ruby-dev:50394] [Ruby trunk Bug#14240] warn four special variables: $; $, $/ $\ โ Eric Wong <normalperson@...>
Shouldn't English posts be on ruby-core instead of ruby-dev?
3 messages
2017/12/26
[ruby-core:84571] [Ruby trunk Bug#14260] test failure related with proc arity on 32-bit environment (e.g. Solaris 10 with 32-bit compile)
From:
shyouhei@...
Date:
2017-12-31 13:22:43 UTC
List:
ruby-core #84571
Issue #14260 has been updated by shyouhei (Shyouhei Urabe).
> ใใใใใฃใผใซใใฎใใใฉใซใใฏ unsigned int ใจใใใฎใCใฎ่ฆๆ ผใซใฆๅฎใใใใฆใใพใใใ
ใใใใชใใใใใพๅฎถใซใใฆCใฎ่ฆๆ ผใซใขใฏใปในใงใใชใใฎใงใใใใใฎใใใช่ฆๅฎใใใฃใ่จๆถใใชใใงใใใฉใใฎใปใฏใทใงใณใซๆธใใฆใใใพใใใงใใใใ?
----------------------------------------
Bug #14260: test failure related with proc arity on 32-bit environment (e.g. Solaris 10 with 32-bit compile)
https://bugs.ruby-lang.org/issues/14260#change-69113
* Author: ngoto (Naohisa Goto)
* Status: Closed
* Priority: Normal
* Assignee:
* Target version:
* ruby -v:
* Backport: 2.3: DONTNEED, 2.4: DONTNEED, 2.5: REQUIRED
----------------------------------------
ใใใใ r59358 ไปฅ้ใsparc ใฎ Solaris 10 ไธใฎ Oracle Developer Studio (Oracle Solaris Studio) 12.x ใซใฆ 32ใใใใงใณใณใใคใซใใ้ใ
make test-all ใซใฆไปฅไธใฎใใใช failure ใๅบใใใใซใชใใพใใใ
(ไปฅไธใฏ r61515 ใงใฎ็ตๆ)
~~~
1) Failure:
TestLazyEnumerator#test_each_cons_limit [/XXXXX/test/ruby/test_lazy_enumerator.rb:548]:
<[[1, 2], [2, 3]]> expected but was
<[[2, 3], [2, 3]]>.
2) Failure:
TestProc#test_bound_parameters [/XXXXX/test/ruby/test_proc.rb:1184]:
<[[:rest]]> expected but was
<[]>.
3) Failure:
TestEnumerator#test_cons [/XXXXX/test/ruby/test_enumerator.rb:118]:
<[[1, 2, 3],
[2, 3, 4],
[3, 4, 5],
[4, 5, 6],
[5, 6, 7],
[6, 7, 8],
[7, 8, 9],
[8, 9, 10]]> expected but was
<[[8, 9, 10],
[8, 9, 10],
[8, 9, 10],
[8, 9, 10],
[8, 9, 10],
[8, 9, 10],
[8, 9, 10],
[8, 9, 10]]>.
4) Failure:
TestEnumerator#test_slice [/XXXXX/test/ruby/test_enumerator.rb:113]:
<[[1, 2, 3], [4, 5, 6], [7, 8, 9], [10]]> expected but was
<[[10], [10], [10], [10]]>.
๏ผไธญ็ฅ๏ผ
6) Failure:
TestProc#test_arity2 [/XXXXX/test/ruby/test_proc.rb:439]:
<-1> expected but was
<0>.
7) Failure:
TestLazyEnumerator#test_each_slice_limit [/XXXXX/test/ruby/test_lazy_enumerator.rb:554]:
<[[1, 2], [3, 4]]> expected but was
<[[3, 4], [3, 4]]>.
๏ผๅพ็ฅ๏ผ
~~~
็ต่ซใใ่จใใจไปฅไธใฎใใใใงๆฒปใใพใใใ
ใใใใใฃใผใซใใฎใใใฉใซใใฏ unsigned int ใจใใใฎใCใฎ่ฆๆ ผใซใฆๅฎใใใใฆใใพใใใ
max ใซ -1 ๏ผใใฏใญ UNLIMITED_ARGUMENTS ใฎๅค๏ผใไปฃๅ
ฅใใใๅ ดๅใใใใ
ใใใ unsigned int : 16 ใงใฏ 65535 ใไปฃๅ
ฅใใใใฎใจๅใใใใๅใซใชใใ
ใใใๅๅบฆ signed int ใซๆปใ้ใซใใใฎใพใพ 65535 ใๆปใใใใคใพใๆๅณใใชใๅคใซๅใใฆใใพใใ
๏ผใใใใธใใฎๅฆ็ใฏใCใฎ่ฆๆ ผใงใฏใใใใๅฆ็็ณปไพๅญใจใใใฆใใใจๆใใพใ๏ผ
arityใ UNLIMITED_ARGUMENTS ใ 0 ใจๆฏ่ผใใๅคๅฎ็ตๆใ็ฐๅธธใซใชใใ
ไธ่จใฎFailureใ็บ็ใใใใใงใใ
ใชใใ64ใใใใงใณใณใใคใซใใใจ `#else` ไปฅไธใฎ `int min, max;` ใไฝฟใใใใใใใใฃใผใซใใงใฏใชใใชใใใใใใฎFailreใฏ็บ็ใใพใใใ
ใพใใgcc ใงใฏ 16 ใใใใฎใพใพ็ฌฆๅทใใใฎ -1 ใซใใฆใใๆปใใฆใใใ๏ผๅ ดๅใใใ๏ผ๏ผใใใงใ๏ผๅคง้จๅใฎ๏ผ๏ผFailureใฏ็บ็ใใชใใใใงใ๏ผใไธ้จใใใใ้จๅใใใฃใใฃใฝใ๏ผ๏ผใ
~~~
--- internal.h (revision 61515)
+++ internal.h (working copy)
@@ -912,12 +912,12 @@
/* IFUNC (Internal FUNCtion) */
struct vm_ifunc_argc {
#if SIZEOF_INT * 2 > SIZEOF_VALUE
- int min: (SIZEOF_VALUE * CHAR_BIT) / 2;
- int max: (SIZEOF_VALUE * CHAR_BIT) / 2;
+ signed int min: (SIZEOF_VALUE * CHAR_BIT) / 2;
+ signed int max: (SIZEOF_VALUE * CHAR_BIT) / 2;
#else
int min, max;
#endif
};
~~~
ไปๅใFailureใ็บ็ใใใฎใฏ Solaris ใ ใใงใใใๅ
จใฆใฎ32ใใใ็ฐๅขใซใฆๆฝๅจ็ใซๅ้กใ็บ็ใใๅฏ่ฝๆงใใใใณใผใใ ใฃใใจ่จใใพใใ
ใใใฆใใใใใใฃใผใซใใงใกใขใชใ็ฏ็ดใใฆใใ็ฎๆใฏไปใซใ่คๆฐใใใจๆใใพใใใunsigned int ๆฑใใง็ขบใใซๆญฃใใใใ่ฒ ใฎๅคใๆๅณใใไปฃๅ
ฅใใฆใใชใใใๅฟตใฎใใ็ท็นๆคใใๅฟ
่ฆใใใใใใใใชใใจๆใใพใใใ
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>