Iblis Lin <ib...@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.

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

> └─[iblis@abeing ]% cat test.jl
> makefile="""
> CATEGORIES= devel
> 
> USES=
> .include <bsd.port.mk>"""
> 
> cmd = `/usr/bin/make -f - -V MAKE_ENV`
> in_ = Pipe()
> out, proc = open(cmd, "r", in_)
> 
> print(in_, makefile)
> close(in_)
> 
> @assert success(proc)
> close(out)
_______________________________________________
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to