Skip to content

Instantly share code, notes, and snippets.

View tkelman's full-sized avatar

Tony Kelman tkelman

View GitHub Profile
diff --git a/base/parse.jl b/base/parse.jl
index d7c664d..66d8ced 100644
--- a/base/parse.jl
+++ b/base/parse.jl
@@ -1555,7 +1555,7 @@ function tryparse_internal{T<:Integer}(::Type{T}, s::AbstractString, startpos::I
end
base = convert(T,base)
- m::T = div(typemax(T)-base+1,base)
+ m::T = T===UInt128 || T===Int128 ? typemax(T) : div(typemax(T)-base+1,base)
JULIA test/all
* linalg1 in 284.41 seconds
* linalg2 in 171.92 seconds
* linalg3 in 76.70 seconds
* linalg4 in 42.04 seconds
* linalg/lapack in 74.93 seconds
* linalg/triangular in 1603.26 seconds
* linalg/tridiag in 80.90 seconds
* linalg/bidiag in 127.68 seconds
* linalg/diagonal in 179.26 seconds
Stack dump:
0. Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -cc1 -triple x86_64-apple-macosx10.7.0 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name ast.c -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -relaxed-aliasing -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 241.9 -gdwarf-2 -coverage-file /Users/travis/build/JuliaLang/julia/src/ast.dbg.obj -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.0 -D _LARGEFILE_SOURCE -D _DARWIN_USE_64_BIT_INODE=1 -D JL_SYSTEM_IMAGE_PATH="../lib/julia/sys.dylib" -D SYSTEM_LLVM -D HAVE_SSP=1 -D _FILE_OFFSET_BITS=64 -D COPY_STACKS -D JL_DEBUG_BUILD -D _GNU_SOURCE -D LIBRARY_EXPORTS -I flisp -I support -I /usr/local/Cellar/llvm33-julia/3.3_1/lib/llvm-3.3/include -I /Users/travis/build/JuliaLang/julia/usr/include -I /Users/travis/build/JuliaLang/julia/usr/include -I . -I /Users/travis/build/Ju
tkelman@julia:~/julia-0.4$ cat Make.user && make -C deps distclean-pcre && make -j8 -C deps install-pcre
LLVM_VER=svn
#LLVM_DEBUG=1
LLVM_ASSERTIONS=1
BUILD_LLVM_CLANG=1
BUILD_LLDB=1
LLDB_VER=master
USE_LLVM_SHLIB=1
LLDB_DISABLE_PYTHON=1
CXX=clang++
$ gdb -q -p 3656
Attaching to process 3656
[New Thread 3656.0x1d80]
[New Thread 3656.0x1ef0]
[New Thread 3656.0x6dc]
[New Thread 3656.0x1fa8]
[New Thread 3656.0x498]
[New Thread 3656.0x1888]
[New Thread 3656.0x1eb0]
[New Thread 3656.0xc48]
* iobuffer
Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x620b9770 -- jl_svec_fill at D:\cygwin64\home\Tony\julia32\usr\bin\libjulia.dll (unknown line)
jl_svec_fill at D:\cygwin64\home\Tony\julia32\usr\bin\libjulia.dll (unknown line)
jl_svec_fill at D:\cygwin64\home\Tony\julia32\usr\bin\libjulia.dll (unknown line)
jl_svec_fill at D:\cygwin64\home\Tony\julia32\usr\bin\libjulia.dll (unknown line)
jl_gc_collect at D:\cygwin64\home\Tony\julia32\usr\bin\libjulia.dll (unknown line)
jl_gc_allocobj at D:\cygwin64\home\Tony\julia32\usr\bin\libjulia.dll (unknown line)
jl_init_root_task at D:\cygwin64\home\Tony\julia32\usr\bin\libjulia.dll (unknown line)
jl_alloc_cell_1d at D:\cygwin64\home\Tony\julia32\usr\bin\libjulia.dll (unknown line)
D:\code\msys64\home\Tony\julia>usr\bin\julia-debug -e "versioninfo()" && usr\bin
\julia-debug test\runtests.jl numbers && echo ok
Julia Version 0.4.0-dev+5539
Commit 6ceb061* (2015-06-23 05:18 UTC)
DEBUG build
Platform Info:
System: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
tkelman@ygdesk:~/Julia/julia$ JULIA_CPU_CORES=1 gdb --args usr/bin/julia-debug --check-bounds=yes test/runtests.jl all
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
julia> include("test/choosetests.jl"); testlist, net_on = choosetests(); for i i
n testlist; try Base.runtests(i, 1); catch; end; end
* linalg1 in 178.44 seconds
SUCCESS
* linalg2 in 82.84 seconds
SUCCESS
* linalg3 in 65.92 seconds
SUCCESS
* linalg4 in 22.67 seconds
SUCCESS
diff --git a/base/string.jl b/base/string.jl
index 1542296..7b1f9ce 100644
--- a/base/string.jl
+++ b/base/string.jl
@@ -1562,7 +1562,7 @@ function tryparse_internal{T<:Integer}(::Type{T}, s::AbstractString, startpos::I
end
base = convert(T,base)
- m::T = div(typemax(T)-base+1,base)
+ m::T = T===UInt128 || T===Int128 ? typemax(T) : div(typemax(T)-base+1,base)