Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Feb 2017 11:41:54 +0800
From:      Iblis Lin <iblis@hs.ntnu.edu.tw>
To:        "Simon J. Gerraty" <sjg@juniper.net>
Cc:        freebsd-current@freebsd.org
Subject:   Re: bmake core dump
Message-ID:  <20170228034153.GC31394@abeing>
In-Reply-To: <65586.1488222403@kaos.jnpr.net>
References:  <20170227101044.GB31394@abeing> <65586.1488222403@kaos.jnpr.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"


bmake version:
└─[iblis@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@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@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@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
林峻頤



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170228034153.GC31394>