You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have encountered a segfault while running the tests for the ArgParse package on latest julia master (it works fine on 0.4).
To reproduce, just install ArgParse version 0.3.0 (the latest at the time of writing) and run the tests with Pkg.test("ArgParse"). Ignore the deprecation warnings. At test number 5, it segfaults. The culprit is this line where rethrow() is invoked.
I can fix the segfault by adding the argument to rethrow(), from this:
catch err
isa(err, ArgParseError) ||rethrow()
end
to this:
catch err
isa(err, ArgParseError) ||rethrow(err)
end
The segfault message is:
signal (11): Segmentation fault
while loading /home/carlo/.julia/v0.5/ArgParse/test/argparse_test5.jl, in expression starting on line 58
parse_command_args at /home/carlo/.julia/v0.5/ArgParse/src/ArgParse.jl:1589
unknown function (ip: 0x7f749036f9c6)
jl_call_method_internal at /home/carlo/Programs/julia/src/julia_internal.h:175
parse_args_unhandled at /home/carlo/.julia/v0.5/ArgParse/src/ArgParse.jl:1712
#parse_args#41 at /home/carlo/.julia/v0.5/ArgParse/src/ArgParse.jl:1551
ap_test5 at /home/carlo/.julia/v0.5/ArgParse/test/argparse_test5.jl:59
jl_call_method_internal at /home/carlo/Programs/julia/src/julia_internal.h:175
macro expansion; at /home/carlo/.julia/v0.5/ArgParse/test/argparse_test5.jl:112
unknown function (ip: 0x7f7490364e2f)
jl_call_method_internal at /home/carlo/Programs/julia/src/julia_internal.h:175
jl_parse_eval_all at /home/carlo/Programs/julia/src/ast.c:708
jl_load at /home/carlo/Programs/julia/src/toplevel.c:598
jl_load_ at /home/carlo/Programs/julia/src/toplevel.c:607
include_from_node1 at ./loading.jl:426
unknown function (ip: 0x7f76a85d596b)
jl_call_method_internal at /home/carlo/Programs/julia/src/julia_internal.h:175
macro expansion; at /home/carlo/.julia/v0.5/ArgParse/test/runtests.jl:8
unknown function (ip: 0x7f749029c00f)
jl_call_method_internal at /home/carlo/Programs/julia/src/julia_internal.h:175
jl_eval_module_expr at /home/carlo/Programs/julia/src/toplevel.c:196
jl_toplevel_eval_flex at /home/carlo/Programs/julia/src/toplevel.c:467
jl_parse_eval_all at /home/carlo/Programs/julia/src/ast.c:708
jl_load at /home/carlo/Programs/julia/src/toplevel.c:598
jl_load_ at /home/carlo/Programs/julia/src/toplevel.c:607
include_from_node1 at ./loading.jl:426
unknown function (ip: 0x7f76a85d596b)
jl_call_method_internal at /home/carlo/Programs/julia/src/julia_internal.h:175
process_options at ./client.jl:266
_start at ./client.jl:322
unknown function (ip: 0x7f76a85fcc08)
jl_call_method_internal at /home/carlo/Programs/julia/src/julia_internal.h:175
jl_apply at /home/carlo/Programs/julia/ui/../src/julia.h:1394
main at /home/carlo/Programs/julia/ui/repl.c:232
unknown function (ip: 0x7f76ad0dba3f)
unknown function (ip: 0x401368)
Allocations: 6179336 (Pool: 6177696; Big: 1640); GC: 9
my versioninfo:
Julia Version 0.5.0-dev+5260
Commit f8d67f7* (2016-07-10 01:41 UTC)
Platform Info:
System: Linux (x86_64-linux-gnu)
CPU: Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.7.1 (ORCJIT, haswell)
I'm sorry but at this moment I'm not able to produce a reduced test case.
The text was updated successfully, but these errors were encountered:
I have encountered a segfault while running the tests for the ArgParse package on latest julia master (it works fine on 0.4).
To reproduce, just install ArgParse version 0.3.0 (the latest at the time of writing) and run the tests with
Pkg.test("ArgParse")
. Ignore the deprecation warnings. At test number 5, it segfaults. The culprit is this line whererethrow()
is invoked.I can fix the segfault by adding the argument to
rethrow()
, from this:to this:
The segfault message is:
my versioninfo:
I'm sorry but at this moment I'm not able to produce a reduced test case.
The text was updated successfully, but these errors were encountered: