-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Corruption caused by ReadOnlyMemoryError test #11691
Comments
All 32-bits .... |
if you try and reproduce the same env. remember that the vm is 64 bit cross compiling for i686 If no one beats me to it I'll try to have a look in the afternoon |
I'm booting up my container but you'll probably beat me at finding the problem =) |
I've got a segfault but it looks pretty random.... |
Hmm. Actually it was quite repeatable. This is a out-of-bound access. @mbauman It happens on |
does --check-bounds=yes catches it ? |
I'll try that. Note that the access looks perfectly normal though maybe corrupt somewhere else...... Dump of assembler code for function julia_setindex!_6675:
0xf6511130 <+0>: push %ebp
0xf6511131 <+1>: mov %esp,%ebp
0xf6511133 <+3>: push %ebx
0xf6511134 <+4>: push %esi
0xf6511135 <+5>: call 0xf651113a <julia_setindex!_6675+10>
0xf651113a <+10>: pop %ebx
0xf651113b <+11>: add $0x1e50fe,%ebx
0xf6511141 <+17>: mov 0x10(%ebp),%ecx
0xf6511144 <+20>: mov 0x8(%ebp),%eax
0xf6511147 <+23>: lea -0x1(%ecx),%edx
0xf651114a <+26>: cmp 0x4(%eax),%edx
0xf651114d <+29>: jae 0xf651115e <julia_setindex!_6675+46>
0xf651114f <+31>: mov 0xc(%ebp),%cl
0xf6511152 <+34>: mov (%eax),%esi
=> 0xf6511154 <+36>: mov %cl,(%esi,%edx,1)
0xf6511157 <+39>: lea -0x8(%ebp),%esp
0xf651115a <+42>: pop %esi
0xf651115b <+43>: pop %ebx
0xf651115c <+44>: pop %ebp
0xf651115d <+45>: ret
0xf651115e <+46>: mov %esp,%edx
0xf6511160 <+48>: lea -0x10(%edx),%esi
0xf6511163 <+51>: mov %esi,%esp
0xf6511165 <+53>: mov %ecx,-0x10(%edx)
0xf6511168 <+56>: sub $0x4,%esp
0xf651116b <+59>: push $0x1
0xf651116d <+61>: push %esi
0xf651116e <+62>: push %eax
0xf651116f <+63>: call 0xf64236f0 <jl_bounds_error_ints@plt>
0xf6511174 <+68>: add $0x10,%esp |
No it doesn't. (This is in a precompiled function though. Would the command line option affect this?) |
P.S. I said it is out-of-bound access because of this #0 0xf6511154 in julia_setindex!_6675 (
x=<error reading variable: access outside bounds of object referenced via synthetic pointer>, i0=<optimized out>) at array.jl:321 Not necessarily out-of-bound in julia array sense. |
And seems that I didn't mention yet, this is the |
That GDB error doesn't mean much, so it's not necessarily an out of bounds error. |
I think you're hitting the mmap segfault handler test. |
You are right. I'll comment out that test and try again.. Or is it possible that the signal handler does sth bad.? (#11003 ?) |
I think this is due to #11491, I've been getting the file segfault locally on win64 and just finished bisecting it down to a2b6943 (not sure why I see it locally but not on appveyor though). As Tim remembered from last year, the one failure that was in llvmcall was on the same worker that had previously run the file test. |
#11491 is a particularly seg-faulty PR, though I was able to test it several times locally on Windows and OSX 64-bit. There isn't anything in there that should be 32/64-bit sensitive though AFAIK, so not sure... |
So do we need to comment-out that test? |
Is there a branch that removes these tests to see if Travis is indeed happy? |
Not yet? Go for it? |
…some corruption on 32bit linux #11691
…some corruption on 32bit linux #11691
also happens on win64 btw, so it's not only a 32 bit issue - it just appears to be way less common on linux 64 (and mac 64?) |
32bit tag removed (also from the title...) #11003 still make me suspect LLVM is doing sth bad (if I understand that issue correctly). |
…some corruption on 32bit linux JuliaLang#11691
…o cause some corruption on 32bit linux JuliaLang#11691" This reverts commit 224829e.
…o cause some corruption on 32bit linux JuliaLang#11691" This reverts commit 224829e.
…o cause some corruption on 32bit linux JuliaLang#11691" This reverts commit 224829e.
…o cause some corruption on 32bit linux JuliaLang#11691" This reverts commit 224829e.
https://travis-ci.org/JuliaLang/julia/jobs/66569134 in file test
https://travis-ci.org/JuliaLang/julia/jobs/66559939 in file test
https://travis-ci.org/JuliaLang/julia/jobs/66554918 in llvmcall test
All crashed in different places.
The text was updated successfully, but these errors were encountered: