-
Notifications
You must be signed in to change notification settings - Fork 35
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
MWE of char crash #28
Comments
Seems to work locally on Windows on both 1.1 and master.
|
|
I can replicate with both 1.1 and master.
(My master is one commit later than @GunnarFarneback) |
This is the line that fails, I think. Maybe something going wrong with the |
Here's a repro that doesn't even use JuliaInterpreter: julia> a, b = ['0'], ['a'];
julia> eltype(a)
Char
julia> arr = Vector{Char}(undef, 2)
2-element Array{Char,1}:
'\0'
'\x00\x00\x7f\x89'
julia> ptr = pointer(arr)
Ptr{Char} @0x00007f893d190cb0
julia> elsz = sizeof(Char)
4
julia> na = length(a)
1
julia> nba = na * elsz
4
julia> ccall(:memcpy, Ptr{Cvoid}, (Ptr{Cvoid}, Ptr{Cvoid}, UInt), ptr, a, nba)
Unreachable reached at 0x7f893412a95e I'll file this as a Julia issue. |
The |
If we do #13 (comment), it might fix this issue too. If not, we need to develop a workaround for this. Even if the bug is fixed in Julia itself, I doubt we want to force people to run a 3-day old master in order to use JuliaInterpreter. |
This reproduces the crash in the
char
tests.with the result
The text was updated successfully, but these errors were encountered: