bmake core dump
Simon J. Gerraty
sjg at juniper.net
Tue Feb 28 06:27:23 UTC 2017
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
Could you perhaps run that with ktrace?
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
> └─[iblis at abeing ]% cat test.jl
> CATEGORIES= devel
> .include <bsd.port.mk>"""
> cmd = `/usr/bin/make -f - -V MAKE_ENV`
> in_ = Pipe()
> out, proc = open(cmd, "r", in_)
> print(in_, makefile)
> @assert success(proc)
More information about the freebsd-current