gothinkster / golang-gin-realworld-example-app

Exemplary real world application built with Golang + Gin
https://realworld.io
MIT License
2.5k stars 495 forks source link

update to latest dependencies #30

Closed tonyalaribe closed 2 years ago

tonyalaribe commented 2 years ago

This PR upgrades the dependencies and ensures that the project still runs. Without upgrading dependencies, hitting any endpoint causes a panic:


unexpected fault address 0x360808085a175a75
fatal error: fault
[signal SIGSEGV: segmentation violation code=0x1 addr=0x360808085a175a75 pc=0x406233f]

goroutine 9 [running]:
runtime.throw({0x4791e02?, 0x0?})
        /usr/local/Cellar/go/1.18.1/libexec/src/runtime/panic.go:992 +0x71 fp=0xc0001db1a0 sp=0xc0001db170 pc=0x4035311
runtime.sigpanic()
        /usr/local/Cellar/go/1.18.1/libexec/src/runtime/signal_unix.go:825 +0x305 fp=0xc0001db1f0 sp=0xc0001db1a0 pc=0x404a7c5
aeshashbody()
        /usr/local/Cellar/go/1.18.1/libexec/src/runtime/asm_amd64.s:1343 +0x39f fp=0xc0001db1f8 sp=0xc0001db1f0 pc=0x406233f
runtime.mapiternext(0xc0003fbb00)
        /usr/local/Cellar/go/1.18.1/libexec/src/runtime/map.go:934 +0x2cb fp=0xc0001db268 sp=0xc0001db1f8 pc=0x40117cb
runtime.mapiterinit(0xc000180000?, 0xc000428dd0?, 0x0?)
        /usr/local/Cellar/go/1.18.1/libexec/src/runtime/map.go:861 +0x228 fp=0xc0001db288 sp=0xc0001db268 pc=0x40114a8
reflect.mapiterinit(0x4010dbd?, 0x46e76a0?, 0xc000428dd8?)
        /usr/local/Cellar/go/1.18.1/libexec/src/runtime/map.go:1373 +0x19 fp=0xc0001db2b0 sp=0xc0001db288 pc=0x405ec59
github.com/modern-go/reflect2.(*UnsafeMapType).UnsafeIterate(...)
        /Users/tonyalaribe/go/pkg/mod/github.com/modern-go/reflect2@v0.0.0-20180701023420-4b7aa43c6742/unsafe_map.go:112
github.com/json-iterator/go.(*sortKeysMapEncoder).Encode(0xc000451260, 0xc0000112e0, 0xc000439bc0)
        /Users/tonyalaribe/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_map.go:291 +0x225 fp=0xc0001db420 sp=0xc0001db2b0 pc=0x433bb05
github.com/json-iterator/go.(*onePtrEncoder).Encode(0xc000468000, 0xc000451050, 0xc0003fbb00?)
        /Users/tonyalaribe/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:219 +0x82 fp=0xc0001db458 sp=0xc0001db420 pc=0x4333fc2
github.com/json-iterator/go.(*Stream).WriteVal(0xc000439bc0, {0x470ed80, 0xc000451050})
        /Users/tonyalaribe/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:98 +0x158 fp=0xc0001db4c8 sp=0xc0001db458 pc=0x43332d8
github.com/json-iterator/go.(*frozenConfig).Marshal(0xc000280a00, {0x470ed80, 0xc000451050})
        /Users/tonyalaribe/go/pkg/mod/github.com/json-iterator/go@v1.1.10/config.go:299 +0xc9 fp=0xc0001db560 sp=0xc0001db4c8 pc=0x432a589
github.com/gin-gonic/gin/render.WriteJSON({0x2d225718, 0xc00045a000}, {0x470ed80, 0xc000451050})
        /Users/tonyalaribe/go/pkg/mod/github.com/gin-gonic/gin@v1.1.5-0.20170716034208-93b3a0d7ec95/render/json.go:46 +0x6a fp=0xc0001db598 sp=0xc0001db560 pc=0x44ccdca
github.com/gin-gonic/gin/render.JSON.Render(...)
        /Users/tonyalaribe/go/pkg/mod/github.com/gin-gonic/gin@v1.1.5-0.20170716034208-93b3a0d7ec95/render/json.go:34
github.com/gin-gonic/gin/render.(*JSON).Render(0xc00043ff20?, {0x2d225718?, 0xc00045a000?})
        <autogenerated>:1 +0x45 fp=0xc0001db5c8 sp=0xc0001db598 pc=0x44ce545
github.com/gin-gonic/gin.(*Context).Render(0xc00045a000, 0xc8, {0x48a7db0, 0xc00043ff20})
        /Users/tonyalaribe/go/pkg/mod/github.com/gin-gonic/gin@v1.1.5-0.20170716034208-93b3a0d7ec95/context.go:618 +0xe7 fp=0xc0001db5f8 sp=0xc0001db5c8 pc=0x44d2887