Ich habe eine Frühjahrsputz in meinem Code durch Aufteilen in mehr Go-Pakete, hauptsächlich zur Wiederverwendbarkeit (jeder "Baustein" in seinem eigenen Paket)."Nosplit Stack Overflow" beim Erstellen Go-Projekt?
Nach dem Import Fehler behoben, entdeckte ich, dass mein Programm plötzlich nicht mehr bauen. Wenn Sie "go build" ausführen, wird nosplit stack overflow Fehler zurückgegeben.
Roboter main.init: nosplit Stapelüberlauf
120 guaranteed after split check in main.init 112 on entry to robot/web.init 104 on entry to robot/controller.init 96 on entry to robot/slam.init 88 on entry to robot/slam/hector.init 80 on entry to hectormapping/map/mapimages.init 72 on entry to hectormapping/map/maprep.init 64 on entry to hectormapping/map/mapproccontainer.init 56 on entry to hectormapping/scanmatcher.init 48 on entry to hectormapping/map/gridmap/occbase.init 40 on entry to hectormapping/map/gridmap/base.init 32 on entry to hectormapping/map/gridmap.init 24 on entry to github.com/skelterjohn/go%2ematrix.init 16 on entry to math.init 8 on entry to math.init┬À1 0 on entry to runtime.panicindex -8 on entry to runtime.morestack00
runtime.main: nosplit Stapelüberlauf
120 guaranteed after split check in runtime.main 128 after runtime.main uses -8 120 on entry to main.init 112 on entry to robot/web.init 104 on entry to robot/controller.init 96 on entry to robot/slam.init 88 on entry to robot/slam/hector.init 80 on entry to hectormapping/map/mapimages.init 72 on entry to hectormapping/map/maprep.init 64 on entry to hectormapping/map/mapproccontainer.init 56 on entry to hectormapping/scanmatcher.init 48 on entry to hectormapping/map/gridmap/occbase.init 40 on entry to hectormapping/map/gridmap/base.init 32 on entry to hectormapping/map/gridmap.init 24 on entry to github.com/skelterjohn/go%2ematrix.init 16 on entry to math.init 8 on entry to math.init┬À1 0 on entry to runtime.panicindex -8 on entry to runtime.morestack00
Wer weiß, worum es geht? Ich kann nicht viel Dokumentation darüber finden, was es verursachen könnte, außer dass dies in einigen Fällen a bug that supposedly is fixed ist.
des Codes Einige wurde im "src" -Ordner in einen neuen Ordner aufgeteilt, so dass die Dateistruktur ist jetzt:
src/robot/main.go (main() lives here)
src/robot/(...) (application-specific packages)
src/hectormapping/(...) (stand-alone package used in "robot")
I Go 1.0.3 unter Windows 7 (x64) verwenden.
Haben Sie versucht, mit der Spitze eher als stabil? –
@ NickCraig-Wood Nein, gibt es eine einfache Möglichkeit, dies in Windows zu tun? – Mikke
Ich weiß nicht, eine 'msi' für Go-Tipp, aber Sie können [build from source] (http://golang.org/doc/install/source), wenn Sie einen Compiler leicht genug haben. –