yayashanzei
免费用户 注册时间:2022-03-14 18:41
  • 回复主题 初始化错误
    2年前
    运行一会儿会报错
    panic: runtime error: invalid memory address or nil pointer dereference
    [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x8d2c0a]

    goroutine 43 [running]:
    github.com/jmoiron/sqlx.(*DB).Queryx(0x0, {0xfead7f, 0x10}, {0xc0003fa000, 0xc0003fa000, 0x0})
    /Volumes/code/GoPath/pkg/mod/github.com/jmoiron/sqlx@v1.3.1/sqlx.go:349 +0x2a
    github.com/jmoiron/sqlx.Select({0x18eff78, 0x0}, {0xe831c0, 0xc0000b82e8}, {0xfead7f, 0xc000164200}, {0xc0003fa000, 0x4cc3de, 0xc000164200})
    /Volumes/code/GoPath/pkg/mod/github.com/jmoiron/sqlx@v1.3.1/sqlx.go:674 +0x71
    github.com/jmoiron/sqlx.(*DB).Select(...)
    /Volumes/code/GoPath/pkg/mod/github.com/jmoiron/sqlx@v1.3.1/sqlx.go:317
    ifile/ifile-go-pro/controller/apis.LocalSaomiao()
    /Volumes/code/GoPath/src/ifile/ifile-go-pro/controller/apis/index.go:1551 +0xda
    github.com/robfig/cron/v3.FuncJob.Run(0xc0003c82d0)
    /Volumes/code/GoPath/pkg/mod/github.com/robfig/cron/v3@v3.0.1/cron.go:136 +0x1a
    github.com/robf
  • 回复主题 初始化错误
    2年前
    2.0.3和2.0.4都试了下,都是提示机器码错误
  • 回复主题 初始化错误
    2年前
    @admin centos6.5
1