diff -r 231c6b6747d6 src/pkg/Makefile --- a/src/pkg/Makefile Wed Feb 16 22:01:57 2011 -0800 +++ b/src/pkg/Makefile Thu Feb 17 11:14:01 2011 +0100 @@ -185,6 +185,13 @@ NOBENCH=\ container/vector\ + +ifeq ($(QEMU_UM),1) +NOTEST+=net netchan rpc websocket http syslog os +endif + +NOTEST+=$(NOTEST_BROKEN) + # Disable tests that depend on an external network. ifeq ($(DISABLE_NET_TESTS),1) NOTEST+=http net syslog diff -r 231c6b6747d6 src/run.bash --- a/src/run.bash Wed Feb 16 22:01:57 2011 -0800 +++ b/src/run.bash Thu Feb 17 11:14:01 2011 +0100 @@ -91,6 +91,7 @@ time ./run ) || exit $? +[ "$QEMU_UM" == 1 ] || [ "$GOHOSTOS" == windows ] || (xcd ../doc/codelab/wiki gomake clean @@ -112,6 +113,7 @@ ./timing.sh -test ) || exit $? +[ "$QEMU_UM" == 1 ] || [ "$GOHOSTOS" == windows ] || (xcd ../test ./run ---- cd pkg/go/printer && gotest rm -f _test/go/printer.a _gotest_.5 5g -o _gotest_.5 printer.go nodes.go printer_test.go rm -f _test/go/printer.a gopack grc _test/go/printer.a _gotest_.5 throw: malloc/free - deadlock [signal 0xb code=0x1 addr=0x0 pc=0x137f4] runtime.throw+0x40 /data4/soft/go/go/src/pkg/runtime/runtime.c:103 runtime.throw(0x16dc30, 0x10656b74) runtime.mallocgc+0x58 /data4/soft/go/go/src/pkg/runtime/malloc.c:35 runtime.mallocgc(0x8, 0x0, 0x1, 0x1, 0x114d4, ...) runtime.mal+0x40 /data4/soft/go/go/src/pkg/runtime/malloc.c:288 runtime.mal(0x8, 0x16a9d7) copyin+0x88 /data4/soft/go/go/src/pkg/runtime/iface.c:160 copyin(0x1490c0, 0x10656be8, 0x10656bf4, 0x8) runtime.convT2E+0x68 /data4/soft/go/go/src/pkg/runtime/iface.c:209 runtime.convT2E(0x1490c0, 0x16a9d7) runtime.newErrorString+0x40 /data4/soft/go/go/src/pkg/runtime/error.go:107 runtime.newErrorString(0x16a9d7, 0x31, 0x10656c10, 0x16a9d7) runtime.panicstring+0x80 /data4/soft/go/go/src/pkg/runtime/runtime.c:116 runtime.panicstring(0x16a9d7, 0x40) runtime.sigpanic+0x120 /data4/soft/go/go/src/pkg/runtime/linux/thread.c:291 runtime.sigpanic() runtime.MCache_Alloc+0x1b0 /data4/soft/go/go/src/pkg/runtime/mcache.c:38 runtime.MCache_Alloc(0x40081000, 0x5, 0x40, 0x1, 0x451, ...) runtime.mallocgc+0xf4 /data4/soft/go/go/src/pkg/runtime/malloc.c:46 runtime.mallocgc(0x40, 0x0, 0x1, 0x1, 0x632e4, ...) runtime.mal+0x40 /data4/soft/go/go/src/pkg/runtime/malloc.c:288 runtime.mal(0x3c, 0x1313c) runtime.closure+0x88 /data4/soft/go/go/src/pkg/runtime/arm/closure.c:76 runtime.closure(0x8, 0x64ddc, 0x10641220, 0x10682568) go/token.searchFiles+0x88 /data4/soft/go/go/src/pkg/go/token/position.go:92 go/token.searchFiles(0x10626cc0, 0x4, 0x4, 0x4138, 0x1059b518, ...) go/token.*FileSet·file+0x50 /data4/soft/go/go/src/pkg/go/token/position.go:97 go/token.*FileSet·file(0x1059b510, 0x4138, 0x148f38, 0x10656d4c) go/token.*FileSet·Position+0x60 /data4/soft/go/go/src/pkg/go/token/position.go:138 go/token.*FileSet·Position(0x1059b510, 0x4138, 0x0, 0x0) go/printer.*printer·print+0xc1c /data4/soft/go/go/src/pkg/go/printer/printer.go:805 go/printer.*printer·print(0x1060f980, 0x10682560, 0x1) go/printer.*printer·expr1+0x128 /data4/soft/go/go/src/pkg/go/printer/nodes.go:746 go/printer.*printer·expr1(0x1060f980, 0x1063b760, 0x1067ac60, 0x0, 0x1, ...) go/printer.*printer·expr+0x60 /data4/soft/go/go/src/pkg/go/printer/nodes.go:939 go/printer.*printer·expr(0x1060f980, 0x1063b760, 0x1067ac60, 0x105862a0, 0x1067ac60, ...) go/printer._func_001+0x104 /data4/soft/go/go/src/pkg/go/printer/printer.go:1038 go/printer._func_001(0x10682460, 0x1060f980, 0x0) runtime.goexit /data4/soft/go/go/src/pkg/runtime/proc.c:149 runtime.goexit() goroutine 2022 [4]: runtime.gosched+0x64 /data4/soft/go/go/src/pkg/runtime/proc.c:558 runtime.gosched() runtime.chanrecv+0x4e4 /data4/soft/go/go/src/pkg/runtime/chan.c:324 runtime.chanrecv(0x1060ab80, 0x40273034, 0x0, 0x0, 0x40273034, ...) runtime.chanrecv1+0x50 /data4/soft/go/go/src/pkg/runtime/chan.c:416 runtime.chanrecv1(0x1060ab80, 0x3f6e8) go/printer.*Config·Fprint+0x234 /data4/soft/go/go/src/pkg/go/printer/printer.go:1068 go/printer.*Config·Fprint(0x10682458, 0x105a7940, 0x106af150, 0x1059b510, 0x14ae30, ...) go/printer.*printer·nodeSize+0x124 /data4/soft/go/go/src/pkg/go/printer/nodes.go:1340 go/printer.*printer·nodeSize(0x1067d180, 0x106753a0, 0x1067ac60, 0xf4240, 0xf4241, ...) go/printer.*printer·exprList+0x86c /data4/soft/go/go/src/pkg/go/printer/nodes.go:210 go/printer.*printer·exprList(0x1067d180, 0x410b, 0x105c0c80, 0x9, 0x10, ...) go/printer.*printer·expr1+0x4e4 /data4/soft/go/go/src/pkg/go/printer/nodes.go:873 go/printer.*printer·expr1(0x1067d180, 0x10600ce0, 0x1067ae40, 0x6, 0x1, ...) ----- stack segment boundary ----- go/printer.*printer·expr1+0xf80 /data4/soft/go/go/src/pkg/go/printer/nodes.go:795 go/printer.*printer·expr1(0x1067d180, 0x10600fe0, 0x1063c0a0, 0x0, 0x1, ...) go/printer.*printer·expr0+0x60 /data4/soft/go/go/src/pkg/go/printer/nodes.go:932 go/printer.*printer·expr0(0x1067d180, 0x10600fe0, 0x1063c0a0, 0x1, 0x105862a0, ...) go/printer.*printer·exprList+0xe34 /data4/soft/go/go/src/pkg/go/printer/nodes.go:267 go/printer.*printer·exprList(0x1067d180, 0x40ff, 0x10641850, 0x2, 0x2, ...) go/printer.*printer·expr1+0x4e4 /data4/soft/go/go/src/pkg/go/printer/nodes.go:873 go/printer.*printer·expr1(0x1067d180, 0x10600ce0, 0x106120e0, 0x0, 0x1, ...) go/printer.*printer·expr+0x60 /data4/soft/go/go/src/pkg/go/printer/nodes.go:939 go/printer.*printer·expr(0x1067d180, 0x10600ce0, 0x106120e0, 0x105862a0, 0x0, ...) go/printer.*printer·expr1+0xabc /data4/soft/go/go/src/pkg/go/printer/nodes.go:765 go/printer.*printer·expr1(0x1067d180, 0x1063b760, 0x1067aba0, 0x0, 0x1, ...) ----- stack segment boundary ----- go/printer.*printer·expr0+0x60 /data4/soft/go/go/src/pkg/go/printer/nodes.go:932 go/printer.*printer·expr0(0x1067d180, 0x1063b760, 0x1067aba0, 0x1, 0x105862a0, ...) go/printer.*printer·exprList+0xe34 /data4/soft/go/go/src/pkg/go/printer/nodes.go:267 go/printer.*printer·exprList(0x1067d180, 0x40cd, 0x106418b0, 0x2, 0x2, ...) go/printer.*printer·expr1+0x4e4 /data4/soft/go/go/src/pkg/go/printer/nodes.go:873 go/printer.*printer·expr1(0x1067d180, 0x10600ce0, 0x10612100, 0x6, 0x1, ...) go/printer.*printer·expr1+0xf80 /data4/soft/go/go/src/pkg/go/printer/nodes.go:795 go/printer.*printer·expr1(0x1067d180, 0x10600fe0, 0x10641920, 0x0, 0x1, ...) go/printer.*printer·expr+0x60 /data4/soft/go/go/src/pkg/go/printer/nodes.go:939 go/printer.*printer·expr(0x1067d180, 0x10600fe0, 0x10641920, 0x105862a0, 0x10641920, ...) go/printer._func_001+0x104 /data4/soft/go/go/src/pkg/go/printer/printer.go:1038 go/printer._func_001(0x106c38e0, 0x1067d180, 0x0) runtime.goexit /data4/soft/go/go/src/pkg/runtime/proc.c:149 runtime.goexit() goroutine 2021 [4]: runtime.gosched+0x64 /data4/soft/go/go/src/pkg/runtime/proc.c:558 runtime.gosched() runtime.chanrecv+0x4e4 /data4/soft/go/go/src/pkg/runtime/chan.c:324 runtime.chanrecv(0x10638600, 0x1058ba80, 0x0, 0x0, 0x1058ba80, ...) runtime.chanrecv1+0x50 /data4/soft/go/go/src/pkg/runtime/chan.c:416 runtime.chanrecv1(0x10638600, 0x3f6e8) go/printer.*Config·Fprint+0x234 /data4/soft/go/go/src/pkg/go/printer/printer.go:1068 go/printer.*Config·Fprint(0x106c38d8, 0x105a7940, 0x10699ee0, 0x1059b510, 0x14b0d0, ...) go/printer.*printer·nodeSize+0x124 /data4/soft/go/go/src/pkg/go/printer/nodes.go:1340 go/printer.*printer·nodeSize(0x10627c80, 0x10644a40, 0x10641920, 0xf4240, 0xf4241, ...) go/printer.*printer·exprList+0x86c /data4/soft/go/go/src/pkg/go/printer/nodes.go:210 go/printer.*printer·exprList(0x10627c80, 0x40c0, 0x10612ca0, 0x3, 0x4, ...) go/printer.*printer·expr1+0x4e4 /data4/soft/go/go/src/pkg/go/printer/nodes.go:873 go/printer.*printer·expr1(0x10627c80, 0x10600ce0, 0x10612cc0, 0x0, 0x1, ...) go/printer.*printer·expr+0x60 /data4/soft/go/go/src/pkg/go/printer/nodes.go:939 go/printer.*printer·expr(0x10627c80, 0x10600ce0, 0x10612cc0, 0x105862a0, 0x10612cc0, ...) go/printer._func_001+0x104 /data4/soft/go/go/src/pkg/go/printer/printer.go:1038 go/printer._func_001(0x106c3948, 0x10627c80, 0x0) runtime.goexit /data4/soft/go/go/src/pkg/runtime/proc.c:149 runtime.goexit() goroutine 60 [4]: runtime.gosched+0x64 /data4/soft/go/go/src/pkg/runtime/proc.c:558 runtime.gosched() runfinq+0x5c /data4/soft/go/go/src/pkg/runtime/mgc0.c:643 runfinq() runtime.goexit /data4/soft/go/go/src/pkg/runtime/proc.c:149 runtime.goexit() goroutine 119 [4]: runtime.gosched+0x64 /data4/soft/go/go/src/pkg/runtime/proc.c:558 runtime.gosched() runtime.chanrecv+0x4e4 /data4/soft/go/go/src/pkg/runtime/chan.c:324 runtime.chanrecv(0x10638340, 0x1058ab5c, 0x0, 0x0, 0x1058ab5c, ...) runtime.chanrecv1+0x50 /data4/soft/go/go/src/pkg/runtime/chan.c:416 runtime.chanrecv1(0x10638340, 0x3f6e8) go/printer.*Config·Fprint+0x234 /data4/soft/go/go/src/pkg/go/printer/printer.go:1068 go/printer.*Config·Fprint(0x106c3940, 0x105a7940, 0x10699b60, 0x1059b510, 0x14ab90, ...) go/printer.*printer·nodeSize+0x124 /data4/soft/go/go/src/pkg/go/printer/nodes.go:1340 go/printer.*printer·nodeSize(0x105c0a00, 0x10652a40, 0x10612cc0, 0xf4240, 0xf4241, ...) go/printer.*printer·exprList+0x86c /data4/soft/go/go/src/pkg/go/printer/nodes.go:210 go/printer.*printer·exprList(0x105c0a00, 0x0, 0x10671468, 0x1, 0x1, ...) go/printer.*printer·spec+0x5d0 /data4/soft/go/go/src/pkg/go/printer/nodes.go:1257 go/printer.*printer·spec(0x105c0a00, 0x105a7fc0, 0x1061d1e0, 0x1, 0x1, ...) go/printer.*printer·genDecl+0x818 /data4/soft/go/go/src/pkg/go/printer/nodes.go:1323 go/printer.*printer·genDecl(0x105c0a00, 0x10612ce0, 0x105862a0, 0x10612ce0) go/printer.*printer·decl+0x134 /data4/soft/go/go/src/pkg/go/printer/nodes.go:1448 go/printer.*printer·decl(0x105c0a00, 0x105a7f60, 0x10612ce0, 0x105862a0, 0x600, ...) go/printer.*printer·file+0x358 /data4/soft/go/go/src/pkg/go/printer/nodes.go:1489 go/printer.*printer·file(0x105c0a00, 0x1061d2a0, 0x1061d2a0) go/printer._func_001+0x4c8 /data4/soft/go/go/src/pkg/go/printer/printer.go:1060 go/printer._func_001(0x1067f8c0, 0x105c0a00, 0x0) runtime.goexit /data4/soft/go/go/src/pkg/runtime/proc.c:149 runtime.goexit() goroutine 2 [4]: runtime.gosched+0x64 /data4/soft/go/go/src/pkg/runtime/proc.c:558 runtime.gosched() runtime.chanrecv+0x4e4 /data4/soft/go/go/src/pkg/runtime/chan.c:324 runtime.chanrecv(0x10692400, 0x1058e2ac, 0x0, 0x0, 0x1058e2ac, ...) runtime.chanrecv1+0x50 /data4/soft/go/go/src/pkg/runtime/chan.c:416 runtime.chanrecv1(0x10692400, 0x3f6e8) go/printer.*Config·Fprint+0x234 /data4/soft/go/go/src/pkg/go/printer/printer.go:1068 go/printer.*Config·Fprint(0x1067f8b8, 0x105a7920, 0x105c2160, 0x1059b510, 0x14ac90, ...) go/printer.check+0x2c0 /data4/soft/go/go/src/pkg/go/printer/printer_test.go:70 go/printer.check(0x105a0fd0, 0x1062a0c0, 0x19, 0x1062a160, 0x1a, ...) go/printer.TestFiles+0x2d8 /data4/soft/go/go/src/pkg/go/printer/printer_test.go:134 go/printer.TestFiles(0x105a0fd0, 0x0) testing.tRunner+0x34 /data4/soft/go/go/src/pkg/testing/testing.go:133 testing.tRunner(0x105a0fd0, 0x105a7700, 0x0) runtime.goexit /data4/soft/go/go/src/pkg/runtime/proc.c:149 runtime.goexit() goroutine 1 [4]: runtime.gosched+0x64 /data4/soft/go/go/src/pkg/runtime/proc.c:558 runtime.gosched() runtime.chanrecv+0x4e4 /data4/soft/go/go/src/pkg/runtime/chan.c:324 runtime.chanrecv(0x105a5740, 0x1058a020, 0x0, 0x0, 0x1058a020, ...) runtime.chanrecv1+0x50 /data4/soft/go/go/src/pkg/runtime/chan.c:416 runtime.chanrecv1(0x105a5740, 0x105a7700) testing.Main+0x2d4 /data4/soft/go/go/src/pkg/testing/testing.go:161 testing.Main(0x46560, 0x105a7700, 0x2) main.main+0x48 /data4/soft/go/go/src/pkg/go/printer/_testmain.go:15 main.main() runtime.mainstart+0x18 /data4/soft/go/go/src/pkg/runtime/arm/asm.s:69 runtime.mainstart() ---- --- cd ../doc/progs server1 failed: "throw: malloc/free - deadlock [signal 0xb code=0x1 addr=0x0 pc=0x14aec] runtime.throw+0x40 /data4/soft/go/go/src/pkg/runtime/runtime.c:103 runtime.throw(0xd4228, 0x1) runtime.mallocgc+0x58 /data4/soft/go/go/src/pkg/runtime/malloc.c:35 runtime.mallocgc(0x8, 0x0, 0x1, 0x1, 0x1283c, ...) runtime.mal+0x40 /data4/soft/go/go/src/pkg/runtime/malloc.c:288 runtime.mal(0x8, 0xd12c7) copyin+0x88 /data4/soft/go/go/src/pkg/runtime/iface.c:160 copyin(0xbcf70, 0x104f33c4, 0x104f33d0, 0x8) runtime.convT2E+0x68 /data4/soft/go/go/src/pkg/runtime/iface.c:209 runtime.convT2E(0xbcf70, 0xd12c7) runtime.newErrorString+0x40 /data4/soft/go/go/src/pkg/runtime/error.go:107 runtime.newErrorString(0xd12c7, 0x31, 0x104f33ec, 0xd12c7) runtime.panicstring+0x80 /data4/soft/go/go/src/pkg/runtime/runtime.c:116 runtime.panicstring(0xd12c7, 0x20) runtime.sigpanic+0x120 /data4/soft/go/go/src/pkg/runtime/linux/thread.c:291 runtime.sigpanic() runtime.MCache_Alloc+0x1b0 /data4/soft/go/go/src/pkg/runtime/mcache.c:38 runtime.MCache_Alloc(0x400812f8, 0x3, 0x20, 0x1, 0x85b40, ...) runtime.mallocgc+0xf4 /data4/soft/go/go/src/pkg/runtime/malloc.c:46 runtime.mallocgc(0x20, 0x0, 0x1, 0x1, 0x8cac, ...) runtime.mal+0x40 /data4/soft/go/go/src/pkg/runtime/malloc.c:288 runtime.mal(0x14, 0x8c80) runtime.selectrecv+0x6c /data4/soft/go/go/src/pkg/runtime/chan.c:575 runtime.selectrecv(0x1050c980, 0x1050a7c0, 0x104f34c0) main.server+0x54 /data4/soft/go/go/doc/progs/server1.go:28 main.server(0x1050c560, 0x1050a7c0, 0x1050a780, 0x0) runtime.goexit /data4/soft/go/go/src/pkg/runtime/proc.c:149 runtime.goexit() goroutine 8 [4]: runtime.gosched+0x64 /data4/soft/go/go/src/pkg/runtime/proc.c:558 runtime.gosched() runtime.chansend+0x44c /data4/soft/go/go/src/pkg/runtime/chan.c:220 runtime.chansend(0x1050ab40, 0x105592c4, 0x0, 0x105592c4) runtime.chansend1+0x68 /data4/soft/go/go/src/pkg/runtime/chan.c:402 runtime.chansend1(0x1050ab40, 0x6e) main.run+0x54 /data4/soft/go/go/doc/progs/server1.go:18 main.run(0x1050c560, 0x10501a3c, 0x0) runtime.goexit /data4/soft/go/go/src/pkg/runtime/proc.c:149 runtime.goexit() goroutine 7 [4]: runtime.gosched+0x64 /data4/soft/go/go/src/pkg/runtime/proc.c:558 runtime.gosched() runtime.chansend+0x44c /data4/soft/go/go/src/pkg/runtime/chan.c:220 runtime.chansend(0x1050ab80, 0x105581c4, 0x0, 0x105581c4) runtime.chansend1+0x68 /data4/soft/go/go/src/pkg/runtime/chan.c:402 runtime.chansend1(0x1050ab80, 0x6c) main.run+0x54 /data4/soft/go/go/doc/progs/server1.go:18 main.run(0x1050c560, 0x10501a30, 0x0) runtime.goexit /data4/soft/go/go/src/pkg/runtime/proc.c:149 runtime.goexit() goroutine 6 [4]: runtime.gosched+0x64 /data4/soft/go/go/src/pkg/runtime/proc.c:558 runtime.gosched() runtime.chansend+0x44c /data4/soft/go/go/src/pkg/runtime/chan.c:220 runtime.chansend(0x1050abc0, 0x105570c4, 0x0, 0x105570c4) runtime.chansend1+0x68 /data4/soft/go/go/src/pkg/runtime/chan.c:402 runtime.chansend1(0x1050abc0, 0x6a) main.run+0x54 /data4/soft/go/go/doc/progs/server1.go:18 main.run(0x1050c560, 0x10501a24, 0x0) runtime.goexit /data4/soft/go/go/src/pkg/runtime/proc.c:149 runtime.goexit() goroutine 5 [4]: runtime.gosched+0x64 /data4/soft/go/go/src/pkg/runtime/proc.c:558 runtime.gosched() runtime.chansend+0x44c /data4/soft/go/go/src/pkg/runtime/chan.c:220 runtime.chansend(0x1050ac00, 0x104f23c4, 0x0, 0x104f23c4) runtime.chansend1+0x68 /data4/soft/go/go/src/pkg/runtime/chan.c:402 runtime.chansend1(0x1050ac00, 0x68) main.run+0x54 /data4/soft/go/go/doc/progs/server1.go:18 main.run(0x1050c560, 0x10501a18, 0x0) runtime.goexit /data4/soft/go/go/src/pkg/runtime/proc.c:149 runtime.goexit() goroutine 4 [4]: runtime.gosched+0x64 /data4/soft/go/go/src/pkg/runtime/proc.c:558 runtime.gosched() runtime.chansend+0x44c /data4/soft/go/go/src/pkg/runtime/chan.c:220 runtime.chansend(0x1050ac40, 0x104f12c4, 0x0, 0x104f12c4) runtime.chansend1+0x68 /data4/soft/go/go/src/pkg/runtime/chan.c:402 runtime.chansend1(0x1050ac40, 0x66) main.run+0x54 /data4/soft/go/go/doc/progs/server1.go:18 main.run(0x1050c560, 0x10501a0c, 0x0) runtime.goexit /data4/soft/go/go/src/pkg/runtime/proc.c:149 runtime.goexit() goroutine 3 [4]: runtime.gosched+0x64 /data4/soft/go/go/src/pkg/runtime/proc.c:558 runtime.gosched() runtime.chansend+0x44c /data4/soft/go/go/src/pkg/runtime/chan.c:220 runtime.chansend(0x1050a740, 0x104f01c4, 0x0, 0x104f01c4) runtime.chansend1+0x68 /data4/soft/go/go/src/pkg/runtime/chan.c:402 runtime.chansend1(0x1050a740, 0x64) main.run+0x54 /data4/soft/go/go/doc/progs/server1.go:18 main.run(0x1050c560, 0x10501a00, 0x0) runtime.goexit /data4/soft/go/go/src/pkg/runtime/proc.c:149 runtime.goexit() goroutine 1 [4]: runtime.gosched+0x64 /data4/soft/go/go/src/pkg/runtime/proc.c:558 runtime.gosched() runtime.chansend+0x44c /data4/soft/go/go/src/pkg/runtime/chan.c:220 runtime.chansend(0x1050a7c0, 0x104ef050, 0x0, 0x104ef050) runtime.chansend1+0x68 /data4/soft/go/go/src/pkg/runtime/chan.c:402 runtime.chansend1(0x1050a7c0, 0x10501a48) main.main+0x104 /data4/soft/go/go/doc/progs/server1.go:48 main.main() runtime.mainstart+0x18 /data4/soft/go/go/src/pkg/runtime/arm/asm.s:69 runtime.mainstart()" is not ""