rakyll / gom

A visual interface to work with runtime profiling data for Go
Apache License 2.0
1.29k stars 42 forks source link

An Crash #16

Open syslot opened 8 years ago

syslot commented 8 years ago

Hi, just now I got a crash while testing gom, here is the panic stack.

rakyll commented 8 years ago

Are there any steps to reproduce the crash?

syslot commented 8 years ago

Here is the source, run it and gom

package main

import (
    "log"
    "net/http"

    _ "github.com/rakyll/gom/http"
)

func handler(rw http.ResponseWriter, req *http.Request) {
    rw.Write([]byte(`ok`))
}

func main() {
    go func() {
        http.HandleFunc("/test", handler)
        http.ListenAndServe("localhost:8087", nil)
    }()
    log.Println(http.ListenAndServe("localhost:6060", nil))
}
rakyll commented 8 years ago

I was not able to reproduce it yet but since it is coming from github.com/gizak/termui.Init, maybe we should file it against the termui repo.