GithubHelp home page GithubHelp logo

mux9p's Introduction

mux9p Go Reference Go Report Card

Overview

This is a Go package for multiplexing a 9P service. It's a port of 9pserve.

Installation

go get github.com/fhs/mux9p

mux9p's People

Contributors

fhs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

anima-os-dev

mux9p's Issues

Concurrent map write causes panic

fatal error: concurrent map writes

https://github.com/fhs/mux9p

goroutine 148 [running]:
runtime.throw(0x43855ed, 0x15)
	/Users/kyle.nusbaum/sdk/go1.14.11/src/runtime/panic.go:1116 +0x72 fp=0xc000387d78 sp=0xc000387d48 pc=0x4034892
runtime.mapassign(0x431c160, 0xc000390030, 0xc000296598, 0x464b260)
	/Users/kyle.nusbaum/sdk/go1.14.11/src/runtime/map.go:585 +0x59d fp=0xc000387df8 sp=0xc000387d78 pc=0x4010c5d
github.com/fhs/mux9p.(*Config).conninthread(0xc000076000, 0xc0003a4000)
	/Users/kyle.nusbaum/go/pkg/mod/github.com/fhs/[email protected]/mux9p.go:240 +0x20f fp=0xc000387fd0 sp=0xc000387df8 pc=0x418597f
runtime.goexit()
	/Users/kyle.nusbaum/sdk/go1.14.11/src/runtime/asm_amd64.s:1373 +0x1 fp=0xc000387fd8 sp=0xc000387fd0 pc=0x4063b81
created by github.com/fhs/mux9p.(*Config).listenthread
	/Users/kyle.nusbaum/go/pkg/mod/github.com/fhs/[email protected]/mux9p.go:203 +0x4a

crash due to concurrent map read and map write

Full stack trace: crash-20190321-mux9p.txt

fatal error: concurrent map read and map write

goroutine 138 [running]:
runtime.throw(0x6c7984, 0x21)
        /home/big/go/src/runtime/panic.go:617 +0x72 fp=0xc0001c6650 sp=0xc0001c6620 pc=0x42cfb2
runtime.mapaccess2(0x669260, 0xc0004b8600, 0xc0001c66ce, 0xc0001c66e8, 0x46ac67)
        /home/big/go/src/runtime/map.go:472 +0x272 fp=0xc0001c6698 sp=0xc0001c6650 pc=0x40ee52
github.com/fhs/mux9p.(*Config).deleteTag(0xc00009cab0, 0xc0004b8600, 0x2, 0xc0002322c0, 0xb)
        /home/fhs/go/src/github.com/fhs/mux9p/mux9p.go:767 +0x55 fp=0xc0001c6718 sp=0xc0001c6698 pc=0x5e05a5
github.com/fhs/mux9p.(*Config).connoutthread(0xc00009cab0, 0xc00039e230)
        /home/fhs/go/src/github.com/fhs/mux9p/mux9p.go:481 +0x13a fp=0xc0001c67d0 sp=0xc0001c6718 pc=0x5de82a
runtime.goexit()
        /home/big/go/src/runtime/asm_amd64.s:1337 +0x1 fp=0xc0001c67d8 sp=0xc0001c67d0 pc=0x459591
created by github.com/fhs/mux9p.(*Config).listenthread
        /home/fhs/go/src/github.com/fhs/mux9p/mux9p.go:204 +0x79

debug with http.FileSystem

Would it make sense for 9serve to also serve an http.FileSystem on another port for looking around?
Or are there other methods for debugging that you use?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.