Comments (7)
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.
According to this Travis build, this appears to only happens on MIPS.
EDIT: Actually, this might be a different error.
from compiler-builtins.
@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.
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)
- expected:
- umodti3, "attempt to subtract with overflow" src/int/udiv.rs:278
from compiler-builtins.
@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.
@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.
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)
- For msp430, `__ashldi3` takes a 16-bit integer as the second argument in LLVM's `compiler-rt`. Probably affects other builtins. HOT 4
- 'LLVM ERROR: Expected a constant shift amount!' when compiling for avr-atmega328p HOT 28
- The "mangled-names" feature removes intrinsics from compiler_builtins that aren't in compiler_rt HOT 9
- AEABI division function linking problems (again) HOT 2
- duplicated intrinsic implementations linked into libstd HOT 4
- libm directory is missing from 0.1.97 crates.io release HOT 2
- wrong define of 128-bit related functions like `__multi3` and `__floatuntidf` on `csky` HOT 4
- The `USE_NATIVE_FULL_ITERATIONS` codepath in `div64` is broken
- Several functions perform out-of-bounds memory accesses (which is UB) HOT 16
- undefined reference to `memcpy`, undefined reference to `memset` HOT 1
- `__extenddftf2` is found to be missing at runtime when using the WASI SDK to build Rust crates' C code HOT 1
- Getting C-defined intrinsics into a project that uses the stable compiler doesn't work because of all the `#![feature]` checks HOT 2
- Unable to find long double symbols on `aarch64-apple-darwin` HOT 4
- Adding feature to port `libm` for any target HOT 3
- Unable to use static macOS libraries in Unreal Engine projects HOT 2
- Regression: build failure on i686-pc-windows-gnu due to multiple definition of `_alloca` HOT 15
- Undefined reference to __chkstk, __alloca when building target i686-unknown-uefi
- aarch64 windows build failure HOT 1
- `aarch64-linux` `multf3` symbol has incorrect rounding HOT 1
- Unable to `-Zbuild-std` because std depends on `compiler-builtins` without the `no-f16-f128` features HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compiler-builtins.