Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed Blargg's dmg_sound.gb #17

Open
BartElliott opened this issue Nov 23, 2018 · 0 comments
Open

Failed Blargg's dmg_sound.gb #17

BartElliott opened this issue Nov 23, 2018 · 0 comments
Labels

Comments

@BartElliott
Copy link
Contributor

What did you do?

./goboy -dmg dmg_sound.gb

What did you expect to see?

Tests passed

What did you see instead?

On the 12th test, goboy crashes:

panic: runtime error: index out of range

goroutine 19 [running]:
github.com/Humpheh/goboy/pkg/cart.(*MBC1).Read(0xc00012d700, 0xc000014000, 0x400000c0000a5400)
        /home/bell/github/goboy/pkg/cart/mbc1.go:30 +0xb7
github.com/Humpheh/goboy/pkg/gb.(*Memory).Read(0xc000116000, 0xc0000b4000, 0x4c000040)
        /home/bell/github/goboy/pkg/gb/memory.go:271 +0x1cf
github.com/Humpheh/goboy/pkg/gb.(*Gameboy).ExecuteOpcode(0xc0000f4000, 0xc0000d0b1a)
        /home/bell/github/goboy/pkg/gb/instructions.go:132 +0xad8
github.com/Humpheh/goboy/pkg/gb.(*Gameboy).ExecuteNextOpcode(0xc0000f4000, 0x0)
        /home/bell/github/goboy/pkg/gb/instructions.go:52 +0x62
github.com/Humpheh/goboy/pkg/gb.(*Gameboy).Update(0xc0000f4000, 0xc0000b1d01)
        /home/bell/github/goboy/pkg/gb/gameboy.go:81 +0x119
main.startGB(0xc0000f4000, 0x76d0a0, 0xc0000a28c0)
        /home/bell/github/goboy/cmd/goboy/main.go:136 +0x237
main.start(0x7ffd676cb33a, 0x2b)
        /home/bell/github/goboy/cmd/goboy/main.go:113 +0x43c
main.main.func1()
        /home/bell/github/goboy/cmd/goboy/main.go:60 +0x33
github.com/faiface/mainthread.Run.func1(0xc0000a2820, 0xc000078240)
        /home/bell/go/pkg/mod/github.com/faiface/mainthread@v0.0.0-20171120011319-8b78f0a41ae3/mainthread.go:37 +0x27
created by github.com/faiface/mainthread.Run
        /home/bell/go/pkg/mod/github.com/faiface/mainthread@v0.0.0-20171120011319-8b78f0a41ae3/mainthread.go:36 +0xb1

System details

go version go1.11.2 linux/amd64
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/bell/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/bell/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/lib/go"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/bell/github/goboy/go.mod"
GOROOT/bin/go version: go version go1.11.2 linux/amd64
GOROOT/bin/go tool compile -V: compile version go1.11.2
uname -sr: Linux 4.19.2-arch1-1-ARCH
/usr/lib/libc.so.6: GNU C Library (GNU libc) stable release version 2.28.
gdb --version: GNU gdb (GDB) 8.2
@Humpheh Humpheh added the bug label Nov 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants