gen2brain / go-fitz

Golang wrapper for the MuPDF Fitz library
GNU Affero General Public License v3.0
429 stars 97 forks source link

Linux platform, when PDF is invalid #106

Closed erkesi closed 1 month ago

erkesi commented 6 months ago

fatal error: unexpected signal during runtime execution [signal SIGSEGV: segmentation violation code=0x80 addr=0x0 pc=0x7f680c36463b]

runtime stack: runtime.throw({0x9f37d11?, 0x8c5c6b9?}) /usr/local/go/src/runtime/panic.go:1047 +0x5d fp=0x7f67d3ded9b0 sp=0x7f67d3ded980 pc=0x2f44edd runtime.sigpanic() /usr/local/go/src/runtime/signal_unix.go:831 +0x369 fp=0x7f67d3deda00 sp=0x7f67d3ded9b0 pc=0x2f5d1a9

goroutine 1413 [syscall]: runtime.cgocall(0x8ba5080, 0xc00f4de720) /usr/local/go/src/runtime/cgocall.go:158 +0x5c fp=0xc00f4de6f8 sp=0xc00f4de6c0 pc=0x2f043dc github.com/gen2brain/go-fitz._Cfunc_open_document(0x7f67c00008c0, 0x7f67c00192c0) _cgo_gotypes.go:1638 +0x4d fp=0xc00f4de720 sp=0xc00f4de6f8 pc=0x5218a0d github.com/gen2brain/go-fitz.New.func3(0x7f67c00192c0?, 0x12?) /opt/tiger/compile_path/pkg/mod/github.com/gen2brain/go-fitz@v1.23.7/fitz.go:115 +0x4f fp=0xc00f4de760 sp=0xc00f4de720 pc=0x5218eaf github.com/gen2brain/go-fitz.New({0xc0073f8828, 0x12}) /opt/tiger/compile_path/pkg/mod/github.com/gen2brain/go-fitz@v1.23.7/fitz.go:115 +0x130 fp=0xc00f4de7d8 sp=0xc00f4de760 pc=0x5218c50