Thinkofname / steven-go

Go Minecraft Client
http://steven.thinkofdeath.uk/
Apache License 2.0
303 stars 26 forks source link

render/gl: segfault in BufferSubData #5

Closed cindyker closed 9 years ago

cindyker commented 9 years ago

I logged on to my creative server. Looked around at for a minute and then...

Exception 0xc0000005 0x1 0xed83ea6 0x1802343ee
PC=0x1802343ee
signal arrived during cgo execution

github.com/thinkofdeath/gl/v3.2-core/gl._Cfunc_glowBufferSubData(0x18047a3e0, 0x8892, 0x0, 0x458a, 0xc086647000)
    github.com/thinkofdeath/gl/v3.2-core/gl/_obj/_cgo_gotypes.go:2325 +0x4c
github.com/thinkofdeath/gl/v3.2-core/gl.BufferSubData(0x8892, 0x0, 0x458a, 0xc086647000)
    /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/gl/v3.2-core/gl/package.go:6622 +0x57
github.com/thinkofdeath/steven/render/gl.Buffer.SubData(0xc00000033e, 0x0, 0xc086647000, 0x458a, 0x458a)
    /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/render/gl/buffer.go:72 +0x11b
github.com/thinkofdeath/steven/render.Draw(0x3ff617df19d66adb)
    /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/render/render.go:195 +0xcab
main.draw()
    /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/steven.go:154 +0x490
github.com/thinkofdeath/steven/platform.run(0xa3be68, 0xa3be30, 0xa3be58, 0xa3be50, 0xa3be28)
    /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/platform/desktop.go:60 +0x2c3
github.com/thinkofdeath/steven/platform.Init(0xa3be68, 0xa3be30, 0xa3be58, 0xa3be50, 0xa3be28)
    /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/platform/platform.go:25 +0x3a
main.main()
    /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/steven.go:78 +0x43c

goroutine 17 [syscall, 2 minutes, locked to thread]:
runtime.goexit()
    c:/go/src/runtime/asm_amd64.s:2232 +0x1

goroutine 6 [IO wait]:
net.(*pollDesc).Wait(0xc083d9e170, 0x72, 0x0, 0x0)
    c:/go/src/net/fd_poll_runtime.go:84 +0x4e
net.(*ioSrv).ExecIO(0xc082430900, 0xc083d9e060, 0x867230, 0x7, 0xa3bf48, 0x4, 0x0, 0x0)
    c:/go/src/net/fd_windows.go:188 +0x305
net.(*netFD).Read(0xc083d9e000, 0xc082ae82fc, 0x1, 0x1, 0x0, 0x0, 0x0)
    c:/go/src/net/fd_windows.go:470 +0x180
net.(*conn).Read(0xc082430020, 0xc082ae82fc, 0x1, 0x1, 0x0, 0x0, 0x0)
    c:/go/src/net/net.go:121 +0xe3
crypto/cipher.StreamReader.Read(0x12314f0, 0xc0841d6780, 0x122d870, 0xc082430020, 0xc082ae82fc, 0x1, 0x1, 0x7136a0, 0x0, 0x0)
    c:/go/src/crypto/cipher/io.go:20 +0x84
crypto/cipher.(*StreamReader).Read(0xc0843b80e0, 0xc082ae82fc, 0x1, 0x1, 0x0, 0x0, 0x0)
    <autogenerated>:11 +0xdd
github.com/thinkofdeath/steven/protocol.ReadByte(0x1231518, 0xc0843b80e0, 0xc083d9e000, 0x0, 0x0)
    /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/protocol/io.go:187 +0x110
github.com/thinkofdeath/steven/protocol.ReadVarInt(0x1231518, 0xc0843b80e0, 0x1cc17d04, 0x0, 0x0)
    /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/protocol/io.go:70 +0x5c
github.com/thinkofdeath/steven/protocol.(*Conn).ReadPacket(0xc0822e2480, 0x0, 0x0, 0x0, 0x0)
    /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/protocol/connection.go:158 +0x132
main.startConnection(0xc082002240, 0x7, 0xc082062030, 0x20, 0xc082062060, 0x20, 0xc082008520, 0x11)
    /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/network.go:65 +0x280
created by main.main
    /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/steven.go:64 +0x3ab

goroutine 35 [chan receive]:
main.writeHandler(0xc0822e2480)
    /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/network.go:90 +0x59
created by main.startConnection
    /home/thinkofdeath/TeamCity/buildAgent/work/9213002c05b9c4f1/src/github.com/thinkofdeath/steven/network.go:62 +0x26e
rax     0x1
rbx     0x3ef5cc0
rcx     0x3ef5cc0
rdx     0x23fd30
rdi     0x3ef5cc0
rsi     0x3f5de10
rbp     0x23fbc1
rsp     0x23f8c0
r8      0xed83eb6
r9      0x43ea6
r10     0x2
r11     0x2
r12     0x23fcc0
r13     0x3f6cdc0
r14     0x6
r15     0x5f19080
rip     0x1802343ee
rflags  0x100010206
cs      0x33
fs      0x53
gs      0x2b
Thinkofname commented 9 years ago

Seems to be a bug with intel drivers, don't think there is anything I can do

Thinkofname commented 9 years ago

Fixed with a workaround