Skip to content

Illegal inttoptr in ApproxFun branch at compile time #28379

@dlfivefifty

Description

@dlfivefifty

This may be related to #28208

The branches are a bit non-standard: I have

ApproxFun on branch "bug-illegalint"
JuliaApproximation/Domains.jl on branch "dl/approxfun"
IntervalSets.jl on PR JuliaMath/IntervalSets.jl#26

julia> versioninfo()
Julia Version 0.7.0-beta2.199
Commit 6026374bce (2018-07-31 13:20 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin17.7.0)
  CPU: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.0 (ORCJIT, skylake)
Environment:
  JULIA_VERSION = 0.6

julia> using ApproxFun

julia> V, a = view([1.0,2.0],1:1:2),Chebyshev(0..1.0)
([1.0, 2.0], Chebyshev(0.0..1.0))

julia> precompile(ApproxFun.defaultcoefficients, (typeof(V), typeof(a),typeof(a)))
Illegal inttoptr
	  %57 = ptrtoint double addrspace(13)* %56 to i64
Illegal inttoptr
	  %72 = inttoptr i64 %71 to i8 addrspace(13)*

signal (6): Abort trap: 6
in expression starting at no file:0
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
Allocations: 89369522 (Pool: 89366283; Big: 3239); GC: 60
Abort trap: 6

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions