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

Couldn't start on Linux or Mac. #5

Open
nostdm opened this issue Dec 6, 2017 · 1 comment
Open

Couldn't start on Linux or Mac. #5

nostdm opened this issue Dec 6, 2017 · 1 comment

Comments

@nostdm
Copy link

nostdm commented Dec 6, 2017

I tried running the program on Mac and this is the output I received:

git-mirror_0.1.0_darwin_amd64 λ ./git-mirror config.toml
failed MSpanList_Insert 0x4b7000 0x8ed55520d9c9 0x0
fatal error: MSpanList_Insert

runtime stack:
runtime.throw(0x436f0b)
	/home/beefsack/Development/go/src/runtime/panic.go:491 +0xad fp=0x7ffeefbff530 sp=0x7ffeefbff500
runtime.MSpanList_Insert(0x45cf68, 0x4b7000)
	/home/beefsack/Development/go/src/runtime/mheap.c:692 +0x8f fp=0x7ffeefbff558 sp=0x7ffeefbff530
MHeap_FreeSpanLocked(0x459b60, 0x4b7000, 0x100)
	/home/beefsack/Development/go/src/runtime/mheap.c:583 +0x163 fp=0x7ffeefbff598 sp=0x7ffeefbff558
MHeap_Grow(0x459b60, 0x8, 0x0)
	/home/beefsack/Development/go/src/runtime/mheap.c:420 +0x1a8 fp=0x7ffeefbff5d8 sp=0x7ffeefbff598
MHeap_AllocSpanLocked(0x459b60, 0x1, 0x0)
	/home/beefsack/Development/go/src/runtime/mheap.c:298 +0x365 fp=0x7ffeefbff618 sp=0x7ffeefbff5d8
mheap_alloc(0x459b60, 0x1, 0x12, 0x0)
	/home/beefsack/Development/go/src/runtime/mheap.c:190 +0x121 fp=0x7ffeefbff640 sp=0x7ffeefbff618
runtime.MHeap_Alloc(0x459b60, 0x1, 0x10000000012, 0x10a39)
	/home/beefsack/Development/go/src/runtime/mheap.c:240 +0x66 fp=0x7ffeefbff678 sp=0x7ffeefbff640
MCentral_Grow(0x4618d8, 0x0)
	/home/beefsack/Development/go/src/runtime/mcentral.c:197 +0x8b fp=0x7ffeefbff6e0 sp=0x7ffeefbff678
runtime.MCentral_CacheSpan(0x4618d8, 0x0)
	/home/beefsack/Development/go/src/runtime/mcentral.c:85 +0x167 fp=0x7ffeefbff718 sp=0x7ffeefbff6e0
runtime.MCache_Refill(0x4b3000, 0x12, 0x0)
	/home/beefsack/Development/go/src/runtime/mcache.c:90 +0xa0 fp=0x7ffeefbff740 sp=0x7ffeefbff718
runtime.mcacheRefill_m()
	/home/beefsack/Development/go/src/runtime/malloc.c:368 +0x57 fp=0x7ffeefbff760 sp=0x7ffeefbff740
runtime.onM(0x367240)
	/home/beefsack/Development/go/src/runtime/asm_amd64.s:273 +0x9a fp=0x7ffeefbff768 sp=0x7ffeefbff760
runtime.mallocgc(0x120, 0x2d1080, 0x0, 0x0)
	/home/beefsack/Development/go/src/runtime/malloc.go:178 +0x849 fp=0x7ffeefbff818 sp=0x7ffeefbff768
runtime.newobject(0x2d1080, 0x4b3000)
	/home/beefsack/Development/go/src/runtime/malloc.go:353 +0x49 fp=0x7ffeefbff840 sp=0x7ffeefbff818
runtime.newG(0x29d0a)
	/home/beefsack/Development/go/src/runtime/proc.go:233 +0x2a fp=0x7ffeefbff858 sp=0x7ffeefbff840
allocg(0x44a640)
	/home/beefsack/Development/go/src/runtime/proc.c:925 +0x1f fp=0x7ffeefbff868 sp=0x7ffeefbff858
runtime.malg(0x8000, 0x44a800)
	/home/beefsack/Development/go/src/runtime/proc.c:2106 +0x1f fp=0x7ffeefbff898 sp=0x7ffeefbff868
runtime.mpreinit(0x44ae20)
	/home/beefsack/Development/go/src/runtime/os_darwin.c:137 +0x27 fp=0x7ffeefbff8b0 sp=0x7ffeefbff898
mcommoninit(0x44ae20)
	/home/beefsack/Development/go/src/runtime/proc.c:201 +0xc9 fp=0x7ffeefbff8d8 sp=0x7ffeefbff8b0
runtime.schedinit()
	/home/beefsack/Development/go/src/runtime/proc.c:138 +0x55 fp=0x7ffeefbff900 sp=0x7ffeefbff8d8
runtime.rt0_go(0x7ffeefbff930, 0x2, 0x7ffeefbff930, 0x0, 0x2, 0x7ffeefbffab0, 0x7ffeefbffabd, 0x0, 0x7ffeefbffac9, 0x7ffeefbffb05, ...)
	/home/beefsack/Development/go/src/runtime/asm_amd64.s:95 +0x116 fp=0x7ffeefbff908 sp=0x7ffeefbff900

Then I tried running the program on Linux and I kept getting this output (even though the config.toml file is in the same dirrectory):

bash-4.4# ./git-mirror config.toml
bash: /app/git-mirror: No such file or directory
bash-4.4# git-mirror ./config.toml
bash: /app/git-mirror: No such file or directory
bash-4.4# git-mirror /app/config.toml
bash: /app/git-mirror: No such file or directory

My config file has this structure:

[[Repo]]
Origin   = "https://github.com/neovim/neovim.git"
Interval = "5h"
BasePath = "/mirrors"
ListenAddr   = ":8080"

UPDATE:

I built it from source and it works. Most likely something wrong with the release versions.

@beefsack
Copy link
Owner

beefsack commented Dec 7, 2017

Hi @nostdm, thanks for the report.

Could you please have a look at golang/go#17182 and see if that fixes the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants