bmake core dump
Iblis Lin
iblis at hs.ntnu.edu.tw
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 hs.ntnu.edu.tw> 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.
FYI:
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]
Stacktrace:
[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)
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:
https://gist.github.com/iblis17/0beff3e1b4fcb7eac9df5889cd3ddde7#file-make-kd-L2733-L2853
--
Iblis Lin
林峻頤
More information about the freebsd-current
mailing list