[#84867] [Ruby trunk Bug#14357] thread_safe tests suite segfaults โ v.ondruch@...
Issue #14357 has been reported by vo.x (Vit Ondruch).
11 messages
2018/01/15
[#85364] Re: [Ruby trunk Bug#14357] thread_safe tests suite segfaults
โ Eric Wong <normalperson@...>
2018/02/03
v.ondruch@tiscali.cz wrote:
[#85368] Re: [Ruby trunk Bug#14357] thread_safe tests suite segfaults
โ Eric Wong <normalperson@...>
2018/02/03
Eric Wong wrote:
[#85442] Re: [Ruby trunk Bug#14357] thread_safe tests suite segfaults
โ Eric Wong <normalperson@...>
2018/02/06
Eric Wong <normalperson@yhbt.net> wrote:
[#85451] Re: [Ruby trunk Bug#14357] thread_safe tests suite segfaults
โ Vladimir Makarov <vmakarov@...>
2018/02/06
On 02/06/2018 05:00 AM, Eric Wong wrote:
[#84874] [Ruby trunk Bug#14360] Regression CSV#open method for writing from Ruby 2.4.3 to 2.5.0 โ shevegen@...
Issue #14360 has been updated by shevegen (Robert A. Heiler).
3 messages
2018/01/15
[#84945] [Ruby trunk Bug#14378] On windows, RUBY_FIXNUM_MAX of 64 bits ruby is 32 bits โ sxysxygm@...
Issue #14378 has been updated by HfCloud (Xiangyu Shi).
3 messages
2018/01/20
[#84980] [Ruby trunk Feature#13618][Assigned] [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid โ hsbt@...
Issue #13618 has been updated by hsbt (Hiroshi SHIBATA).
10 messages
2018/01/23
[#85012] Re: [Ruby trunk Feature#13618][Assigned] [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
โ Eric Wong <normalperson@...>
2018/01/23
hsbt@ruby-lang.org wrote:
[#85081] Re: [Ruby trunk Feature#13618][Assigned] [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
โ Eric Wong <normalperson@...>
2018/01/24
Eric Wong <normalperson@yhbt.net> wrote:
[#85082] Re: [Ruby trunk Feature#13618][Assigned] [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
โ Eric Wong <normalperson@...>
2018/01/24
> Thinking about this even more; I don't think it's possible to
[#85088] [Ruby trunk Feature#13618] [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid โ danieldasilvaferreira@...
Issue #13618 has been updated by dsferreira (Daniel Ferreira).
3 messages
2018/01/25
[#85107] [Ruby trunk Misc#14222] Mutex.lock is not safe inside signal handler: what is? โ eregontp@...
Issue #14222 has been updated by Eregon (Benoit Daloze).
3 messages
2018/01/25
[#85136] Re: [Ruby trunk Feature#13618] [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid โ Eric Wong <normalperson@...>
samuel@oriontransfer.org wrote:
3 messages
2018/01/26
[ruby-core:84585] [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:
2018-01-02 06:59:20 UTC
List:
ruby-core #84585
Issue #14260 has been updated by shyouhei (Shyouhei Urabe).
ngoto (Naohisa Goto) wrote:
> >> ใใใใใฃใผใซใใฎใใใฉใซใใฏ unsigned int ใจใใใฎใCใฎ่ฆๆ ผใซใฆๅฎใใใใฆใใพใใใ
>
> >ใใใใชใใใใใพๅฎถใซใใฆCใฎ่ฆๆ ผใซใขใฏใปในใงใใชใใฎใงใใใใใฎใใใช่ฆๅฎใใใฃใ่จๆถใใชใใงใใใฉใใฎใปใฏใทใงใณใซๆธใใฆใใใพใใใงใใใใ?
>
> ใๆๆใฎใจใใใๅ
ใฎ่จ่ฟฐใฏ้้ใใงใใใ
> ๆญฃใใใฏ implementation-defined ใงใใใฎใง่จๆญฃใใพใใใๆๆใใใใจใใใใใพใใใ
>
> ๅๆฌใฏ็งใๆๅ
ใซใฏ็กใใฎใงใใใC99 ใงใฏ 6.7.2.1 ใซๆธใใใฆใใใจใฎใใจใงใใ
> ๅ่ใซใใใใผใธ: http://en.cppreference.com/w/c/language/bit_field
>
> Oracle Solaris Studio ใ IBM ใฎใณใณใใคใฉใงใฏๆชๆๅฎใฎintใฏ unsigned ๆฑใใซใชใใจใฎ่จ่ฟฐใ่ฆใคใใฆใใใใจใใใใๅ้ใใใฆใใพใใใ
>
> Oracle: https://docs.oracle.com/cd/E19205-01/820-1209/bjayo/index.html
>
> IBM: https://www.ibm.com/support/knowledgecenter/en/SSQ2R2_8.5.1/com.ibm.tpf.toolkit.compilers.doc/ref/langref_zos/clrc03defbitf.htm
>
> ไธๆนใGCCใงใฏ singed ใจใฎใใจใงใใ
> https://gcc.gnu.org/onlinedocs/gcc-5.2.0/gcc/Structures-unions-enumerations-and-bit-fields-implementation.html
>
> ใชใใ๏ผๅฐใชใใจใๆ่ฟใฎ๏ผ GCC ใ Oracle Developer Studio ใงใฏใณใณใใคใซๆใฎใชใใทใงใณใงๅคๆดๅฏ่ฝใจใฎใใจใงใใ
่ชฟๆปใใฆใใใ ใใฆใใใใจใใใใใพใใใใใฎใใใช็ถๆณใงใใใฐ่ฃธใฎintใฎๅฉ็จใฏๆงใใฆsignedใunsignedใๆ็คบใใใปใใ่ฏใใใใงใใญใไฟฎๆญฃใฏๅฆฅๅฝใใใ ใจๆใใพใใใ
----------------------------------------
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-69124
* 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>