----- Original Message ----- > From: jfilak@xxxxxxxxxxxxxxxxx > To: "Development discussions related to Fedora" <devel@xxxxxxxxxxxxxxxxxxxxxxx> > Sent: Wednesday, December 14, 2016 7:18:32 AM > Subject: Re: F26 System Wide Change: Golang 1.8 > > I agree with Zbyzsek on this. > > What about to carry a tiny down-stream patch until this issue is fixed: > https://github.com/golang/go/issues/18304 > > > Jakub > > Suggestion by Brad Fitzpatrick in the upstream issue seems as reasonable implementation to me. Also it make possible opt-out/opt-in, if there will be need for it. I will work on implementing/testing it along with the re-base(including update to packaging macros and Go guidelines draft) and I will update the change proposal to reflect it ASAP. Sorry for longer notice I have been offline though the end of the year, JC > > > ---------- Původní zpráva ---------- > Od: Zbigniew Jędrzejewski-Szmek <zbyszek@xxxxxxxxx> > Komu: Development discussions related to Fedora > <devel@xxxxxxxxxxxxxxxxxxxxxxx> > Datum: 13. 12. 2016 19:35:01 > Předmět: Re: F26 System Wide Change: Golang 1.8 > > > On Tue, Dec 13, 2016 at 01:06:29PM -0500, Jakub Cajka wrote: > > > can we enable coredumping for Go programs by default - i.e. set > > > GOTRACEBACK= > > > crash? > > > > > > Currently, Go terminate a process that panic and prints out an error > > > message on stderr. > > > > > > This approach does not provide much room for automatic Go panic > > > detection. > > > > It should be possible without any significant side effects apart from > > generating cores and traces. But to enable this, I believe, it would need > > alteration to the default system env. > > Would it be possible? What is the package providing the default env vars? > > systemd has DefaultEnvironment= in /etc/systemd/system.conf, but it is > supposed to be used to create local overrides, and doesn't work well > for this case (it's %config(noreplace) among other problems). In general > setting global env vars does not work. > > Instead, it would be nicer to modify the go runtime to default to a coredump > if GOTRACEBACK= is not set. This would cover more cases and would not pollute > the environment for users who are not using go. > > Zbyszek > _______________________________________________ > devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx > To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx > > _______________________________________________ > devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx > To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx > _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx