<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go/src/runtime/debug/stack.go, branch main</title>
<subtitle>Fork of Go programming language with my patches.</subtitle>
<id>http://git.kilabit.info/go/atom?h=main</id>
<link rel='self' href='http://git.kilabit.info/go/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/'/>
<updated>2024-11-21T22:16:20Z</updated>
<entry>
<title>all: fix some function names and typos in comment</title>
<updated>2024-11-21T22:16:20Z</updated>
<author>
<name>cuishuang</name>
<email>imcusg@gmail.com</email>
</author>
<published>2024-11-20T13:56:27Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=a925402b62c06d1cfe2b345cba0b11fa06b8401d'/>
<id>urn:sha1:a925402b62c06d1cfe2b345cba0b11fa06b8401d</id>
<content type='text'>
Change-Id: I07e7c8eaa5bd4bac0d576b2f2f4cd3f81b0b77a4
Reviewed-on: https://go-review.googlesource.com/c/go/+/630055
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Commit-Queue: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Russ Cox &lt;rsc@golang.org&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
</content>
</entry>
<entry>
<title>runtime/debug: eliminate temporary variadicity from SetCrashOutput</title>
<updated>2024-05-16T15:19:04Z</updated>
<author>
<name>Alan Donovan</name>
<email>adonovan@google.com</email>
</author>
<published>2024-05-15T21:41:56Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=a22cb5cabe2bcc8ed02c43a66a1bd319cb28e89c'/>
<id>urn:sha1:a22cb5cabe2bcc8ed02c43a66a1bd319cb28e89c</id>
<content type='text'>
Updates #67182

Change-Id: I33fc8c515f4a9d120262ba30f61aea80ede5e9f8
Reviewed-on: https://go-review.googlesource.com/c/go/+/585420
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Austin Clements &lt;austin@google.com&gt;
</content>
</entry>
<entry>
<title>runtime/debug: add SetCrashOutput(...CrashOptions) parameter</title>
<updated>2024-05-15T21:04:14Z</updated>
<author>
<name>Alan Donovan</name>
<email>adonovan@google.com</email>
</author>
<published>2024-05-15T18:55:19Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=3f7a030e02c31aaf28e8e107270d6b33920c1cae'/>
<id>urn:sha1:3f7a030e02c31aaf28e8e107270d6b33920c1cae</id>
<content type='text'>
This is a placeholder for future options (e.g. JSON).

The parameter is temporarily variadic to avoid breaking
x/telemetry (see CL 585378), but I plan to remove
the "..." later this week.

Updates #67182

Change-Id: I3f6f39455d852f92902f8e3f007d3093cbe555db
Reviewed-on: https://go-review.googlesource.com/c/go/+/585557
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Austin Clements &lt;austin@google.com&gt;
</content>
</entry>
<entry>
<title>runtime: be careful about crash FD changes during panic</title>
<updated>2024-02-22T15:37:30Z</updated>
<author>
<name>Michael Pratt</name>
<email>mpratt@google.com</email>
</author>
<published>2024-01-31T19:10:56Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=638b9023e31b2e1d0d8ef24086722388afd76e41'/>
<id>urn:sha1:638b9023e31b2e1d0d8ef24086722388afd76e41</id>
<content type='text'>
There are two separate cases here:

The base case is simple: a concurrent call to SetCrashOutput while
panicking will switch the crash FD, which could cause the first half of
writes to go to the old FD, and the second half to the new FD. This
isn't a correctness problem, but would be annoying to see in practice.
Since it is easy to check for, I simply drop any changes if panicking is
already in progress.

The second case is more important: SetCrashOutput will close the old FD
after the new FD is swapped, but writeErrData has no locking around use
of the fd, so SetCrashOutput could close the FD out from under
writeErrData, causing lost writes. We handle this similarly, by not
allowing SetCrashOutput to close the old FD if a panic is in progress,
but we have to be more careful about synchronization between
writeErrData and setCrashFD to ensure that writeErrData can't observe
the old FD while setCrashFD allows close.

For #42888.

Change-Id: I7270b2cc5ea58a15ba40145b7a96d557acdfe842
Reviewed-on: https://go-review.googlesource.com/c/go/+/559801
Reviewed-by: Alan Donovan &lt;adonovan@google.com&gt;
Auto-Submit: Michael Pratt &lt;mpratt@google.com&gt;
Reviewed-by: Michael Knyszek &lt;mknyszek@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
</content>
</entry>
<entry>
<title>runtime/debug: clarify SetCrashOutput dup behavior</title>
<updated>2024-02-21T20:35:26Z</updated>
<author>
<name>Michael Pratt</name>
<email>mpratt@google.com</email>
</author>
<published>2024-01-31T19:01:12Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=b27d02c07b7bdb896f279a386fde8cb5ce284ec9'/>
<id>urn:sha1:b27d02c07b7bdb896f279a386fde8cb5ce284ec9</id>
<content type='text'>
SetCrashOutput dup's the input file for safety, but I don't think that
the docs are very clear about what the caller can/should do with f. "it
does not close the previous file" is particularly confusing, as it does
close the previous FD (but not the previous passed os.File).

Expand and attempt to clarify the explanation, borrowing wording from
net.FileConn, which also dup's the input os.File.

For #42888.

Change-Id: I1c96d2dce7899e335d8f1cd464d2d9b31aeb4e5e
Reviewed-on: https://go-review.googlesource.com/c/go/+/559800
Reviewed-by: Alan Donovan &lt;adonovan@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
</content>
</entry>
<entry>
<title>runtime/debug: SetCrashOutput sets the FD for fatal panics</title>
<updated>2024-01-31T16:50:42Z</updated>
<author>
<name>Alan Donovan</name>
<email>adonovan@google.com</email>
</author>
<published>2023-12-07T23:02:40Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=1bb947b2eb62f54dd7ff621f7e1c768c00edd1a7'/>
<id>urn:sha1:1bb947b2eb62f54dd7ff621f7e1c768c00edd1a7</id>
<content type='text'>
This feature makes it possible to record unhandled panics
in any goroutine through a watchdog process (e.g. the same
application forked+exec'd as a child in a special mode)
that can process the panic report, for example by sending
it to a crash-reporting system such as Go telemetry
or Sentry.

Fixes #42888

Change-Id: I5aa7be8f726bbc70fc650540bd1a14ab60c62ecb
Reviewed-on: https://go-review.googlesource.com/c/go/+/547978
Reviewed-by: Michael Pratt &lt;mpratt@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Auto-Submit: Alan Donovan &lt;adonovan@google.com&gt;
Reviewed-by: Russ Cox &lt;rsc@golang.org&gt;
</content>
</entry>
<entry>
<title>runtime: add available godoc link</title>
<updated>2023-11-08T16:59:11Z</updated>
<author>
<name>cui fliter</name>
<email>imcusg@gmail.com</email>
</author>
<published>2023-11-07T09:35:46Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=6a1bbca2b3129b18f7d7e63b51536da2e9afe9e2'/>
<id>urn:sha1:6a1bbca2b3129b18f7d7e63b51536da2e9afe9e2</id>
<content type='text'>
Change-Id: Ifb4844efddcb0369b0302eeab72394eeaf5c8072
Reviewed-on: https://go-review.googlesource.com/c/go/+/540022
Reviewed-by: Michael Knyszek &lt;mknyszek@google.com&gt;
Auto-Submit: Michael Knyszek &lt;mknyszek@google.com&gt;
Reviewed-by: Heschi Kreinick &lt;heschi@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Run-TryBot: shuang cui &lt;imcusg@gmail.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
</content>
</entry>
<entry>
<title>runtime/debug: more explicit Stack docs</title>
<updated>2015-09-16T22:25:11Z</updated>
<author>
<name>David Crawshaw</name>
<email>crawshaw@golang.org</email>
</author>
<published>2015-09-16T14:29:53Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=9337dc9b5e4a79a071c8eb4879974955b19e3862'/>
<id>urn:sha1:9337dc9b5e4a79a071c8eb4879974955b19e3862</id>
<content type='text'>
Change-Id: I81a7f22be827519b5290b4acbcba357680cad3c4
Reviewed-on: https://go-review.googlesource.com/14605
Reviewed-by: Rob Pike &lt;r@golang.org&gt;
</content>
</entry>
<entry>
<title>runtime/debug: implement Stack using runtime.Stack</title>
<updated>2015-09-16T11:36:21Z</updated>
<author>
<name>David Crawshaw</name>
<email>crawshaw@golang.org</email>
</author>
<published>2015-09-15T21:16:38Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=2d697b2401f5a840cdf4a58b414395fc729a348c'/>
<id>urn:sha1:2d697b2401f5a840cdf4a58b414395fc729a348c</id>
<content type='text'>
Fixes #12363

Change-Id: I1a025ab6a1cbd5a58f5c2bce5416788387495428
Reviewed-on: https://go-review.googlesource.com/14604
Reviewed-by: Ian Lance Taylor &lt;iant@golang.org&gt;
Run-TryBot: David Crawshaw &lt;crawshaw@golang.org&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
</content>
</entry>
<entry>
<title>all: switch to the new deprecation convention</title>
<updated>2015-06-18T19:16:23Z</updated>
<author>
<name>Shenghou Ma</name>
<email>minux@golang.org</email>
</author>
<published>2015-05-18T19:50:00Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=3925a7c5dbde952a94fc4c46686d78bb1ff71ed8'/>
<id>urn:sha1:3925a7c5dbde952a94fc4c46686d78bb1ff71ed8</id>
<content type='text'>
While we're at it, move some misplaced comment blocks around.

Change-Id: I1847d7f1ca1dbb8e5de737203c4ed6c66e112508
Reviewed-on: https://go-review.googlesource.com/10188
Reviewed-by: Rob Pike &lt;r@golang.org&gt;
Reviewed-by: Russ Cox &lt;rsc@golang.org&gt;
</content>
</entry>
</feed>
