Re: bmake core dump

From: Iblis Lin <iblis_at_hs.ntnu.edu.tw>
Date: Tue, 28 Feb 2017 11:41:54 +0800
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_)

_at_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
林峻頤
Received on Tue Feb 28 2017 - 02:42:16 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:10 UTC