[GH-ISSUE #319] Fail to run #234

Closed
opened 2026-02-25 23:33:45 +03:00 by kerem · 2 comments
Owner

Originally created by @hyoban on GitHub (Oct 14, 2021).
Original GitHub issue: https://github.com/go-shiori/shiori/issues/319

when i run go run main.go serve in the terminal

fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0xb01dfacedebac1e pc=0x7fff6813d70a]

runtime stack:
runtime: unexpected return pc for runtime.sigpanic called from 0x7fff6813d70a
stack: frame={sp:0x7ffeefbff478, fp:0x7ffeefbff4c8} stack=[0x7ffeefb80518,0x7ffeefbff580)
0x00007ffeefbff378:  0x01007ffeefbff398  0x0000000000000004 
0x00007ffeefbff388:  0x000000000000001f  0x00007fff6813d70a 
0x00007ffeefbff398:  0x0b01dfacedebac1e  0x0000000000000001 
0x00007ffeefbff3a8:  0x00000000040371b1 <runtime.throw+0x0000000000000071>  0x00007ffeefbff448 
0x00007ffeefbff3b8:  0x00000000046da2c1  0x00007ffeefbff400 
0x00007ffeefbff3c8:  0x0000000004037468 <runtime.fatalthrow.func1+0x0000000000000048>  0x0000000004c9a500 
0x00007ffeefbff3d8:  0x0000000000000001  0x0000000000000001 
0x00007ffeefbff3e8:  0x00007ffeefbff448  0x00000000040371b1 <runtime.throw+0x0000000000000071> 
0x00007ffeefbff3f8:  0x0000000004c9a500  0x00007ffeefbff438 
0x00007ffeefbff408:  0x00000000040373f0 <runtime.fatalthrow+0x0000000000000050>  0x00007ffeefbff418 
0x00007ffeefbff418:  0x0000000004037420 <runtime.fatalthrow.func1+0x0000000000000000>  0x0000000004c9a500 
0x00007ffeefbff428:  0x00000000040371b1 <runtime.throw+0x0000000000000071>  0x00007ffeefbff448 
0x00007ffeefbff438:  0x00007ffeefbff468  0x00000000040371b1 <runtime.throw+0x0000000000000071> 
0x00007ffeefbff448:  0x00007ffeefbff450  0x00000000040371e0 <runtime.throw.func1+0x0000000000000000> 
0x00007ffeefbff458:  0x00000000046e2b6a  0x000000000000002a 
0x00007ffeefbff468:  0x00007ffeefbff4b8  0x000000000404c956 <runtime.sigpanic+0x0000000000000396> 
0x00007ffeefbff478: <0x00000000046e2b6a  0x000000000403b84d <runtime.casgstatus+0x000000000000018d> 
0x00007ffeefbff488:  0x00007ffeefbff4f8  0x000000000402a0c6 <runtime.(*mheap).allocSpan+0x0000000000000546> 
0x00007ffeefbff498:  0x000000c000530000  0x0000000000002000 
0x00007ffeefbff4a8:  0x000000c000000008  0x0000000200000001 
0x00007ffeefbff4b8:  0x00007ffeefbff500 !0x00007fff6813d70a 
0x00007ffeefbff4c8: >0x00007ffeefbff500  0x0000000004c34000 
0x00007ffeefbff4d8:  0x00000000000005bb  0x000000000432cbc5 <golang.org/x/sys/unix.libc_ioctl_trampoline+0x0000000000000005> 
0x00007ffeefbff4e8:  0x000000000406903f <runtime.syscall+0x000000000000001f>  0x000000c0001a9098 
0x00007ffeefbff4f8:  0x00000000040689ac <runtime.nanotime_trampoline+0x000000000000000c>  0x000000c0001a9068 
0x00007ffeefbff508:  0x0000000004066eb0 <runtime.asmcgocall+0x0000000000000070>  0x0000000000000001 
0x00007ffeefbff518:  0x00007ffeefbf1200  0x1200000004039d26 
0x00007ffeefbff528:  0x000000c00008b040  0x000000c00008b040 
0x00007ffeefbff538:  0x0000000000000fc0  0x000000c0000001a0 
0x00007ffeefbff548:  0x0000000004064fc9 <runtime.systemstack+0x0000000000000049>  0x0000000000000004 
0x00007ffeefbff558:  0x00000000048f9798  0x0000000004c9a500 
0x00007ffeefbff568:  0x00007ffeefbff5b8  0x0000000004064ec5 <runtime.mstart+0x0000000000000005> 
0x00007ffeefbff578:  0x0000000004064e7d <runtime.rt0_go+0x000000000000013d> 
runtime.throw({0x46e2b6a, 0x403b84d})
        /usr/local/Cellar/go/1.17.1/libexec/src/runtime/panic.go:1198 +0x71
runtime: unexpected return pc for runtime.sigpanic called from 0x7fff6813d70a
stack: frame={sp:0x7ffeefbff478, fp:0x7ffeefbff4c8} stack=[0x7ffeefb80518,0x7ffeefbff580)
0x00007ffeefbff378:  0x01007ffeefbff398  0x0000000000000004 
0x00007ffeefbff388:  0x000000000000001f  0x00007fff6813d70a 
0x00007ffeefbff398:  0x0b01dfacedebac1e  0x0000000000000001 
0x00007ffeefbff3a8:  0x00000000040371b1 <runtime.throw+0x0000000000000071>  0x00007ffeefbff448 
0x00007ffeefbff3b8:  0x00000000046da2c1  0x00007ffeefbff400 
0x00007ffeefbff3c8:  0x0000000004037468 <runtime.fatalthrow.func1+0x0000000000000048>  0x0000000004c9a500 
0x00007ffeefbff3d8:  0x0000000000000001  0x0000000000000001 
0x00007ffeefbff3e8:  0x00007ffeefbff448  0x00000000040371b1 <runtime.throw+0x0000000000000071> 
0x00007ffeefbff3f8:  0x0000000004c9a500  0x00007ffeefbff438 
0x00007ffeefbff408:  0x00000000040373f0 <runtime.fatalthrow+0x0000000000000050>  0x00007ffeefbff418 
0x00007ffeefbff418:  0x0000000004037420 <runtime.fatalthrow.func1+0x0000000000000000>  0x0000000004c9a500 
0x00007ffeefbff428:  0x00000000040371b1 <runtime.throw+0x0000000000000071>  0x00007ffeefbff448 
0x00007ffeefbff438:  0x00007ffeefbff468  0x00000000040371b1 <runtime.throw+0x0000000000000071> 
0x00007ffeefbff448:  0x00007ffeefbff450  0x00000000040371e0 <runtime.throw.func1+0x0000000000000000> 
0x00007ffeefbff458:  0x00000000046e2b6a  0x000000000000002a 
0x00007ffeefbff468:  0x00007ffeefbff4b8  0x000000000404c956 <runtime.sigpanic+0x0000000000000396> 
0x00007ffeefbff478: <0x00000000046e2b6a  0x000000000403b84d <runtime.casgstatus+0x000000000000018d> 
0x00007ffeefbff488:  0x00007ffeefbff4f8  0x000000000402a0c6 <runtime.(*mheap).allocSpan+0x0000000000000546> 
0x00007ffeefbff498:  0x000000c000530000  0x0000000000002000 
0x00007ffeefbff4a8:  0x000000c000000008  0x0000000200000001 
0x00007ffeefbff4b8:  0x00007ffeefbff500 !0x00007fff6813d70a 
0x00007ffeefbff4c8: >0x00007ffeefbff500  0x0000000004c34000 
0x00007ffeefbff4d8:  0x00000000000005bb  0x000000000432cbc5 <golang.org/x/sys/unix.libc_ioctl_trampoline+0x0000000000000005> 
0x00007ffeefbff4e8:  0x000000000406903f <runtime.syscall+0x000000000000001f>  0x000000c0001a9098 
0x00007ffeefbff4f8:  0x00000000040689ac <runtime.nanotime_trampoline+0x000000000000000c>  0x000000c0001a9068 
0x00007ffeefbff508:  0x0000000004066eb0 <runtime.asmcgocall+0x0000000000000070>  0x0000000000000001 
0x00007ffeefbff518:  0x00007ffeefbf1200  0x1200000004039d26 
0x00007ffeefbff528:  0x000000c00008b040  0x000000c00008b040 
0x00007ffeefbff538:  0x0000000000000fc0  0x000000c0000001a0 
0x00007ffeefbff548:  0x0000000004064fc9 <runtime.systemstack+0x0000000000000049>  0x0000000000000004 
0x00007ffeefbff558:  0x00000000048f9798  0x0000000004c9a500 
0x00007ffeefbff568:  0x00007ffeefbff5b8  0x0000000004064ec5 <runtime.mstart+0x0000000000000005> 
0x00007ffeefbff578:  0x0000000004064e7d <runtime.rt0_go+0x000000000000013d> 
runtime.sigpanic()
        /usr/local/Cellar/go/1.17.1/libexec/src/runtime/signal_unix.go:719 +0x396

goroutine 1 [syscall]:
syscall.syscall(0x432cbc0, 0x2, 0x40487413, 0xc0001a9128)
        /usr/local/Cellar/go/1.17.1/libexec/src/runtime/sys_darwin.go:22 +0x3b fp=0xc0001a9098 sp=0xc0001a9078 pc=0x4063afb
syscall.syscall(0x8, 0x38, 0xc000528a20, 0x5555555555555)
        <autogenerated>:1 +0x26 fp=0xc0001a90e0 sp=0xc0001a9098 pc=0x4069846
golang.org/x/sys/unix.ioctl(0xc0001a9218, 0x10, 0x203000)
        /Users/hyoban/go/pkg/mod/golang.org/x/sys@v0.0.0-20190927073244-c990c680b611/unix/zsyscall_darwin_amd64.go:746 +0x39 fp=0xc0001a9110 sp=0xc0001a90e0 pc=0x432c859
golang.org/x/sys/unix.IoctlGetTermios(...)
        /Users/hyoban/go/pkg/mod/golang.org/x/sys@v0.0.0-20190927073244-c990c680b611/unix/ioctl.go:63
github.com/sirupsen/logrus.isTerminal(0x203000)
        /Users/hyoban/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/terminal_check_bsd.go:10 +0x50 fp=0xc0001a9180 sp=0xc0001a9110 pc=0x4332970
github.com/sirupsen/logrus.checkIfTerminal({0x4902420, 0xc000010020})
        /Users/hyoban/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/terminal_check_notappengine.go:13 +0x75 fp=0xc0001a9198 sp=0xc0001a9180 pc=0x4332a15
github.com/sirupsen/logrus.(*TextFormatter).init(...)
        /Users/hyoban/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/text_formatter.go:86
github.com/sirupsen/logrus.(*TextFormatter).Format.func1()
        /Users/hyoban/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/text_formatter.go:170 +0x36 fp=0xc0001a91c0 sp=0xc0001a9198 pc=0x43340b6
sync.(*Once).doSlow(0x490b698, 0xc00009a1b0)
        /usr/local/Cellar/go/1.17.1/libexec/src/sync/once.go:68 +0xd2 fp=0xc0001a9228 sp=0xc0001a91c0 pc=0x407cbf2
sync.(*Once).Do(...)
        /usr/local/Cellar/go/1.17.1/libexec/src/sync/once.go:59
github.com/sirupsen/logrus.(*TextFormatter).Format(0xc00007c140, 0xc000530070)
        /Users/hyoban/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/text_formatter.go:170 +0xebe fp=0xc0001a9798 sp=0xc0001a9228 pc=0x4333a5e
github.com/sirupsen/logrus.(*Entry).write(0xc000530070)
        /Users/hyoban/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/entry.go:255 +0xa5 fp=0xc0001a9810 sp=0xc0001a9798 pc=0x432e1a5
github.com/sirupsen/logrus.Entry.log({0xc00017c000, 0xc000528a80, {0x0, 0x0, 0x0}, 0x0, 0x0, {0x0, 0x0}, 0x0, ...}, ...)
        /Users/hyoban/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/entry.go:231 +0x22e fp=0xc0001a9890 sp=0xc0001a9810 pc=0x432de4e
github.com/sirupsen/logrus.(*Entry).Log(0xc000530000, 0x4, {0xc0001a99c0, 0x432fe7a, 0xc00017c040})
        /Users/hyoban/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/entry.go:268 +0xa8 fp=0xc0001a9998 sp=0xc0001a9890 pc=0x432e3a8
github.com/sirupsen/logrus.(*Entry).Logln(0xc000530000, 0x4, {0xc0001a9c28, 0x10, 0x461d480})
        /Users/hyoban/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/entry.go:359 +0x85 fp=0xc0001a99e0 sp=0xc0001a9998 pc=0x432efa5
github.com/sirupsen/logrus.(*Logger).Logln(0xc00017c000, 0x4, {0xc0001a9c28, 0x2, 0x2})
        /Users/hyoban/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/logger.go:239 +0x65 fp=0xc0001a9a20 sp=0xc0001a99e0 pc=0x4331725
github.com/sirupsen/logrus.(*Logger).Infoln(...)
        /Users/hyoban/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/logger.go:253
github.com/sirupsen/logrus.Infoln(...)
        /Users/hyoban/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/exported.go:199
github.com/go-shiori/shiori/internal/webserver.ServeApp({{0x491a100, 0xc0000994a0}, {0xc0000b0060, 0x30}, {0x0, 0x0}, 0x1f90, {0x48f9740, 0x1}})
        /Users/hyoban/Documents/GitHub/shiori/internal/webserver/server.go:96 +0x19b5 fp=0xc0001a9ce8 sp=0xc0001a9a20 pc=0x445d7f5
github.com/go-shiori/shiori/internal/cmd.serveHandler(0xc0000b7680, {0x46c4045, 0x0, 0x0})
        /Users/hyoban/Documents/GitHub/shiori/internal/cmd/serve.go:56 +0x20d fp=0xc0001a9dc8 sp=0xc0001a9ce8 pc=0x44723ad
github.com/spf13/cobra.(*Command).execute(0xc0000b7680, {0x4cca830, 0x0, 0x0})
        /Users/hyoban/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:830 +0x5f8 fp=0xc0001a9e88 sp=0xc0001a9dc8 pc=0x43b5ff8
github.com/spf13/cobra.(*Command).ExecuteC(0xc0000b6000)
        /Users/hyoban/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914 +0x2fc fp=0xc0001a9f40 sp=0xc0001a9e88 pc=0x43b653c
github.com/spf13/cobra.(*Command).Execute(...)
        /Users/hyoban/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864
main.main()
        /Users/hyoban/Documents/GitHub/shiori/main.go:24 +0x1e fp=0xc0001a9f80 sp=0xc0001a9f40 pc=0x44c11de
runtime.main()
        /usr/local/Cellar/go/1.17.1/libexec/src/runtime/proc.go:255 +0x227 fp=0xc0001a9fe0 sp=0xc0001a9f80 pc=0x4039847
runtime.goexit()
        /usr/local/Cellar/go/1.17.1/libexec/src/runtime/asm_amd64.s:1581 +0x1 fp=0xc0001a9fe8 sp=0xc0001a9fe0 pc=0x40671a1

goroutine 18 [select]:
database/sql.(*DB).connectionOpener(0xc0000aab60, {0x490efd8, 0xc0000a4700})
        /usr/local/Cellar/go/1.17.1/libexec/src/database/sql/sql.go:1196 +0x93
created by database/sql.OpenDB
        /usr/local/Cellar/go/1.17.1/libexec/src/database/sql/sql.go:794 +0x188

goroutine 20 [select]:
github.com/patrickmn/go-cache.(*janitor).Run(0xc00009c600, 0x0)
        /Users/hyoban/go/pkg/mod/github.com/patrickmn/go-cache@v2.1.0+incompatible/cache.go:1079 +0x89
created by github.com/patrickmn/go-cache.runJanitor
        /Users/hyoban/go/pkg/mod/github.com/patrickmn/go-cache@v2.1.0+incompatible/cache.go:1099 +0xf2

goroutine 21 [select]:
github.com/patrickmn/go-cache.(*janitor).Run(0xc00009c610, 0x0)
        /Users/hyoban/go/pkg/mod/github.com/patrickmn/go-cache@v2.1.0+incompatible/cache.go:1079 +0x89
created by github.com/patrickmn/go-cache.runJanitor
        /Users/hyoban/go/pkg/mod/github.com/patrickmn/go-cache@v2.1.0+incompatible/cache.go:1099 +0xf2

goroutine 22 [select]:
github.com/patrickmn/go-cache.(*janitor).Run(0xc00009c620, 0x0)
        /Users/hyoban/go/pkg/mod/github.com/patrickmn/go-cache@v2.1.0+incompatible/cache.go:1079 +0x89
created by github.com/patrickmn/go-cache.runJanitor
        /Users/hyoban/go/pkg/mod/github.com/patrickmn/go-cache@v2.1.0+incompatible/cache.go:1099 +0xf2
exit status 2
Originally created by @hyoban on GitHub (Oct 14, 2021). Original GitHub issue: https://github.com/go-shiori/shiori/issues/319 when i run `go run main.go serve` in the terminal ``` fatal error: unexpected signal during runtime execution [signal SIGSEGV: segmentation violation code=0x1 addr=0xb01dfacedebac1e pc=0x7fff6813d70a] runtime stack: runtime: unexpected return pc for runtime.sigpanic called from 0x7fff6813d70a stack: frame={sp:0x7ffeefbff478, fp:0x7ffeefbff4c8} stack=[0x7ffeefb80518,0x7ffeefbff580) 0x00007ffeefbff378: 0x01007ffeefbff398 0x0000000000000004 0x00007ffeefbff388: 0x000000000000001f 0x00007fff6813d70a 0x00007ffeefbff398: 0x0b01dfacedebac1e 0x0000000000000001 0x00007ffeefbff3a8: 0x00000000040371b1 <runtime.throw+0x0000000000000071> 0x00007ffeefbff448 0x00007ffeefbff3b8: 0x00000000046da2c1 0x00007ffeefbff400 0x00007ffeefbff3c8: 0x0000000004037468 <runtime.fatalthrow.func1+0x0000000000000048> 0x0000000004c9a500 0x00007ffeefbff3d8: 0x0000000000000001 0x0000000000000001 0x00007ffeefbff3e8: 0x00007ffeefbff448 0x00000000040371b1 <runtime.throw+0x0000000000000071> 0x00007ffeefbff3f8: 0x0000000004c9a500 0x00007ffeefbff438 0x00007ffeefbff408: 0x00000000040373f0 <runtime.fatalthrow+0x0000000000000050> 0x00007ffeefbff418 0x00007ffeefbff418: 0x0000000004037420 <runtime.fatalthrow.func1+0x0000000000000000> 0x0000000004c9a500 0x00007ffeefbff428: 0x00000000040371b1 <runtime.throw+0x0000000000000071> 0x00007ffeefbff448 0x00007ffeefbff438: 0x00007ffeefbff468 0x00000000040371b1 <runtime.throw+0x0000000000000071> 0x00007ffeefbff448: 0x00007ffeefbff450 0x00000000040371e0 <runtime.throw.func1+0x0000000000000000> 0x00007ffeefbff458: 0x00000000046e2b6a 0x000000000000002a 0x00007ffeefbff468: 0x00007ffeefbff4b8 0x000000000404c956 <runtime.sigpanic+0x0000000000000396> 0x00007ffeefbff478: <0x00000000046e2b6a 0x000000000403b84d <runtime.casgstatus+0x000000000000018d> 0x00007ffeefbff488: 0x00007ffeefbff4f8 0x000000000402a0c6 <runtime.(*mheap).allocSpan+0x0000000000000546> 0x00007ffeefbff498: 0x000000c000530000 0x0000000000002000 0x00007ffeefbff4a8: 0x000000c000000008 0x0000000200000001 0x00007ffeefbff4b8: 0x00007ffeefbff500 !0x00007fff6813d70a 0x00007ffeefbff4c8: >0x00007ffeefbff500 0x0000000004c34000 0x00007ffeefbff4d8: 0x00000000000005bb 0x000000000432cbc5 <golang.org/x/sys/unix.libc_ioctl_trampoline+0x0000000000000005> 0x00007ffeefbff4e8: 0x000000000406903f <runtime.syscall+0x000000000000001f> 0x000000c0001a9098 0x00007ffeefbff4f8: 0x00000000040689ac <runtime.nanotime_trampoline+0x000000000000000c> 0x000000c0001a9068 0x00007ffeefbff508: 0x0000000004066eb0 <runtime.asmcgocall+0x0000000000000070> 0x0000000000000001 0x00007ffeefbff518: 0x00007ffeefbf1200 0x1200000004039d26 0x00007ffeefbff528: 0x000000c00008b040 0x000000c00008b040 0x00007ffeefbff538: 0x0000000000000fc0 0x000000c0000001a0 0x00007ffeefbff548: 0x0000000004064fc9 <runtime.systemstack+0x0000000000000049> 0x0000000000000004 0x00007ffeefbff558: 0x00000000048f9798 0x0000000004c9a500 0x00007ffeefbff568: 0x00007ffeefbff5b8 0x0000000004064ec5 <runtime.mstart+0x0000000000000005> 0x00007ffeefbff578: 0x0000000004064e7d <runtime.rt0_go+0x000000000000013d> runtime.throw({0x46e2b6a, 0x403b84d}) /usr/local/Cellar/go/1.17.1/libexec/src/runtime/panic.go:1198 +0x71 runtime: unexpected return pc for runtime.sigpanic called from 0x7fff6813d70a stack: frame={sp:0x7ffeefbff478, fp:0x7ffeefbff4c8} stack=[0x7ffeefb80518,0x7ffeefbff580) 0x00007ffeefbff378: 0x01007ffeefbff398 0x0000000000000004 0x00007ffeefbff388: 0x000000000000001f 0x00007fff6813d70a 0x00007ffeefbff398: 0x0b01dfacedebac1e 0x0000000000000001 0x00007ffeefbff3a8: 0x00000000040371b1 <runtime.throw+0x0000000000000071> 0x00007ffeefbff448 0x00007ffeefbff3b8: 0x00000000046da2c1 0x00007ffeefbff400 0x00007ffeefbff3c8: 0x0000000004037468 <runtime.fatalthrow.func1+0x0000000000000048> 0x0000000004c9a500 0x00007ffeefbff3d8: 0x0000000000000001 0x0000000000000001 0x00007ffeefbff3e8: 0x00007ffeefbff448 0x00000000040371b1 <runtime.throw+0x0000000000000071> 0x00007ffeefbff3f8: 0x0000000004c9a500 0x00007ffeefbff438 0x00007ffeefbff408: 0x00000000040373f0 <runtime.fatalthrow+0x0000000000000050> 0x00007ffeefbff418 0x00007ffeefbff418: 0x0000000004037420 <runtime.fatalthrow.func1+0x0000000000000000> 0x0000000004c9a500 0x00007ffeefbff428: 0x00000000040371b1 <runtime.throw+0x0000000000000071> 0x00007ffeefbff448 0x00007ffeefbff438: 0x00007ffeefbff468 0x00000000040371b1 <runtime.throw+0x0000000000000071> 0x00007ffeefbff448: 0x00007ffeefbff450 0x00000000040371e0 <runtime.throw.func1+0x0000000000000000> 0x00007ffeefbff458: 0x00000000046e2b6a 0x000000000000002a 0x00007ffeefbff468: 0x00007ffeefbff4b8 0x000000000404c956 <runtime.sigpanic+0x0000000000000396> 0x00007ffeefbff478: <0x00000000046e2b6a 0x000000000403b84d <runtime.casgstatus+0x000000000000018d> 0x00007ffeefbff488: 0x00007ffeefbff4f8 0x000000000402a0c6 <runtime.(*mheap).allocSpan+0x0000000000000546> 0x00007ffeefbff498: 0x000000c000530000 0x0000000000002000 0x00007ffeefbff4a8: 0x000000c000000008 0x0000000200000001 0x00007ffeefbff4b8: 0x00007ffeefbff500 !0x00007fff6813d70a 0x00007ffeefbff4c8: >0x00007ffeefbff500 0x0000000004c34000 0x00007ffeefbff4d8: 0x00000000000005bb 0x000000000432cbc5 <golang.org/x/sys/unix.libc_ioctl_trampoline+0x0000000000000005> 0x00007ffeefbff4e8: 0x000000000406903f <runtime.syscall+0x000000000000001f> 0x000000c0001a9098 0x00007ffeefbff4f8: 0x00000000040689ac <runtime.nanotime_trampoline+0x000000000000000c> 0x000000c0001a9068 0x00007ffeefbff508: 0x0000000004066eb0 <runtime.asmcgocall+0x0000000000000070> 0x0000000000000001 0x00007ffeefbff518: 0x00007ffeefbf1200 0x1200000004039d26 0x00007ffeefbff528: 0x000000c00008b040 0x000000c00008b040 0x00007ffeefbff538: 0x0000000000000fc0 0x000000c0000001a0 0x00007ffeefbff548: 0x0000000004064fc9 <runtime.systemstack+0x0000000000000049> 0x0000000000000004 0x00007ffeefbff558: 0x00000000048f9798 0x0000000004c9a500 0x00007ffeefbff568: 0x00007ffeefbff5b8 0x0000000004064ec5 <runtime.mstart+0x0000000000000005> 0x00007ffeefbff578: 0x0000000004064e7d <runtime.rt0_go+0x000000000000013d> runtime.sigpanic() /usr/local/Cellar/go/1.17.1/libexec/src/runtime/signal_unix.go:719 +0x396 goroutine 1 [syscall]: syscall.syscall(0x432cbc0, 0x2, 0x40487413, 0xc0001a9128) /usr/local/Cellar/go/1.17.1/libexec/src/runtime/sys_darwin.go:22 +0x3b fp=0xc0001a9098 sp=0xc0001a9078 pc=0x4063afb syscall.syscall(0x8, 0x38, 0xc000528a20, 0x5555555555555) <autogenerated>:1 +0x26 fp=0xc0001a90e0 sp=0xc0001a9098 pc=0x4069846 golang.org/x/sys/unix.ioctl(0xc0001a9218, 0x10, 0x203000) /Users/hyoban/go/pkg/mod/golang.org/x/sys@v0.0.0-20190927073244-c990c680b611/unix/zsyscall_darwin_amd64.go:746 +0x39 fp=0xc0001a9110 sp=0xc0001a90e0 pc=0x432c859 golang.org/x/sys/unix.IoctlGetTermios(...) /Users/hyoban/go/pkg/mod/golang.org/x/sys@v0.0.0-20190927073244-c990c680b611/unix/ioctl.go:63 github.com/sirupsen/logrus.isTerminal(0x203000) /Users/hyoban/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/terminal_check_bsd.go:10 +0x50 fp=0xc0001a9180 sp=0xc0001a9110 pc=0x4332970 github.com/sirupsen/logrus.checkIfTerminal({0x4902420, 0xc000010020}) /Users/hyoban/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/terminal_check_notappengine.go:13 +0x75 fp=0xc0001a9198 sp=0xc0001a9180 pc=0x4332a15 github.com/sirupsen/logrus.(*TextFormatter).init(...) /Users/hyoban/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/text_formatter.go:86 github.com/sirupsen/logrus.(*TextFormatter).Format.func1() /Users/hyoban/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/text_formatter.go:170 +0x36 fp=0xc0001a91c0 sp=0xc0001a9198 pc=0x43340b6 sync.(*Once).doSlow(0x490b698, 0xc00009a1b0) /usr/local/Cellar/go/1.17.1/libexec/src/sync/once.go:68 +0xd2 fp=0xc0001a9228 sp=0xc0001a91c0 pc=0x407cbf2 sync.(*Once).Do(...) /usr/local/Cellar/go/1.17.1/libexec/src/sync/once.go:59 github.com/sirupsen/logrus.(*TextFormatter).Format(0xc00007c140, 0xc000530070) /Users/hyoban/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/text_formatter.go:170 +0xebe fp=0xc0001a9798 sp=0xc0001a9228 pc=0x4333a5e github.com/sirupsen/logrus.(*Entry).write(0xc000530070) /Users/hyoban/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/entry.go:255 +0xa5 fp=0xc0001a9810 sp=0xc0001a9798 pc=0x432e1a5 github.com/sirupsen/logrus.Entry.log({0xc00017c000, 0xc000528a80, {0x0, 0x0, 0x0}, 0x0, 0x0, {0x0, 0x0}, 0x0, ...}, ...) /Users/hyoban/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/entry.go:231 +0x22e fp=0xc0001a9890 sp=0xc0001a9810 pc=0x432de4e github.com/sirupsen/logrus.(*Entry).Log(0xc000530000, 0x4, {0xc0001a99c0, 0x432fe7a, 0xc00017c040}) /Users/hyoban/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/entry.go:268 +0xa8 fp=0xc0001a9998 sp=0xc0001a9890 pc=0x432e3a8 github.com/sirupsen/logrus.(*Entry).Logln(0xc000530000, 0x4, {0xc0001a9c28, 0x10, 0x461d480}) /Users/hyoban/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/entry.go:359 +0x85 fp=0xc0001a99e0 sp=0xc0001a9998 pc=0x432efa5 github.com/sirupsen/logrus.(*Logger).Logln(0xc00017c000, 0x4, {0xc0001a9c28, 0x2, 0x2}) /Users/hyoban/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/logger.go:239 +0x65 fp=0xc0001a9a20 sp=0xc0001a99e0 pc=0x4331725 github.com/sirupsen/logrus.(*Logger).Infoln(...) /Users/hyoban/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/logger.go:253 github.com/sirupsen/logrus.Infoln(...) /Users/hyoban/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/exported.go:199 github.com/go-shiori/shiori/internal/webserver.ServeApp({{0x491a100, 0xc0000994a0}, {0xc0000b0060, 0x30}, {0x0, 0x0}, 0x1f90, {0x48f9740, 0x1}}) /Users/hyoban/Documents/GitHub/shiori/internal/webserver/server.go:96 +0x19b5 fp=0xc0001a9ce8 sp=0xc0001a9a20 pc=0x445d7f5 github.com/go-shiori/shiori/internal/cmd.serveHandler(0xc0000b7680, {0x46c4045, 0x0, 0x0}) /Users/hyoban/Documents/GitHub/shiori/internal/cmd/serve.go:56 +0x20d fp=0xc0001a9dc8 sp=0xc0001a9ce8 pc=0x44723ad github.com/spf13/cobra.(*Command).execute(0xc0000b7680, {0x4cca830, 0x0, 0x0}) /Users/hyoban/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:830 +0x5f8 fp=0xc0001a9e88 sp=0xc0001a9dc8 pc=0x43b5ff8 github.com/spf13/cobra.(*Command).ExecuteC(0xc0000b6000) /Users/hyoban/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914 +0x2fc fp=0xc0001a9f40 sp=0xc0001a9e88 pc=0x43b653c github.com/spf13/cobra.(*Command).Execute(...) /Users/hyoban/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864 main.main() /Users/hyoban/Documents/GitHub/shiori/main.go:24 +0x1e fp=0xc0001a9f80 sp=0xc0001a9f40 pc=0x44c11de runtime.main() /usr/local/Cellar/go/1.17.1/libexec/src/runtime/proc.go:255 +0x227 fp=0xc0001a9fe0 sp=0xc0001a9f80 pc=0x4039847 runtime.goexit() /usr/local/Cellar/go/1.17.1/libexec/src/runtime/asm_amd64.s:1581 +0x1 fp=0xc0001a9fe8 sp=0xc0001a9fe0 pc=0x40671a1 goroutine 18 [select]: database/sql.(*DB).connectionOpener(0xc0000aab60, {0x490efd8, 0xc0000a4700}) /usr/local/Cellar/go/1.17.1/libexec/src/database/sql/sql.go:1196 +0x93 created by database/sql.OpenDB /usr/local/Cellar/go/1.17.1/libexec/src/database/sql/sql.go:794 +0x188 goroutine 20 [select]: github.com/patrickmn/go-cache.(*janitor).Run(0xc00009c600, 0x0) /Users/hyoban/go/pkg/mod/github.com/patrickmn/go-cache@v2.1.0+incompatible/cache.go:1079 +0x89 created by github.com/patrickmn/go-cache.runJanitor /Users/hyoban/go/pkg/mod/github.com/patrickmn/go-cache@v2.1.0+incompatible/cache.go:1099 +0xf2 goroutine 21 [select]: github.com/patrickmn/go-cache.(*janitor).Run(0xc00009c610, 0x0) /Users/hyoban/go/pkg/mod/github.com/patrickmn/go-cache@v2.1.0+incompatible/cache.go:1079 +0x89 created by github.com/patrickmn/go-cache.runJanitor /Users/hyoban/go/pkg/mod/github.com/patrickmn/go-cache@v2.1.0+incompatible/cache.go:1099 +0xf2 goroutine 22 [select]: github.com/patrickmn/go-cache.(*janitor).Run(0xc00009c620, 0x0) /Users/hyoban/go/pkg/mod/github.com/patrickmn/go-cache@v2.1.0+incompatible/cache.go:1079 +0x89 created by github.com/patrickmn/go-cache.runJanitor /Users/hyoban/go/pkg/mod/github.com/patrickmn/go-cache@v2.1.0+incompatible/cache.go:1099 +0xf2 exit status 2 ```
kerem closed this issue 2026-02-25 23:33:45 +03:00
Author
Owner

@codepiano commented on GitHub (Oct 26, 2021):

It seems that mod 'logrus' shiori used is not compatible with golang 1.17,It will panic directly when startup.

Since 'logrus' have not fixed this problem, you can use a lower version of go to compile shiori, if you want multiple golang version on your computer, you can do this:

go install golang.org/dl/go1.16.9@latest
go1.16.9 download
# build shiori with golang 1.16.9
go1.16.9 build

or install a lower version of golang directly.

<!-- gh-comment-id:951985709 --> @codepiano commented on GitHub (Oct 26, 2021): It seems that mod 'logrus' shiori used is not compatible with golang 1.17,It will panic directly when startup. Since 'logrus' have not fixed this problem, you can use a lower version of go to compile shiori, if you want multiple golang version on your computer, you can do this: ```shell go install golang.org/dl/go1.16.9@latest go1.16.9 download # build shiori with golang 1.16.9 go1.16.9 build ``` or install a lower version of golang directly.
Author
Owner

@hyoban commented on GitHub (Oct 27, 2021):

@codepiano it works , thanks .

<!-- gh-comment-id:952741060 --> @hyoban commented on GitHub (Oct 27, 2021): @codepiano it works , thanks .
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shiori#234
No description provided.