Giter Site home page Giter Site logo

Comments (7)

est31 avatar est31 commented on June 24, 2024

The segfault happens at:

0x00007ffff55fc22e in __udivmodti4 (a=11837846198047054611, b=10468428215946443262, rem=0x7ffff67fc388)
    at compiler-rt/lib/builtins/udivmodti4.c:47
47                      *rem = n.s.low % d.s.low;

from compiler-builtins.

japaric avatar japaric commented on June 24, 2024

According to this Travis build, this appears to only happens on MIPS.

EDIT: Actually, this might be a different error.

from compiler-builtins.

est31 avatar est31 commented on June 24, 2024

@japaric as you can see from this travis log, it failed on multiple 64 bit platforms (x86_64, aarch64, mips64, powerpc64, ...): https://travis-ci.org/rust-lang-nursery/compiler-builtins/builds/198218713

from compiler-builtins.

japaric avatar japaric commented on June 24, 2024

From #155, I'm seeing errors in the following unit tests only on 32-bit MIPS

  • divti3, SIGSEGV
  • modti3, fails an assert_eq where both LHS and RHS are the same
  • muloti4, "attempt to subtract with overflow" src/int/mul.rs:58
  • udivmodti4, SIGSEV
  • udivt3, wrong answer
    • expected: ((1844674407370955161400, 18002795302052819272), 11689864710784774277)
    • got: ((1844674407370955161400, 18002795302052819272), 11689864690002821119)
    • format: (inputs, output)
  • umodti3, "attempt to subtract with overflow" src/int/udiv.rs:278

from compiler-builtins.

japaric avatar japaric commented on June 24, 2024

@est31 AFAICS, all the errors in the build you have linked seem to be due to "missing symbol" which indicates a bad cache.

from compiler-builtins.

est31 avatar est31 commented on June 24, 2024

@japaric ah you are right. I think I remember though reproducing the issue on my native platform (x86_64). Maybe you can try to comment out this code and try whether you can reproduce?

from compiler-builtins.

japaric avatar japaric commented on June 24, 2024

Maybe you can try to comment out this code and try whether you can reproduce?

I can locally repro on x86_64. The weird thing is that we are not hitting this bug on x86_64 and other arches in #155.

from compiler-builtins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.