1
0
mirror of https://github.com/golang/go synced 2024-10-04 10:21:21 -06:00
go/src/pkg
Rob Pike d6653fed98 http: use runtime/debug.Stack() to dump stack trace on panic.
Test output now looks like this:

2011/06/15 21:10:41 http: panic serving 127.0.0.1:59729: intentional death for testing
$GOROOT/src/pkg/http/server.go:495 (0x3f9f8)
        _func_004: buf.Write(debug.Stack())
$GOROOT/src/pkg/runtime/proc.c:1041 (0x12367)
        panic: reflect·call(d->fn, d->args, d->siz);
$GOROOT/src/pkg/http/serve_test.go:775 (0x5831b)
        _func_029: panic("intentional death for testing")
$GOROOT/src/pkg/http/server.go:575 (0x26366)
        HandlerFunc.ServeHTTP: f(w, r)
$GOROOT/src/pkg/http/server.go:541 (0x261a9)
        *conn.serve: c.handler.ServeHTTP(w, w.req)
$GOROOT/src/pkg/runtime/proc.c:178 (0x10a83)
        goexit: runtime·goexit(void)

with $GOROOT expanded, of course.

R=bradfitz, rsc
CC=golang-dev
https://golang.org/cl/4607051
2011-06-16 00:12:50 +10:00
..
archive tar: use ioutil.Discard 2011-04-27 15:57:22 -07:00
asn1 asn1: fix marshalling of empty optional RawValues 2011-06-01 12:54:16 -04:00
big big: removed some gratuitous +/-1's 2011-06-08 11:24:24 -07:00
bike/shed bike/shed: new package. 2011-06-10 22:32:45 +10:00
bufio src/pkg: make package doc comments consistently start with "Package foo". 2011-04-20 09:57:05 +10:00
bytes src/pkg: make package doc comments consistently start with "Package foo". 2011-04-20 09:57:05 +10:00
cmath src/pkg: make package doc comments consistently start with "Package foo". 2011-04-20 09:57:05 +10:00
compress compress/lzw: reduce decoder buffer size from 3*4096 to 2*4096. 2011-06-09 09:50:38 +10:00
container pkg: spelling tweaks, A-H 2011-05-18 13:14:56 -04:00
crypto crypto/openpgp: flesh out Encrypt by adding support for signing. 2011-06-13 13:04:59 -04:00
debug debug/elf: rename test .o files to .obj 2011-06-14 15:06:39 -03:00
ebnf ebnf: follow EBNF for EBNF faithfully 2011-06-08 09:10:30 -07:00
encoding encoding/hex: don't try to print DEL. 2011-05-31 15:40:33 -04:00
exec exec: make LookPath work even when PATHEXT env variable is not set on Windows 2011-06-14 11:46:05 -04:00
exp exp/regexp/syntax: more escapes, character classes 2011-06-14 14:30:10 -04:00
expvar pkg: spelling tweaks, A-H 2011-05-18 13:14:56 -04:00
flag sort: change IntArray etc. to IntSlice for better name hygiene. 2011-06-11 09:25:18 +10:00
fmt fmt: debugging formats for characters: %+q %#U 2011-06-11 00:03:02 +00:00
go go/build: better, self-contained tests 2011-06-15 21:35:34 +10:00
gob gob: fix documentation on Decoder.Decode. 2011-05-30 10:48:08 +10:00
hash adler32: speed up ~40% by avoiding bounds checks 2011-04-27 21:36:11 -07:00
html html: improve attribute parsing, note package status 2011-06-06 15:56:15 -07:00
http http: use runtime/debug.Stack() to dump stack trace on panic. 2011-06-16 00:12:50 +10:00
image image: add Paletted.Set, and a basic test of the concrete image types. 2011-06-10 14:07:29 +10:00
index/suffixarray pkg: spelling tweaks, I-Z 2011-05-30 18:02:59 +10:00
io io/ioutil: fix typo in comment 2011-06-10 17:07:22 -07:00
json fix tree for reflect rename 2011-04-25 13:39:36 -04:00
log src/pkg: make package doc comments consistently start with "Package foo". 2011-04-20 09:57:05 +10:00
mail mail: cosmetic fixes. 2011-06-15 09:10:59 +10:00
math math: add sqrt_arm.s and sqrtGoC.go as fallback to soft fp emulation 2011-06-09 17:19:08 -04:00
mime mime/multipart: allow for temp files to be removed after tests are finished on Windows 2011-06-11 16:23:44 +10:00
net net: export all fields in Interface 2011-06-14 13:32:52 -04:00
netchan netchan: added drain method to importer. 2011-06-06 06:55:32 +00:00
os os: Plan 9, fix OpenFile & Chmod. Update tests. 2011-06-14 11:20:34 -04:00
patch gofmt -s -w src misc 2010-10-22 10:06:33 -07:00
path path/filepath: skip permission test in all.bash 2011-06-02 12:26:43 -04:00
rand go/printer, gofmt: fix alignment of "=" in const/var declarations 2011-05-09 15:16:34 -07:00
reflect pkg: spelling tweaks, I-Z 2011-05-30 18:02:59 +10:00
regexp pkg: spelling tweaks, I-Z 2011-05-30 18:02:59 +10:00
rpc http: remove finalURL from Client.Get; move to Response 2011-05-13 07:31:24 -07:00
runtime runtime: fix Plan 9 "lingering goroutines bug". 2011-06-10 17:23:54 +10:00
scanner src/pkg: make package doc comments consistently start with "Package foo". 2011-04-20 09:57:05 +10:00
smtp encoding/base64: add DecodeString and EncodeToString 2011-05-25 12:24:36 -07:00
sort sort: change IntArray etc. to IntSlice for better name hygiene. 2011-06-11 09:25:18 +10:00
strconv strconv: change Quote to be Unicode-friendly, 2011-06-07 12:23:08 +00:00
strings http: have client set Content-Length when possible 2011-05-31 08:47:03 -07:00
sync sync/atomic: fix arm check64 bug 2011-06-10 13:50:19 +10:00
syscall syscall: mksyscall_windows.pl should output unix newline. 2011-06-15 11:50:21 +10:00
syslog syslog: fix skipping of net tests 2011-04-28 14:16:41 -03:00
tabwriter pkg: spelling tweaks, I-Z 2011-05-30 18:02:59 +10:00
template template: rearrange the code into separate files. 2011-06-06 21:33:02 +00:00
testing testing: check that tests and benchmarks do not affect GOMAXPROCS 2011-06-03 13:50:44 -04:00
time pkg: spelling tweaks, I-Z 2011-05-30 18:02:59 +10:00
try fix tree for reflect rename 2011-04-25 13:39:36 -04:00
unicode sort: change IntArray etc. to IntSlice for better name hygiene. 2011-06-11 09:25:18 +10:00
unsafe src/pkg: make package doc comments consistently start with "Package foo". 2011-04-20 09:57:05 +10:00
utf8 src/pkg: make package doc comments consistently start with "Package foo". 2011-04-20 09:57:05 +10:00
utf16 gofmt -s -w src misc 2010-10-22 10:06:33 -07:00
websocket pkg: spelling tweaks, I-Z 2011-05-30 18:02:59 +10:00
xml xml: handle non-string attribute fields 2011-06-14 11:51:03 -04:00
deps.bash build: add another --no-print-directory 2010-12-16 10:46:25 +11:00
Makefile goinstall: use go/make package to scan and build packages 2011-06-15 13:28:35 +10:00