Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get error message when source installation #4383

Closed
gwpp opened this issue Apr 5, 2017 · 3 comments
Closed

Get error message when source installation #4383

gwpp opened this issue Apr 5, 2017 · 3 comments
Labels
💊 bug Something isn't working status: needs feedback Tell me more about it

Comments

@gwpp
Copy link

gwpp commented Apr 5, 2017

After input all information at installation-page,I get some error message like bug, help please, thanks

runtime error: invalid memory address or nil pointer dereference

/usr/lib/golang/src/runtime/panic.go:443 (0x42dae9)
	gopanic: reflectcall(nil, unsafe.Pointer(d.fn), deferArgs(d), uint32(d.siz), uint32(d.siz))
/usr/lib/golang/src/text/template/exec.go:133 (0x53f72e)
	errRecover: panic(e)
/usr/lib/golang/src/runtime/asm_amd64.s:472 (0x45d88e)
	call32: CALLFN(·call32, 32)
/usr/lib/golang/src/runtime/panic.go:443 (0x42dae9)
	gopanic: reflectcall(nil, unsafe.Pointer(d.fn), deferArgs(d), uint32(d.siz), uint32(d.siz))
/usr/lib/golang/src/runtime/panic.go:62 (0x42c1a5)
	panicmem: panic(memoryError)
/usr/lib/golang/src/runtime/sigpanic_unix.go:24 (0x4428fa)
	sigpanic: panicmem()
/opt/golang/src/github.com/gogits/gogs/vendor/github.com/microcosm-cc/bluemonday/sanitize.go:87 (0xcf27bf)
	(*Policy).sanitize: p.init()
/opt/golang/src/github.com/gogits/gogs/vendor/github.com/microcosm-cc/bluemonday/sanitize.go:52 (0xcf2465)
	(*Policy).Sanitize: return p.sanitize(strings.NewReader(s)).String()
/opt/golang/src/github.com/gogits/gogs/modules/markup/sanitizer.go:45 (0xa33b66)
	Sanitize: return sanitizer.policy.Sanitize(s)
/opt/golang/src/github.com/gogits/gogs/modules/template/template.go:128 (0x8da9c7)
	Str2html: return template.HTML(markup.Sanitize(raw))
/usr/lib/golang/src/runtime/asm_amd64.s:472 (0x45d88e)
	call32: CALLFN(·call32, 32)
/usr/lib/golang/src/reflect/value.go:435 (0x51d68d)
	Value.call: call(frametype, fn, args, uint32(frametype.size), uint32(retOffset))
/usr/lib/golang/src/reflect/value.go:303 (0x51c351)
	Value.Call: return v.call("Call", in)
/usr/lib/golang/src/text/template/exec.go:641 (0x546ba9)
	(*state).evalCall: result := fun.Call(argv)
/usr/lib/golang/src/text/template/exec.go:515 (0x544cd6)
	(*state).evalFunction: return s.evalCall(dot, function, cmd, name, args, final)
/usr/lib/golang/src/text/template/exec.go:412 (0x542b99)
	(*state).evalCommand: return s.evalFunction(dot, n, cmd, cmd.Args, final)
/usr/lib/golang/src/text/template/exec.go:385 (0x542420)
	(*state).evalPipeline: value = s.evalCommand(dot, cmd, value) // previous value is this one's final arg.
/usr/lib/golang/src/text/template/exec.go:215 (0x540685)
	(*state).walk: val := s.evalPipeline(dot, node.Pipe)
/usr/lib/golang/src/text/template/exec.go:223 (0x540bf1)
	(*state).walk: s.walk(dot, node)
/usr/lib/golang/src/text/template/exec.go:253 (0x540fb9)
	(*state).walkIfOrWith: s.walk(dot, list)
/usr/lib/golang/src/text/template/exec.go:220 (0x540a29)
	(*state).walk: s.walkIfOrWith(parse.NodeIf, dot, node.Pipe, node.List, node.ElseList)
/usr/lib/golang/src/text/template/exec.go:223 (0x540bf1)
	(*state).walk: s.walk(dot, node)
/usr/lib/golang/src/text/template/exec.go:368 (0x5421d0)
	(*state).walkTemplate: newState.walk(dot, tmpl.Root)
/usr/lib/golang/src/text/template/exec.go:228 (0x540b07)
	(*state).walk: s.walkTemplate(dot, node)
/usr/lib/golang/src/text/template/exec.go:223 (0x540bf1)
	(*state).walk: s.walk(dot, node)
/usr/lib/golang/src/text/template/exec.go:178 (0x53fe97)
	(*Template).Execute: state.walk(value, t.Root)
/usr/lib/golang/src/html/template/template.go:118 (0xa4aff7)
	(*Template).ExecuteTemplate: return tmpl.text.Execute(wr, data)
/opt/golang/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/render.go:520 (0x84b927)
	(*TplRender).execute: return buf, t.ExecuteTemplate(buf, name, data)
/opt/golang/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/render.go:555 (0x84c056)
	(*TplRender).renderBytes: out, err := r.execute(t, tplName, data)
/opt/golang/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/render.go:566 (0x84c208)
	(*TplRender).renderHTML: out, err := r.renderBytes(setName, tplName, data, htmlOpt...)
/opt/golang/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/render.go:586 (0x84c66e)
	(*TplRender).HTMLSet: r.renderHTML(status, setName, tplName, data, htmlOpt...)
/opt/golang/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/context.go:157 (0x841223)
	(*Context).renderHTML: ctx.Render.HTMLSet(status, setName, tplName, ctx.Data)
/opt/golang/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/context.go:167 (0x8414d5)
	(*Context).HTML: ctx.renderHTML(status, DEFAULT_TPL_SET_NAME, name, data...)
/opt/golang/src/github.com/gogits/gogs/modules/context/context.go:85 (0x8acd89)
	(*Context).HTML: ctx.Context.HTML(status, string(name))
/opt/golang/src/github.com/gogits/gogs/modules/context/context.go:100 (0x8acf09)
	(*Context).RenderWithErr: ctx.HTML(200, tpl)
/opt/golang/src/github.com/gogits/gogs/routers/install.go:219 (0x8e0697)
	InstallPost: ctx.RenderWithErr(ctx.Tr("install.invalid_db_setting", err), INSTALL, &f)
/usr/lib/golang/src/runtime/asm_amd64.s:476 (0x45db79)
	call512: CALLFN(·call512, 512)
/usr/lib/golang/src/reflect/value.go:435 (0x51d68d)
	Value.call: call(frametype, fn, args, uint32(frametype.size), uint32(retOffset))
/usr/lib/golang/src/reflect/value.go:303 (0x51c351)
	Value.Call: return v.call("Call", in)
/opt/golang/src/github.com/gogits/gogs/vendor/github.com/go-macaron/inject/inject.go:177 (0xcdd5e9)
	(*injector).callInvoke: return reflect.ValueOf(f).Call(in), nil
/opt/golang/src/github.com/gogits/gogs/vendor/github.com/go-macaron/inject/inject.go:137 (0xcdcdac)
	(*injector).Invoke: return inj.callInvoke(f, t, t.NumIn())
/opt/golang/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/context.go:121 (0x840d33)
	(*Context).run: vals, err := c.Invoke(c.handler())
/opt/golang/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/context.go:112 (0x840c1c)
	(*Context).Next: c.run()
/opt/golang/src/github.com/gogits/gogs/vendor/github.com/go-macaron/session/session.go:186 (0x837566)
	Sessioner.func1: ctx.Next()
/opt/golang/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/context.go:79 (0x840a92)
	ContextInvoker.Invoke: invoke(params[0].(*Context))
/opt/golang/src/github.com/gogits/gogs/vendor/github.com/go-macaron/inject/inject.go:157 (0xcdd1cc)
	(*injector).fastInvoke: return f.Invoke(in)
/opt/golang/src/github.com/gogits/gogs/vendor/github.com/go-macaron/inject/inject.go:135 (0xcdcce7)
	(*injector).Invoke: return inj.fastInvoke(v, t, t.NumIn())
/opt/golang/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/context.go:121 (0x840d33)
	(*Context).run: vals, err := c.Invoke(c.handler())
/opt/golang/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/context.go:112 (0x840c1c)
	(*Context).Next: c.run()
/opt/golang/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/recovery.go:161 (0x8580e2)
	Recovery.func1: c.Next()
/opt/golang/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/logger.go:40 (0x844c4e)
	LoggerInvoker.Invoke: invoke(params[0].(*Context), params[1].(*log.Logger))
/opt/golang/src/github.com/gogits/gogs/vendor/github.com/go-macaron/inject/inject.go:157 (0xcdd1cc)
	(*injector).fastInvoke: return f.Invoke(in)
/opt/golang/src/github.com/gogits/gogs/vendor/github.com/go-macaron/inject/inject.go:135 (0xcdcce7)
	(*injector).Invoke: return inj.fastInvoke(v, t, t.NumIn())
/opt/golang/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/context.go:121 (0x840d33)
	(*Context).run: vals, err := c.Invoke(c.handler())
/opt/golang/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/context.go:112 (0x840c1c)
	(*Context).Next: c.run()
/opt/golang/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/logger.go:52 (0x856bc9)
	Logger.func1: ctx.Next()
/opt/golang/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/logger.go:40 (0x844c4e)
	LoggerInvoker.Invoke: invoke(params[0].(*Context), params[1].(*log.Logger))
/opt/golang/src/github.com/gogits/gogs/vendor/github.com/go-macaron/inject/inject.go:157 (0xcdd1cc)
	(*injector).fastInvoke: return f.Invoke(in)
/opt/golang/src/github.com/gogits/gogs/vendor/github.com/go-macaron/inject/inject.go:135 (0xcdcce7)
	(*injector).Invoke: return inj.fastInvoke(v, t, t.NumIn())
/opt/golang/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/context.go:121 (0x840d33)
	(*Context).run: vals, err := c.Invoke(c.handler())
/opt/golang/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/router.go:187 (0x859a74)
	(*Router).Handle.func1: c.run()
/opt/golang/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/router.go:296 (0x84fe1d)
	(*Router).ServeHTTP: h(rw, req, p)
/opt/golang/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/macaron.go:220 (0x846aca)
	(*Macaron).ServeHTTP: m.Router.ServeHTTP(rw, req)
/usr/lib/golang/src/net/http/server.go:2081 (0x7e11ae)
	serverHandler.ServeHTTP: handler.ServeHTTP(rw, req)
/usr/lib/golang/src/net/http/server.go:1472 (0x7ddb3e)
	(*conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req)
/usr/lib/golang/src/runtime/asm_amd64.s:1998 (0x45ff81)
	goexit: BYTE	$0x90	// NOP
@unknwon
Copy link
Member

unknwon commented Apr 5, 2017

Version?

@unknwon unknwon added the 💊 bug Something isn't working label Apr 5, 2017
@unknwon
Copy link
Member

unknwon commented Apr 5, 2017

Patch has pushed to fix this issue, please test on develop branch or https://try.gogs.io.

@unknwon unknwon added the status: needs feedback Tell me more about it label Apr 5, 2017
@unknwon unknwon added this to the 0.12 milestone Apr 5, 2017
@unknwon unknwon closed this as completed Apr 5, 2017
@unknwon
Copy link
Member

unknwon commented Apr 5, 2017

You can try latest 0.11.4 release: https://github.com/gogits/gogs/releases/tag/v0.11.4

@unknwon unknwon removed this from the 0.13 milestone Nov 26, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
💊 bug Something isn't working status: needs feedback Tell me more about it
Projects
None yet
Development

No branches or pull requests

2 participants