Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BoundsError on master but works fine on 1.0.3 (and previous) #30462

Closed
joa-quim opened this issue Dec 20, 2018 · 5 comments
Closed

BoundsError on master but works fine on 1.0.3 (and previous) #30462

joa-quim opened this issue Dec 20, 2018 · 5 comments
Labels
kind:bug Indicates an unexpected problem or unintended behavior kind:regression Regression in behavior compared to a previous version

Comments

@joa-quim
Copy link

A test with nightly builds of GMT.jl package started to fail since about two days ago (18 December). All tests pass with version 1.0.3 but one of them now fails in master. See
https://travis-ci.org/GenericMappingTools/GMT.jl/builds/470272490?utm_source=github_status&utm_medium=notification
The failure is about accessing an array out of bounds but the same code has been working with no problem till 2 days ago and still works fine with 1.0.3

julia> versioninfo()
Julia Version 1.0.3
Commit 099e826241 (2018-12-18 01:34 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.0 (ORCJIT, haswell)
Environment:
  JULIA_PKGDIR = c:\j\.julia
@tkoolen
Copy link
Contributor

tkoolen commented Dec 20, 2018

@KristofferC
Copy link
Sponsor Member

cc @jw3126

@joa-quim
Copy link
Author

Hmm don't know. It looks like a very likely candidate but I manually forced relaunching the failing CI job and it still fails for the same reason. #30441 was merged 14 hours ago (at time of this writing ofc) so it should have been used in this run, right?

$ julia --color=yes -e "VERSION >= v\"0.7.0-DEV.3630\" && using InteractiveUtils; versioninfo()"
Julia Version 1.2.0-DEV.42
Commit 258e08a605 (2018-12-20 07:34 UTC)

@jw3126
Copy link
Contributor

jw3126 commented Dec 20, 2018

Yes urghs, it is #30320 again. Its an off by 4 error, the SIMD variant of off by one error.

while stop <= last

should be something like stop <= last - 4 since there is 4 wide simd access in the loop. I can provide a PR, but probably not before the weekend.

@KristofferC KristofferC added the kind:bug Indicates an unexpected problem or unintended behavior label Dec 20, 2018
@KristofferC
Copy link
Sponsor Member

Yep, here is a MWE:

➜  julia git:(master) ✗ ./julia --check-bounds=yes -q
julia> a = rand(128, 128);

julia> minimum(a)
ERROR: BoundsError: attempt to access 128×128 Array{Float64,2} at index [16385]

jw3126 added a commit to jw3126/julia that referenced this issue Dec 20, 2018
@ararslan ararslan added the kind:regression Regression in behavior compared to a previous version label Dec 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug Indicates an unexpected problem or unintended behavior kind:regression Regression in behavior compared to a previous version
Projects
None yet
Development

No branches or pull requests

5 participants