I am running Julia 0.6.0 as installed from apt on a Raspberry Pi 3 Model B using Raspbian. Whenever I run a multi-line expression passed to a macro e.g.
@p begin
2 + 2 - 3
end
I get a segmentation fault
signal (11): Segmentation fault
while loading no file, in expression starting on line 0
Segmentation fault
This happens whether I am running “interactively” within the REPL, or I run julia macro.jl from the shell. This does not occur in other beginend blocks, such as
pi@toybox:~ $ julia6
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: https://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _' | |
| | |_| | | | (_| | | Version 0.6.2 (2017-12-13 18:08 UTC)
_/ |\__'_|_|_|\__'_| | Official http://julialang.org/ release
|__/ | arm-linux-gnueabihf
shell> uname -a
Linux toybox 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux
shell> cat /etc/issue
Raspbian GNU/Linux 8 \n \l
I am also on Raspbian, Raspberry Pi 3 Model B. but my default Julia is 0.5.1. I had to install 0.6.2 from the generic binaries.
Whith this setup I am unable to reproduce:
julia> macro comment(block) end
@comment (macro with 1 method)
julia> @comment begin
1 + 1
end
julia> macro pass(block) block end
@pass (macro with 1 method)
julia> @pass begin
1 + 1
end
2
Could you please share the deffinition of your @b macro? You could check out with 0.6.2 and see if you have the same issue over there.
I don’t get segfaults on my Pi for uncaught exceptions, they just bubble up as expected, do you know if there is an issue tracking this in the Julia repo?