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

Capstan crashes after a fresh capstan install #171

Open
ailisp opened this issue Sep 5, 2018 · 7 comments
Open

Capstan crashes after a fresh capstan install #171

ailisp opened this issue Sep 5, 2018 · 7 comments

Comments

@ailisp
Copy link

ailisp commented Sep 5, 2018

In Mac OS X 10.13.4, download and run capstan but capstan directly crashes. Any clue? Thank you!

Bos-MacBook-Pro:vce byao$ curl https://raw.githubusercontent.com/cloudius-systems/capstan/master/scripts/download | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   590  100   590    0     0   3987      0 --:--:-- --:--:-- --:--:--  4013
Downloading Capstan binary: http://osv.capstan.s3.amazonaws.com/capstan/v0.1.8/darwin_amd64/capstan
######################################################################## 100.0%
Bos-MacBook-Pro:vce byao$ capstan
failed MSpanList_Insert 0x660000 0x31c6c322a4b3a 0x0
fatal error: MSpanList_Insert

runtime stack:
runtime.throw(0x5d817b)
	/home/penberg/golang/src/pkg/runtime/panic.c:520 +0x69
runtime.MSpanList_Insert(0x5f13c8, 0x660000)
	/home/penberg/golang/src/pkg/runtime/mheap.c:618 +0x8a
MHeap_FreeLocked(0x5ed3c0, 0x660000)
	/home/penberg/golang/src/pkg/runtime/mheap.c:447 +0x1a6
MHeap_Grow(0x5ed3c0, 0x10)
	/home/penberg/golang/src/pkg/runtime/mheap.c:341 +0x1ae
MHeap_AllocLocked(0x5ed3c0, 0x1, 0x2)
	/home/penberg/golang/src/pkg/runtime/mheap.c:222 +0x379
runtime.MHeap_Alloc(0x5ed3c0, 0x1, 0x10000000002)
	/home/penberg/golang/src/pkg/runtime/mheap.c:178 +0x7b
MCentral_Grow(0x5f57d8)
	/home/penberg/golang/src/pkg/runtime/mcentral.c:265 +0x89
runtime.MCentral_CacheSpan(0x5f57d8)
	/home/penberg/golang/src/pkg/runtime/mcentral.c:84 +0x14b
runtime.MCache_Refill(0x65c000, 0x2)
	/home/penberg/golang/src/pkg/runtime/mcache.c:78 +0x119
runtime.mallocgc(0x10, 0x0, 0x10)
	/home/penberg/golang/src/pkg/runtime/malloc.goc:152 +0x30e
runtime.malloc(0x10)
	/home/penberg/golang/src/pkg/runtime/malloc.goc:264 +0x39
runtime.mallocinit()
	/home/penberg/golang/src/pkg/runtime/malloc.goc:575 +0x2a5
runtime.schedinit()
	/home/penberg/golang/src/pkg/runtime/proc.c:150 +0x36
_rt0_go()
	/home/penberg/golang/src/pkg/runtime/asm_amd64.s:91 +0x114
@z3ndrag0n
Copy link

See issue #930

@johnrichardrinehart
Copy link

@ailisp I think @z3ndrag0n means #930 of osv.

@ailisp
Copy link
Author

ailisp commented Dec 16, 2020

I haven't try, but comments there:

This is not an OSv bug, but rather a Capstan bug which should be reported in https://github.com/cloudius-systems/capstan/issues
There is also a newer, more maintained, fork of Capstan in: https://github.com/mikelangelo-project/capstan

So I guess leave this issue open, and wait someone fix it (If mikelangelo-project's fork works, probably just need to merge it)

@johnrichardrinehart
Copy link

Funny. The "more maintained" version of Capstan hasn't been touched since September, 2020.

@wkozaczuk
Copy link
Collaborator

@ailisp @johnrichardrinehart This is actually the official maintained repo of capstan. At some point, it was indeed forked as mikelangelo capstan but it has been since merged back into this repo. Unfortunately, I am one of very few developers that maintain OSv and occasionally I also contribute to capstan. We are looking for volunteers :-)

Anyway as of a couple of releases ago, the latest pre-built version of capstan can be downloaded directly from github - https://github.com/cloudius-systems/capstan/wiki/Capstan-Installation (the 1st paragraph). Please let me know if it works.

Finally, I think this is an old issue can be closed. BTW I need to find some time to prune the existing issues and close all obsolete ones like this one.

@johnrichardrinehart
Copy link

@wkozaczuk It sounds like you need some help, and I know go, but I've never done any OS development, so I'm a little hesitant to jump into a kernel project. Can you give me a starter task?

Also, I'm fairly busy these days, so you'll have to be very understanding with my ability to produce.

@wkozaczuk
Copy link
Collaborator

wkozaczuk commented Dec 16, 2020

BTW this readme has many useful links - https://github.com/cloudius-systems/capstan#capstan. Recently somebody went through some pains of installing and using capstan on Mac mostly related to QEMU - #185

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

4 participants