Coder Social home page Coder Social logo

go-sysvipc's People

Contributors

teepark avatar xaionaro avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

go-sysvipc's Issues

panic: runtime error: cgo argument has Go pointer to Go pointer

panic: runtime error: cgo argument has Go pointer to Go pointer

goroutine 38256 [running]:
gotask.ws/scm/ts/informer/vendor/github.com/teepark/go-sysvipc.(*SharedMemMount).Write.func1(0x7fb1d0364003, 0xc00058e010, 0x17, 0x5)
        /go/src/gotask.ws/scm/ts/informer/vendor/github.com/teepark/go-sysvipc/shm.go:151 +0x77
gotask.ws/scm/ts/informer/vendor/github.com/teepark/go-sysvipc.(*SharedMemMount).Write(0xc0002bc280, 0xc00058e010, 0x17, 0x10000, 0x0, 0x0, 0x0)
        /go/src/gotask.ws/scm/ts/informer/vendor/github.com/teepark/go-sysvipc/shm.go:151 +0x97
gotask.ws/scm/ts/informer/client/shm.(*informerChannel).GetInfo(0xc00058e000, 0x8e021d, 0xe, 0x8da896, 0x5, 0x0, 0xc000258e00, 0xc000066e20)
        /go/src/gotask.ws/scm/ts/informer/client/shm/get_info.go:53 +0x216
gotask.ws/scm/ts/informer/client/shm.(*Informer).GetInfo(0xc00025e120, 0x8e021d, 0xe, 0x8da896, 0x5, 0x20, 0x89b940, 0xc000348501)
        /go/src/gotask.ws/scm/ts/informer/client/shm/get_info.go:14 +0x73
command-line-arguments_test.BenchmarkShmConcurrent.func1(0xc0002bce40)
        /go/src/gotask.ws/scm/ts/informer/client/client_test.go:150 +0x79
testing.(*B).RunParallel.func1(0xc000024670, 0xc000024668, 0xc000024660, 0xc000020820, 0xc00025c030)
        /usr/local/go/src/testing/benchmark.go:626 +0x97
created by testing.(*B).RunParallel
        /usr/local/go/src/testing/benchmark.go:619 +0x192
exit status 2
FAIL    command-line-arguments  4.395s

get_info.go:53:

wn, err := m.Write(ch.buf[:n])

If I replace with:

	for i:=0; i<n; i++ {
		m.WriteByte(ch.buf[i])
	}

then there's no error.

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.