- Are you able to provide the code which causes this crash ?
 Not really...it's a big code-base... I will try to reproduce a smaller 
testcase and update the post.
- Which Go version are you using ?
go tip
- Are you testing this in the browser or in Node ? Please give details of 
either.
In the browser (sort of ) 

https://github.com/golang/go/wiki/WebAssembly#running-tests-in-the-browser

joi, 14 noiembrie 2019, 18:33:48 UTC+2, Agniva De Sarker a scris:
>
> Please provide more information so that it helps people to debug the 
> issue. Such as:
>
> - Are you able to provide the code which causes this crash ?
> - Which Go version are you using ?
> - Are you testing this in the browser or in Node ? Please give details of 
> either.
>
>
>
> On Thursday, 14 November 2019 18:52:49 UTC+5:30, mihai barbulescu wrote:
>>
>> I'm building a client-side webapp and part of this I would like to run 
>> tests. It seems testing fails . Is it a known issue ?
>>
>>
>> Mihai
>>
>> server thetv$ GOOS=js GOARCH=wasm go test 
>> --- FAIL: TestServer (3.00s)
>> fatal error: unexpected signal during runtime execution
>>
>> runtime stack:
>> runtime: unexpected return pc for syscall.fsCall called from 
>> 0x15d70a5c1ade6900
>> stack: frame={sp:0xb23170, fp:0xb23208} stack=[0xb21698,0xb23298)
>> 0000000000b23070:  0000000000143b44  000000000000002a 
>> 0000000000b23080:  0000000000b00de0  0000000010e20003 
>> <runtime.typedmemmove+3> 
>> 0000000000b23090:  0000000000000001  00000000000b52bf 
>> 0000000000b230a0:  000000005bab0011 <thep/server.TestServer+17>  
>> 0000000000c3e368 
>> 0000000000b230b0:  0000000000c3e3b8  00000000105e001a 
>> <runtime.chanrecv+26> 
>> 0000000000b230c0:  0000000000000000  0000000000b231e8 
>> 0000000000b230d0:  0000000000000005  0000000000000000 
>> 0000000000b230e0:  00000000109e0010 <runtime.beforeIdle+16>  
>> 0000000000000000 
>> 0000000000b230f0:  0000000000000003  0000000000000005 
>> 0000000000b23100:  0000008affbb0c00  0000000000000001 
>> 0000000000b23110:  15d709d100000001  15d70a5c1ade6900 
>> 0000000000b23120:  0000000000c32300  0000000000c30058 
>> 0000000000b23130:  0000000000000000  00000000008e6901 
>> 0000000000b23140:  00000000105d0002 <runtime.chanrecv1+2>  
>> 0000000000c30000 
>> 0000000000b23150:  0000000000b231e8  0000000000000001 
>> 0000000000b23160:  0000000000b06600  000000001512000d <syscall.fsCall+13> 
>> 0000000000b23170: <0000000000c30000  0000000000b231e8 
>> 0000000000b23180:  0000000012250010 <runtime.casgstatus+16>  
>> 0000000100000001 
>> 0000000000b23190:  0000000100000000  0000000000c3e3b8 
>> 0000000000b231a0:  0000000000000000  0000000000c305d8 
>> 0000000000b231b0:  15d709d100000005  0000000000c30000 
>> 0000000000b231c0:  0000000500000004  0000000000b00de0 
>> 0000000000b231d0:  15d709d11b235d00  0000000000c30000 
>> 0000000000b231e0:  000000001248005e <runtime.schedule+94>  
>> 0000000000000000 
>> 0000000000b231f0:  0000000000000000  0000000000000000 
>> 0000000000b23200: !15d70a5c1ade6900 >0000000010a00000 
>> <runtime.handleAsyncEvent+0> 
>> 0000000000b23210:  0000000000ac0820  0000000013500004 
>> <runtime.isSystemGoroutine+4> 
>> 0000000000b23220:  0000000010a00000 <runtime.handleAsyncEvent+0>  
>> 0000000000b00de0 
>> 0000000000b23230:  0000000000c00c90  0000000000000006 
>> 0000000000b23240:  000000001251002b <runtime.goexit0+43>  
>> 0000000000c30000 
>> 0000000000b23250:  0000000000c00c00  0000000000c00900 
>> 0000000000b23260:  0000000400000002  0000000000000000 
>> 0000000000b23270:  0000000000b00de0  0000000013b40001 <runtime.mcall+1> 
>> 0000000000b23280:  0000000000c00c00  0000000000b232c0 
>> 0000000000b23290:  0100000000000000 
>> syscall.fsCall(0x10a00000, 0xac0820, 0x13500004, 0x10a00000, 0xb00de0, 
>> 0xc00c90, 0x6, 0x1251002b)
>>         /Users/thetv/goroot/src/syscall/fs_js.go:513 +0xd
>>
>> goroutine 1 [chan receive]:
>> testing.(*T).Run(0xca4100, 0x137b68, 0xa, 0x14f008, 0x155b0002)
>>         /Users/thetv/goroot/src/testing/testing.go:977 +0x31
>> testing.runTests.func1(0xca4000)
>>         /Users/thetv/goroot/src/testing/testing.go:1218 +0x5
>> testing.tRunner(0xca4000, 0xc56e28)
>>         /Users/thetv/goroot/src/testing/testing.go:925 +0xc
>> testing.runTests(0xc0a240, 0xaee440, 0x1, 0x1, 0x0)
>>         /Users/thetv/goroot/src/testing/testing.go:1216 +0x28
>> testing.(*M).Run(0xca2000, 0x0)
>>         /Users/thetv/goroot/src/testing/testing.go:1133 +0x1b
>> main.main()
>>         _testmain.go:44 +0xd
>>
>> goroutine 6 [waiting]:
>> syscall/js.Value.Call(0x7ff800000000000a, 0x13655c, 0x5, 0xc76aa0, 0x6, 
>> 0xa, 0x5)
>>         /Users/thetv/goroot/src/syscall/js/js.go:326 +0x3
>> syscall.fsCall(0x13655c, 0x5, 0xc58bf8, 0x5, 0x5, 0x401, 0x1378ac0, 
>> 0x300000000)
>>         /Users/thetv/goroot/src/syscall/fs_js.go:496 +0xc
>> syscall.Write(0x1, 0xc74400, 0x1d, 0x400, 0x1d, 0xb2ee68, 0xcac500)
>>         /Users/thetv/goroot/src/syscall/fs_js.go:417 +0x11
>> internal/poll.(*FD).Write(0xc3e120, 0xc74400, 0x1d, 0x400, 0x0, 0x0, 0x0)
>>         /Users/thetv/goroot/src/internal/poll/fd_unix.go:268 +0x22
>> os.(*File).write(...)
>>         /Users/thetv/goroot/src/os/file_unix.go:280
>> os.(*File).Write(0xc0c020, 0xc74400, 0x1d, 0x400, 0x3, 0x3, 0xc2ce01)
>>         /Users/thetv/goroot/src/os/file.go:153 +0xf
>> fmt.Fprintf(0x1949c0, 0xc0c020, 0x139be8, 0x10, 0xc58e78, 0x3, 0x3, 
>> 0xb232c8, 0x0, 0x19340006)
>>         /Users/thetv/goroot/src/fmt/print.go:205 +0x8
>> testing.(*common).flushToParent(0xca4100, 0x139be8, 0x10, 0xc58e78, 0x3, 
>> 0x3)
>>         /Users/thetv/goroot/src/testing/testing.go:508 +0x7
>> testing.(*T).report(0xca4100)
>>         /Users/thetv/goroot/src/testing/testing.go:1155 +0x18
>> testing.tRunner.func1(0xca4100)
>>         /Users/thetv/goroot/src/testing/testing.go:912 +0x41
>> testing.tRunner(0xca4100, 0x14f008)
>>         /Users/thetv/goroot/src/testing/testing.go:929 +0xd
>> created by testing.(*T).Run
>>         /Users/thetv/goroot/src/testing/testing.go:976 +0x30
>>
>> goroutine 7 [chan receive]:
>> thep/server.Server(0x194b00, 0xc0a260)
>>         /Users/thetv/go/src/thep/server/webserver_js.go:50 +0x22
>> created by thep/server.TestServer
>>         /Users/thetv/go/src/thep/server/webserver_js_test.go:19 +0x3
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/2842890c-49b4-437e-acf7-a46e2e6231fa%40googlegroups.com.

Reply via email to