Created
May 2, 2016 14:54
-
-
Save ivirshup/a83cc4554678788e6ea24ec48741d5b9 to your computer and use it in GitHub Desktop.
`bus error` and `StackOverflowError` examples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_ | |
_ _ _(_)_ | A fresh approach to technical computing | |
(_) | (_) (_) | Documentation: http://docs.julialang.org | |
_ _ _| |_ __ _ | Type "?help" for help. | |
| | | | | | |/ _` | | | |
| | |_| | | | (_| | | Version 0.5.0-dev+3825 (2016-05-01 18:02 UTC) | |
_/ |\__'_|_|_|\__'_| | Commit 89775a5 (0 days old master) | |
|__/ | x86_64-apple-darwin15.4.0 | |
julia> function foo() | |
ts = filter(x->isa(x, DataType), map(eval, names(Base))) | |
for x in ts | |
end | |
permutations(ts, 2) | |
end | |
foo (generic function with 1 method) | |
julia> foo() | |
uERROR: permutations(Any[Pair{A,B},AbstractChannel,AbstractRNG,AbstractSparseArray{Tv,Ti,N},ArgumentError,Array{T,N},AssertionError,Associative{K,V},Base64DecodePipe,Base64EncodePipe,Bidiagonal{T},BigFloat,BigInt,BitArray{N},BitArray{2},BitArray{1},BufferStream,CapturedException,CartesianIndex{N},CartesianRange{I<:CartesianIndex{N}},Int8,Float64,Float32,Channel{T},Int32,Int64,Int64,Int64,ClusterManager,Cmd,Colon,Complex{T<:Real},Complex{Float64},Complex{Float16},Complex{Float32},CompositeException,Condition,Int64,Int16,UInt64,Int64,Cstring,UInt8,UInt32,UInt64,UInt64,UInt64,UInt16,Int32,Cwstring,Date,DateTime,Diagonal{T},Dict{K,V},DimensionMismatch,Tuple{Vararg{Int64}},Display,EOFError,EachLine,Enum,Enumerate{I},ErrorException,Factorization{T},FileMonitor,Filter{F,I},FloatRange{T<:AbstractFloat},Future,HTML{T},Hermitian{T,S<:AbstractArray{T,2}},IO,Base.AbstractIOBuffer{Array{UInt8,1}},IOContext{IO_t<:IO},IOStream,IPAddr,IPv4,IPv6,InitError,IntSet,InvalidStateException,Irrational{sym},KeyError,LinSpace{T<:AbstractFloat},LoadError,LocalProcess,LowerTriangular{T,S<:AbstractArray{T,2}},MIME{mime},MersenneTwister,MethodError,NullException,Nullable{T},ObjectIdDict,OrdinalRange{T,S},Pair{A,B},ParseError,PartialQuickSort{T<:Union{Int64,OrdinalRange{T,S}}},Pipe,PollingFileWatcher,ProcessExitedException,ProcessGroup,RandomDevice,Range{T},Rational{T<:Integer},RawFD,ReentrantLock,Regex,RegexMatch,RemoteChannel{T<:AbstractChannel},RemoteException,RepString,RevString{T<:AbstractString},RopeString,RoundingMode{T},SerializationState{I<:IO},Set{T},SharedArray{T,N},SparseMatrixCSC{Tv,Ti<:Integer},SparseVector{Tv,Ti<:Integer},StackFrame,Array{StackFrame,1},StepRange{T,S},SubArray{T,N,P,I,L},SubString{T<:AbstractString},SymTridiagonal{T},Symmetric{T,S<:AbstractArray{T,2}},SystemError,TCPSocket,Text{T},TextDisplay,Timer,Tridiagonal{T},TypeError,UDPSocket,UTF16String,UTF32String,UnicodeError,UniformScaling{T<:Number},Union,UnitRange{T<:Real},UpperTriangular{T,S<:AbstractArray{T,2}},Val{T},VersionNumber,UTF32String,WeakKeyDict{K,V},WorkerConfig,WorkerPool,Zip{I,Z<:Base.AbstractZipIterator}],2) has been moved to the package Combinatorics.jl. | |
Run Pkg.add("Combinatorics") to install Combinatorics on Julia v0.5- | |
in error(::ASCIIString) at ./error.jl:21 | |
[inlined code] from ./strings/io.jl:53 | |
in permutations(::Array{Any,1}, ::Vararg{Any}) at ./combinatorics.jl:208 | |
in foo() at ./REPL[1]:5 | |
in eval(::Module, ::Any) at ./boot.jl:236 | |
julia> using Combinatorics | |
julia> foo() | |
[1] 8475 bus error julia-dev | |
isaac@Mimir ~/GoogleDrive/Work/Julia/JuliaUsage$ julia-dev 138 ↵ ✹ ✭master | |
_ | |
_ _ _(_)_ | A fresh approach to technical computing | |
(_) | (_) (_) | Documentation: http://docs.julialang.org | |
_ _ _| |_ __ _ | Type "?help" for help. | |
| | | | | | |/ _` | | | |
| | |_| | | | (_| | | Version 0.5.0-dev+3825 (2016-05-01 18:02 UTC) | |
_/ |\__'_|_|_|\__'_| | Commit 89775a5 (0 days old master) | |
|__/ | x86_64-apple-darwin15.4.0 | |
julia> function foo() | |
ts = filter(x->isa(x, DataType), map(eval, names(Base))) | |
for x in ts | |
end | |
permutations(ts, 2) | |
end | |
foo (generic function with 1 method) | |
julia> foo() | |
usinERROR: permutations(Any[Pair{A,B},AbstractChannel,AbstractRNG,AbstractSparseArray{Tv,Ti,N},ArgumentError,Array{T,N},AssertionError,Associative{K,V},Base64DecodePipe,Base64EncodePipe,Bidiagonal{T},BigFloat,BigInt,BitArray{N},BitArray{2},BitArray{1},BufferStream,CapturedException,CartesianIndex{N},CartesianRange{I<:CartesianIndex{N}},Int8,Float64,Float32,Channel{T},Int32,Int64,Int64,Int64,ClusterManager,Cmd,Colon,Complex{T<:Real},Complex{Float64},Complex{Float16},Complex{Float32},CompositeException,Condition,Int64,Int16,UInt64,Int64,Cstring,UInt8,UInt32,UInt64,UInt64,UInt64,UInt16,Int32,Cwstring,Date,DateTime,Diagonal{T},Dict{K,V},DimensionMismatch,Tuple{Vararg{Int64}},Display,EOFError,EachLine,Enum,Enumerate{I},ErrorException,Factorization{T},FileMonitor,Filter{F,I},FloatRange{T<:AbstractFloat},Future,HTML{T},Hermitian{T,S<:AbstractArray{T,2}},IO,Base.AbstractIOBuffer{Array{UInt8,1}},IOContext{IO_t<:IO},IOStream,IPAddr,IPv4,IPv6,InitError,IntSet,InvalidStateException,Irrational{sym},KeyError,LinSpace{T<:AbstractFloat},LoadError,LocalProcess,LowerTriangular{T,S<:AbstractArray{T,2}},MIME{mime},MersenneTwister,MethodError,NullException,Nullable{T},ObjectIdDict,OrdinalRange{T,S},Pair{A,B},ParseError,PartialQuickSort{T<:Union{Int64,OrdinalRange{T,S}}},Pipe,PollingFileWatcher,ProcessExitedException,ProcessGroup,RandomDevice,Range{T},Rational{T<:Integer},RawFD,ReentrantLock,Regex,RegexMatch,RemoteChannel{T<:AbstractChannel},RemoteException,RepString,RevString{T<:AbstractString},RopeString,RoundingMode{T},SerializationState{I<:IO},Set{T},SharedArray{T,N},SparseMatrixCSC{Tv,Ti<:Integer},SparseVector{Tv,Ti<:Integer},StackFrame,Array{StackFrame,1},StepRange{T,S},SubArray{T,N,P,I,L},SubString{T<:AbstractString},SymTridiagonal{T},Symmetric{T,S<:AbstractArray{T,2}},SystemError,TCPSocket,Text{T},TextDisplay,Timer,Tridiagonal{T},TypeError,UDPSocket,UTF16String,UTF32String,UnicodeError,UniformScaling{T<:Number},Union,UnitRange{T<:Real},UpperTriangular{T,S<:AbstractArray{T,2}},Val{T},VersionNumber,UTF32String,WeakKeyDict{K,V},WorkerConfig,WorkerPool,Zip{I,Z<:Base.AbstractZipIterator}],2) has been moved to the package Combinatorics.jl. | |
Run Pkg.add("Combinatorics") to install Combinatorics on Julia v0.5- | |
in error(::ASCIIString) at ./error.jl:21 | |
[inlined code] from ./strings/io.jl:53 | |
in permutations(::Array{Any,1}, ::Vararg{Any}) at ./combinatorics.jl:208 | |
in foo() at ./REPL[1]:5 | |
in eval(::Module, ::Any) at ./boot.jl:236 | |
julia> using Combinatorics | |
julia> foo() | |
ERROR: StackOverflowError: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment