Skip to content

StackOverflow when comparing images #2

Description

@adampetrovic
runtime: newstack sp=0xc820036740 stack=[0x2d3c604973e3, 0xc8200367e0]
	morebuf={pc:0x1b631 sp:0xc820036750 lr:0x0}
	sched={pc:0x1ea70 sp:0xc820036748 lr:0x0 ctxt:0x0}
runtime: gp=0xc820001800, gp->status=0x4
 runtime: split stack overflow: 0xc820036740 < 0x2d3c604973e3
fatal error: runtime: split stack overflow

runtime stack:
runtime.throw(0x40ff60, 0x1d)
	/usr/local/go/src/runtime/panic.go:527 +0x90
runtime.newstack()
	/usr/local/go/src/runtime/stack1.go:746 +0x89f
runtime.morestack()
	/usr/local/go/src/runtime/asm_amd64.s:330 +0x7f

goroutine 6 [stack growth]:
runtime.gcDrain(0xc820025220, 0x7d0)
	/usr/local/go/src/runtime/mgcmark.go:659 fp=0xc820036750 sp=0xc820036748
runtime.gcBgMarkWorker(0xc820024000)
	/usr/local/go/src/runtime/mgc.go:1320 +0x281 fp=0xc8200367b8 sp=0xc820036750
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:1696 +0x1 fp=0xc8200367c0 sp=0xc8200367b8
created by runtime.gcBgMarkStartWorkers
	/usr/local/go/src/runtime/mgc.go:1239 +0x93

goroutine 1 [runnable]:
image/jpeg.idct(0xc8200597f0)
	/usr/local/go/src/image/jpeg/idct.go:72
image/jpeg.(*decoder).processSOS(0xc8200a4000, 0xa, 0x0, 0x0)
	/usr/local/go/src/image/jpeg/scan.go:305 +0x115e
image/jpeg.(*decoder).decode(0xc8200a4000, 0x670910, 0xc8200221e0, 0x3aaa00, 0x0, 0x0, 0x0, 0x0)
	/usr/local/go/src/image/jpeg/reader.go:620 +0xa1d
image/jpeg.Decode(0x670910, 0xc8200221e0, 0x0, 0x0, 0x0, 0x0)
	/usr/local/go/src/image/jpeg/reader.go:763 +0x66
image.Decode(0x670888, 0xc820038080, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
	/usr/local/go/src/image/format.go:84 +0x201
main.readImage(0x7ffeefbff2b3, 0x30, 0x0, 0x0)
	/Users/crhyme/go/src/github.com/crhym3/imgdiff/cmd/imgdiff/io.go:52 +0xf0
main.run()
	/Users/crhyme/go/src/github.com/crhym3/imgdiff/cmd/imgdiff/main.go:96 +0x3ae
main.main()
	/Users/crhyme/go/src/github.com/crhym3/imgdiff/cmd/imgdiff/main.go:83 +0x4c

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:1696 +0x1```

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions