You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixeschzyer#214
Even under a further-reaching concurrency redesign, it makes sense to use
sync/atomic for these because they are modified from signal handlers.
slingamn
added a commit
to slingamn/readline
that referenced
this issue
Mar 5, 2023
Fixeschzyer#214
Even under a further-reaching concurrency redesign, it makes sense to use
sync/atomic for these because they are modified from signal handlers.
WARNING: DATA RACE
Write at 0x00c0000ce1f0 by goroutine 35:
github.com/chzyer/readline.(*opSearch).OnWidthChange()
/home/archie/go/pkg/mod/github.com/chzyer/[email protected]/search.go:46 +0xc9
github.com/chzyer/readline.NewOperation.func1()
/home/archie/go/pkg/mod/github.com/chzyer/[email protected]/operation.go:85 +0x9d
github.com/chzyer/readline.DefaultOnWidthChanged.func1.1()
/home/archie/go/pkg/mod/github.com/chzyer/[email protected]/utils_unix.go:79 +0x41
Previous write at 0x00c0000ce1f0 by goroutine 132:
github.com/chzyer/readline.newOpSearch()
/home/archie/go/pkg/mod/github.com/chzyer/[email protected]/search.go:36 +0x3f7
github.com/chzyer/readline.(*Operation).SetConfig()
/home/archie/go/pkg/mod/github.com/chzyer/[email protected]/operation.go:477 +0x34c
github.com/chzyer/readline.NewOperation()
/home/archie/go/pkg/mod/github.com/chzyer/[email protected]/operation.go:78 +0x315
github.com/chzyer/readline.(*Terminal).Readline()
/home/archie/go/pkg/mod/github.com/chzyer/[email protected]/terminal.go:95 +0x5b
github.com/chzyer/readline.NewEx()
/home/archie/go/pkg/mod/github.com/chzyer/[email protected]/readline.go:169 +0x41
github.com/chzyer/readline.New()
/home/archie/go/pkg/mod/github.com/chzyer/[email protected]/readline.go:181 +0xee
jasmgo/app.handleReadLine()
The text was updated successfully, but these errors were encountered: