bmake core dump

Iblis Lin iblis at
Tue Feb 28 07:02:24 UTC 2017

On Mon, Feb 27, 2017 at 10:27:17PM -0800, Simon J. Gerraty wrote:
> Iblis Lin <iblis at> wrote:
> > Accutally, I made it core dump via a julia script.
> > Please checkout this code
> I'm not familiar with juila, in most scripting languages
> cmd = `/usr/bin/make -f - -V MAKE_ENV`
> would run that command and assign the output to cmd.
> The make instance would be reading from stdin which is rather unknown at
> that point.

Accutally, the backtick is a syntax sugar in julia to construct a
Cmd object. it's not being executed at that point.


julia> cmd = `ls /nonexists`
`ls /nonexists`

julia> run(cmd)
ls: /nonexists: No such file or directory
ERROR: failed process: Process(`ls /nonexists`, ProcessExited(1)) [1]
 [1] eval_user_input(::Any, ::Base.REPL.REPLBackend) at ./REPL.jl:66
 [2] macro expansion at ./REPL.jl:97 [inlined]
 [3] (::Base.REPL.##1#2{Base.REPL.REPLBackend})() at ./event.jl:73

julia> typeof(cmd)

> Could you perhaps run that with ktrace?
> Eg.
> ktrace -i -t cnis -f /var/tmp/make.kt whatever command you ran
> kdump -m 128 -f /var/tmp/make.kt > /var/tmp/make.kd
> that would show what make is actually reading

I uploaded the ktrace to the gist:

Iblis Lin

More information about the freebsd-current mailing list