Project

General

Profile

Actions

Bug #10120

closed

TestSprintf#test_float still an issue

Added by vo.x (Vit Ondruch) over 10 years ago. Updated almost 10 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 2.0.0p353 (2013-11-22 revision 43784) [i686-linux]
[ruby-core:64284]

Description

The fix for #8358 is build time solution. Unfortunately it turns out that this does not work so well for for distributions such as Fedora:

https://bugzilla.redhat.com/show_bug.cgi?id=1101811

The issues is that the SSE2 support is determined during build time, i.e. if builder supports SSE2, then the instructions are enabled. However, later when the packaged Ruby is executed on platform which does not support SSE2, it may result in issues as described in the above mentioned ticket.

Is there some way, how to resolve this issue in runtime rather than build time?


Related issues 2 (0 open2 closed)

Related to Ruby master - Bug #8358: TestSprintf#test_float test failureClosedluislavena (Luis Lavena)05/02/2013Actions
Related to Ruby master - Bug #9705: Installing ruby 2.1.1 fails while compiling (after: rvm install 2.1.1)ClosedlinuxActions

Updated by vo.x (Vit Ondruch) over 10 years ago

  • Related to Bug #8358: TestSprintf#test_float test failure added

Updated by nobu (Nobuyoshi Nakada) over 10 years ago

How can I reproduce the problem of sprintf on Fedora?
Which version OS, libc, and gcc?

I CAN NEVER REPRODUCE IT ON ANY PLATFORMS, INCLUDE MINGW.

Updated by nobu (Nobuyoshi Nakada) over 10 years ago

  • Status changed from Open to Feedback

Updated by vo.x (Vit Ondruch) over 10 years ago

The #8358 was always issue on our builders and reproducible locally using mock [1]. E.g. I typically run the i686 build on my x86_64 OS inside the mock environment for i686.

These are approximately steps you should follow to reproduce:

  1. Run x86_64 Fedora
  2. yum install mock
  3. usermod -a -G mock [User name] && newgrp mock
  4. mock -r fedora-rawhide-i386 --init
  5. mock -r fedora-rawhide-i386 --install subversion bison
    5.1 you can similarly install whatever else you might find handy in the buildroot
  6. mock -r fedora-rawhide-i386 shell
  7. checkout the ruby repository and configure & make & make check

To be honest, I have never tried to reproduce the issue in pure i686 Fedora. Not sure if that might be of any difference.

[1] http://fedoraproject.org/wiki/Projects/Mock

Updated by hsbt (Hiroshi SHIBATA) over 10 years ago

  • Related to Bug #9705: Installing ruby 2.1.1 fails while compiling (after: rvm install 2.1.1) added

Updated by luislavena (Luis Lavena) over 10 years ago

  • Assignee set to nobu (Nobuyoshi Nakada)

Hello,

Now after r47129, mingw-w64 is failing again, so we are back to the beginning.

ruby -v: ruby 2.2.0dev (2014-08-24 trunk 47266) [i386-mingw32]
TestSprintf#test_float [C:/Users/Luis/Code/ruby/ruby/test/ruby/test_sprintf.rb:208]:
[ruby-dev:42551].
<"0x1p+2"> expected but was
<"0x1p+1">.

I'm out of ideas on how to solve this without: force SSE or change the pow/float implementation for MinGW.

Open to suggestions.

Thank you.

Updated by vo.x (Vit Ondruch) about 10 years ago

  • Status changed from Feedback to Closed
  • Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN to 2.0.0: REQUIRED, 2.1: REQUIRED

This should be resolved by r48844 according to [1].

[1] https://bugs.ruby-lang.org/issues/10553#note-14

Actions #8

Updated by nagachika (Tomoyuki Chikanaga) almost 10 years ago

  • Backport changed from 2.0.0: REQUIRED, 2.1: REQUIRED to 2.0.0: REQUIRED, 2.1: DONE

r47129 and r48844 were backported into ruby_2_1 branch at r50067.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0