bmake core dump
Iblis Lin
iblis at hs.ntnu.edu.tw
Tue Feb 28 03:42:16 UTC 2017
On Mon, Feb 27, 2017 at 11:06:43AM -0800, Simon J. Gerraty wrote:
> Hi Iblis
>
> > I encounted core dump with `make -f - ...`
>
> can you share the content of stdin? or a relevant snippet?
>
> Also what version of bmake? (make -r -f /dev/null -V MAKE_VERSION)
>
> Your patch risks overflow, so would like to reproduce first...
>
> _______________________________________________
> freebsd-current at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"
bmake version:
└─[iblis at abeing]% make -r -f /dev/null -V MAKE_VERSION
20160818
Accutally, I made it core dump via a julia script.
Please checkout this code
└─[iblis at 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)
└─[iblis at abeing]% MALLOC_CONF="junk:true" /usr/local/bin/julia test.jl
ERROR: LoadError: AssertionError: success(proc)
in _init at /usr/local/lib/julia/sys.so:? (repeats 5 times)
while loading /usr/home/iblis/git/BinDeps_jl/test.jl, in expression
starting on line 14
└─[iblis at abeing ]% dmesg| tail
pid 27928 (make), uid 1001: exited on signal 10 (core dumped)
pid 27956 (make), uid 1001: exited on signal 10 (core dumped)
pid 28232 (make), uid 1001: exited on signal 10 (core dumped)
pid 28447 (make), uid 1001: exited on signal 10 (core dumped)
pid 28998 (make), uid 1001: exited on signal 10 (core dumped)
pid 29155 (make), uid 1001: exited on signal 10 (core dumped)
pid 29264 (make), uid 1001: exited on signal 10 (core dumped)
pid 29506 (make), uid 1001: exited on signal 10 (core dumped)
pid 29642 (make), uid 1001: exited on signal 10 (core dumped)
--
Iblis Lin
林峻頤
More information about the freebsd-current
mailing list