Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal error: concurrent map writes caused by accessing chifra daemon api server via http #2755

Closed
danrmiller opened this issue Mar 5, 2023 · 0 comments
Assignees

Comments

@danrmiller
Copy link

commit 0f002d7 (HEAD -> master, tag: v0.55.0-beta)

fatal error: concurrent map writes                                                                                                     
                                                                   
goroutine 774 [running]:                                                                                                               
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/output/helpers.SetEnabledForCmds(...)                                        
        /opt/ethereum/trueblocks-core/src/apps/chifra/pkg/output/helpers/helpers.go:20
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/export.ServeExport({0xe720a0?, 0xc00019a000}, 0xc00023c0f0?)            
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/export/output.go:36 +0x51
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/daemon.RouteExport({0xe720a0, 0xc00019a000}, 0x48c8d7?)                 
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/daemon/routes.go:56 +0x2c
net/http.HandlerFunc.ServeHTTP(0x410b7f?, {0xe720a0?, 0xc00019a000?}, 0x0?)                                                            
        /usr/local/go/src/net/http/server.go:2109 +0x2f                                                                                
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/daemon.Logger.func1({0xe720a0, 0xc00019a000}, 0xc0003a0400)             
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/daemon/routes.go:320 +0xcd                                              
net/http.HandlerFunc.ServeHTTP(0xe720a0?, {0xe720a0?, 0xc00019a000?}, 0xe72800?)                                                       
        /usr/local/go/src/net/http/server.go:2109 +0x2f                                                                                
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/daemon.CorsHandler.func1({0xe720a0, 0xc00019a000}, 0xc00055a270?)       
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/daemon/routes.go:305 +0x5c                                              
net/http.HandlerFunc.ServeHTTP(0xc0003a0300?, {0xe720a0?, 0xc00019a000?}, 0x800?)                                                                                                                                                                                             
        /usr/local/go/src/net/http/server.go:2109 +0x2f                                                                                
github.com/gorilla/mux.(*Router).ServeHTTP(0xc0001d6000, {0xe720a0, 0xc00019a000}, 0xc00015a100)                                       
        /root/go/pkg/mod/github.com/gorilla/[email protected]/mux.go:210 +0x1cf                                                               
net/http.serverHandler.ServeHTTP({0xc0001d4090?}, {0xe720a0, 0xc00019a000}, 0xc00015a100)                                              
        /usr/local/go/src/net/http/server.go:2947 +0x30c                                                                               
net/http.(*conn).serve(0xc000128e60, {0xe72800, 0xc0001d5830})                                                                         
        /usr/local/go/src/net/http/server.go:1991 +0x607
created by net/http.(*Server).Serve
        /usr/local/go/src/net/http/server.go:3102 +0x4db

goroutine 1 [IO wait]:                                                                                                                                                                                                                                                        
internal/poll.runtime_pollWait(0x7f7c09241768, 0x72)                                                                                                                                                                                                                          
        /usr/local/go/src/runtime/netpoll.go:305 +0x89                                                                                                                                                                                                                        
internal/poll.(*pollDesc).wait(0xc000030b00?, 0x6?, 0x0)                                                                                                                                                                                                                      
        /usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x32                                                                                                                                                                                                           
internal/poll.(*pollDesc).waitRead(...)                                                                                                                                                                                                                                       
        /usr/local/go/src/internal/poll/fd_poll_runtime.go:89                                                                                                                                                                                                                 
internal/poll.(*FD).Accept(0xc000030b00)                                                                                                                                                                                                                                      
        /usr/local/go/src/internal/poll/fd_unix.go:614 +0x234
net.(*netFD).accept(0xc000030b00)
        /usr/local/go/src/net/fd_unix.go:172 +0x35
net.(*TCPListener).accept(0xc0001ae240)
        /usr/local/go/src/net/tcpsock_posix.go:142 +0x28
net.(*TCPListener).Accept(0xc0001ae240)
        /usr/local/go/src/net/tcpsock.go:288 +0x3d
net/http.(*Server).Serve(0xc000368000, {0xe71e90, 0xc0001ae240})
        /usr/local/go/src/net/http/server.go:3070 +0x385
net/http.(*Server).ListenAndServe(0xc000368000)
        /usr/local/go/src/net/http/server.go:2999 +0x7d
net/http.ListenAndServe(...)
        /usr/local/go/src/net/http/server.go:3255
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/daemon.(*DaemonOptions).DaemonInternal(0x126a0e0)
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/daemon/output.go:97 +0xb74
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/daemon.RunDaemon(0xb53420?, {0x1304ec8?, 0xc172e8?, 0x8?})
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/daemon/output.go:38 +0x78
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/file.RunWithFileSupport.func1(0x126f040?, {0x1304ec8?, 0x0, 0x0})
        /opt/ethereum/trueblocks-core/src/apps/chifra/pkg/file/commands.go:110 +0x18c
github.com/spf13/cobra.(*Command).execute(0x126f040, {0x1304ec8, 0x0, 0x0})
        /root/go/pkg/mod/github.com/spf13/[email protected]/command.go:856 +0x67c
github.com/spf13/cobra.(*Command).ExecuteC(0x126d4c0)
        /root/go/pkg/mod/github.com/spf13/[email protected]/command.go:974 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
        /root/go/pkg/mod/github.com/spf13/[email protected]/command.go:902
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/cmd.Execute()
        /opt/ethereum/trueblocks-core/src/apps/chifra/cmd/root.go:25 +0x25
main.main()
        /opt/ethereum/trueblocks-core/src/apps/chifra/main.go:29 +0x25

goroutine 6 [chan receive]:
github.com/panjf2000/ants/v2.(*Pool).purgePeriodically(0xc0000cc310)
        /root/go/pkg/mod/github.com/panjf2000/ants/[email protected]/pool.go:69 +0x8b
created by github.com/panjf2000/ants/v2.NewPool
        /root/go/pkg/mod/github.com/panjf2000/ants/[email protected]/pool.go:137 +0x365

goroutine 34 [chan receive, 12 minutes]:
github.com/rjeczalik/notify.(*nonrecursiveTree).dispatch(0xc00020e300, 0xc000192000?)
        /root/go/pkg/mod/github.com/rjeczalik/[email protected]/tree_nonrecursive.go:36 +0x45
created by github.com/rjeczalik/notify.newNonrecursiveTree
        /root/go/pkg/mod/github.com/rjeczalik/[email protected]/tree_nonrecursive.go:29 +0x16a

goroutine 35 [chan receive, 12 minutes]:
github.com/rjeczalik/notify.(*nonrecursiveTree).internal(0xc00020e300, 0xc00020e2a0)
        /root/go/pkg/mod/github.com/rjeczalik/[email protected]/tree_nonrecursive.go:81 +0x5a
created by github.com/rjeczalik/notify.newNonrecursiveTree
        /root/go/pkg/mod/github.com/rjeczalik/[email protected]/tree_nonrecursive.go:30 +0x1be

goroutine 36 [select]:
go.opencensus.io/stats/view.(*worker).start(0xc000225780)
        /root/go/pkg/mod/[email protected]/stats/view/worker.go:276 +0xad
created by go.opencensus.io/stats/view.init.0
        /root/go/pkg/mod/[email protected]/stats/view/worker.go:34 +0x8d

goroutine 29 [select]:
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/daemon.(*ConnectionPool).run(0xc000219cc0)
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/daemon/handle_sockets.go:106 +0xd4
created by github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/daemon.RunWebsocketPool
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/daemon/handle_sockets.go:148 +0x5d

goroutine 716 [IO wait]:
internal/poll.runtime_pollWait(0x7f7c09240e08, 0x72)
        /usr/local/go/src/runtime/netpoll.go:305 +0x89
internal/poll.(*pollDesc).wait(0xc000158300?, 0xc00100c891?, 0x1)
        /usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x32
internal/poll.(*pollDesc).waitRead(...)
        /usr/local/go/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0xc000158300, {0xc00100c891, 0xff76f, 0xff76f})
        /usr/local/go/src/internal/poll/fd_unix.go:167 +0x25a
os.(*File).read(...)
        /usr/local/go/src/os/file_posix.go:31
os.(*File).Read(0xc000014008, {0xc00100c891?, 0xff770?, 0x0?})
        /usr/local/go/src/os/file.go:119 +0x5e
bufio.(*Scanner).Scan(0xc000072f08)
        /usr/local/go/src/bufio/scan.go:214 +0x876
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/daemon.scanForProgress({0xe6e0a0?, 0xc000014008?}, 0xc000072fb8)
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/daemon/handle_calls.go:264 +0xf2
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/daemon.CallOne.func2()
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/daemon/handle_calls.go:135 +0x69
created by github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/daemon.CallOne                                                                                                                                                                                      
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/daemon/handle_calls.go:134 +0x123e                                                                                                                                                                             
                                                                                                                                                                                                                                                                              
goroutine 717 [IO wait]:
internal/poll.runtime_pollWait(0x7f7c09240b38, 0x72)
        /usr/local/go/src/runtime/netpoll.go:305 +0x89
internal/poll.(*pollDesc).wait(0xc000158660?, 0xc0064732af?, 0x1)
        /usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x32
internal/poll.(*pollDesc).waitRead(...)
        /usr/local/go/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0xc000158660, {0xc0064732af, 0xecd51, 0xecd51})
        /usr/local/go/src/internal/poll/fd_unix.go:167 +0x25a
os.(*File).read(...)
        /usr/local/go/src/os/file_posix.go:31
os.(*File).Read(0xc000014038, {0xc0064732af?, 0xc000224080?, 0xc00bbf4ea0?})
        /usr/local/go/src/os/file.go:119 +0x5e
bytes.(*Buffer).ReadFrom(0xc00055a0f0, {0xe6e0a0, 0xc000014038})
        /usr/local/go/src/bytes/buffer.go:202 +0x98
io.copyBuffer({0xe6d160, 0xc00055a0f0}, {0xe6e0a0, 0xc000014038}, {0x0, 0x0, 0x0})
        /usr/local/go/src/io/io.go:413 +0x14b
io.Copy(...)
        /usr/local/go/src/io/io.go:386
os/exec.(*Cmd).writerDescriptor.func1()
        /usr/local/go/src/os/exec/exec.go:407 +0x3a
os/exec.(*Cmd).Start.func1(0xc0001d5830?)
        /usr/local/go/src/os/exec/exec.go:544 +0x25
created by os/exec.(*Cmd).Start
        /usr/local/go/src/os/exec/exec.go:543 +0x73e

goroutine 757 [syscall]:                                                                                                                                                                                                                                                      
syscall.Syscall6(0x2?, 0x2?, 0xc000237520?, 0x200000003?, 0xc000237520?, 0xc000044a00?, 0x480a47?)                                                                                                                                                                            
        /usr/local/go/src/syscall/syscall_linux.go:90 +0x36                                                                                                                                                                                                                   
os.(*Process).blockUntilWaitable(0xc00002b3e0)                                                                                                                                                                                                                                
        /usr/local/go/src/os/wait_waitid.go:32 +0x87                                                                                                                                                                                                                          
os.(*Process).wait(0xc00002b3e0)                                                                                                                                                                                                                                              
        /usr/local/go/src/os/exec_unix.go:22 +0x28                                                                                                                                                                                                                            
os.(*Process).Wait(...)                                                                                                                                                                                                                                                       
        /usr/local/go/src/os/exec.go:132                                                                                                                                                                                                                                      
os/exec.(*Cmd).Wait(0xc000142160)                                                                                                                                                                                                                                             
        /usr/local/go/src/os/exec/exec.go:599 +0x4b                                                                                                                                                                                                                           
os/exec.(*Cmd).Run(0xc00055a0c0?)                                                                                                                                                                                                                                             
        /usr/local/go/src/os/exec/exec.go:437 +0x39                                                                                                                                                                                                                           
os/exec.(*Cmd).Output(0xc000142160)                                                                                                                                                                                                                                           
        /usr/local/go/src/os/exec/exec.go:686 +0xc7
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/daemon.CallOne({0xe720a0?, 0xc0075ac0e0}, 0xc00015a500, {0xc00002b110, 0x22}, {0x0?, 0x12d3840?}, {0xc139fc, 0x6})
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/daemon/handle_calls.go:145 +0x124b
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/daemon.RouteExport({0xe720a0, 0xc0075ac0e0}, 0x48c8d7?)
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/daemon/routes.go:59 +0x92
net/http.HandlerFunc.ServeHTTP(0x410b7f?, {0xe720a0?, 0xc0075ac0e0?}, 0x0?)
        /usr/local/go/src/net/http/server.go:2109 +0x2f
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/daemon.Logger.func1({0xe720a0, 0xc0075ac0e0}, 0xc00015a500)
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/daemon/routes.go:320 +0xcd
net/http.HandlerFunc.ServeHTTP(0xe720a0?, {0xe720a0?, 0xc0075ac0e0?}, 0xe72800?)
        /usr/local/go/src/net/http/server.go:2109 +0x2f
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/daemon.CorsHandler.func1({0xe720a0, 0xc0075ac0e0}, 0xc00017a570?)
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/daemon/routes.go:305 +0x5c
net/http.HandlerFunc.ServeHTTP(0xc00015a400?, {0xe720a0?, 0xc0075ac0e0?}, 0xc004f709e0?)
        /usr/local/go/src/net/http/server.go:2109 +0x2f
github.com/gorilla/mux.(*Router).ServeHTTP(0xc0001d6000, {0xe720a0, 0xc0075ac0e0}, 0xc00015a200)
        /root/go/pkg/mod/github.com/gorilla/[email protected]/mux.go:210 +0x1cf
net/http.serverHandler.ServeHTTP({0xc00017a3f0?}, {0xe720a0, 0xc0075ac0e0}, 0xc00015a200)
        /usr/local/go/src/net/http/server.go:2947 +0x30c
net/http.(*conn).serve(0xc000000140, {0xe72800, 0xc0001d5830})
        /usr/local/go/src/net/http/server.go:1991 +0x607
created by net/http.(*Server).Serve
        /usr/local/go/src/net/http/server.go:3102 +0x4db

goroutine 714 [syscall]:
syscall.Syscall6(0x2?, 0x2?, 0xc000237860?, 0x200000003?, 0xc000237860?, 0xc000034500?, 0x480a47?)
        /usr/local/go/src/syscall/syscall_linux.go:90 +0x36
os.(*Process).blockUntilWaitable(0xc00021f560)
        /usr/local/go/src/os/wait_waitid.go:32 +0x87
os.(*Process).wait(0xc00021f560)
        /usr/local/go/src/os/exec_unix.go:22 +0x28
os.(*Process).Wait(...)
        /usr/local/go/src/os/exec.go:132
os/exec.(*Cmd).Wait(0xc0001422c0)
        /usr/local/go/src/os/exec/exec.go:599 +0x4b
os/exec.(*Cmd).Run(0xc00055a0c0?)
        /usr/local/go/src/os/exec/exec.go:437 +0x39
os/exec.(*Cmd).Output(0xc0001422c0)
        /usr/local/go/src/os/exec/exec.go:686 +0xc7
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/daemon.CallOne({0xe720a0?, 0xc00019a380}, 0xc00024af00, {0xc00021f290, 0x22}, {0x0?, 0x12d3840?}, {0xc139fc, 0x6})
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/daemon/handle_calls.go:145 +0x124b
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/daemon.RouteExport({0xe720a0, 0xc00019a380}, 0x48c8d7?)
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/daemon/routes.go:59 +0x92
net/http.HandlerFunc.ServeHTTP(0x410b7f?, {0xe720a0?, 0xc00019a380?}, 0x0?)
        /usr/local/go/src/net/http/server.go:2109 +0x2f
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/daemon.Logger.func1({0xe720a0, 0xc00019a380}, 0xc00024af00)
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/daemon/routes.go:320 +0xcd
net/http.HandlerFunc.ServeHTTP(0xe720a0?, {0xe720a0?, 0xc00019a380?}, 0xe72800?)
        /usr/local/go/src/net/http/server.go:2109 +0x2f
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/daemon.CorsHandler.func1({0xe720a0, 0xc00019a380}, 0xc00055aae0?)
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/daemon/routes.go:305 +0x5c
net/http.HandlerFunc.ServeHTTP(0xc00024ae00?, {0xe720a0?, 0xc00019a380?}, 0xc0004f09e0?)
        /usr/local/go/src/net/http/server.go:2109 +0x2f
github.com/gorilla/mux.(*Router).ServeHTTP(0xc0001d6000, {0xe720a0, 0xc00019a380}, 0xc00024ad00)
        /root/go/pkg/mod/github.com/gorilla/[email protected]/mux.go:210 +0x1cf
net/http.serverHandler.ServeHTTP({0xc00055a990?}, {0xe720a0, 0xc00019a380}, 0xc00024ad00)
        /usr/local/go/src/net/http/server.go:2947 +0x30c
net/http.(*conn).serve(0xc0000003c0, {0xe72800, 0xc0001d5830})
        /usr/local/go/src/net/http/server.go:1991 +0x607
created by net/http.(*Server).Serve
        /usr/local/go/src/net/http/server.go:3102 +0x4db

goroutine 715 [IO wait]:
internal/poll.runtime_pollWait(0x7f7bf85e5438, 0x72)
        /usr/local/go/src/runtime/netpoll.go:305 +0x89
internal/poll.(*pollDesc).wait(0xc000030580?, 0xc00055a9a1?, 0x0)
        /usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x32
internal/poll.(*pollDesc).waitRead(...)
        /usr/local/go/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0xc000030580, {0xc00055a9a1, 0x1, 0x1})
        /usr/local/go/src/internal/poll/fd_unix.go:167 +0x25a
net.(*netFD).Read(0xc000030580, {0xc00055a9a1?, 0xc005fda098?, 0xc00bbf6768?})
        /usr/local/go/src/net/fd_posix.go:55 +0x29
net.(*conn).Read(0xc000168130, {0xc00055a9a1?, 0xc00023c500?, 0xaaece9?})
        /usr/local/go/src/net/net.go:183 +0x45
net/http.(*connReader).backgroundRead(0xc00055a990)
        /usr/local/go/src/net/http/server.go:678 +0x3f
created by net/http.(*connReader).startBackgroundRead
        /usr/local/go/src/net/http/server.go:674 +0xca

goroutine 775 [runnable]:                                                                                                                                                                                                                                                     
strings.(*Builder).grow(...)                                                                                                                                                                                                                                                  
        /usr/local/go/src/strings/builder.go:68                                                                                                                                                                                                                               
strings.(*Builder).Grow(...)                                                                                                                                                                                                                                                  
        /usr/local/go/src/strings/builder.go:82
strings.Join({0xc00a0c7360, 0x2, 0x2}, {0xc10bb0, 0x29?})
        /usr/local/go/src/strings/strings.go:443 +0x130
path/filepath.join({0xc00a0c7360?, 0x0?, 0x30?})
        /usr/local/go/src/path/filepath/path_unix.go:45 +0x85
path/filepath.Join(...)
        /usr/local/go/src/path/filepath/path.go:225
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/config.EstablishIndexPaths({0xc000110210, 0x30})
        /opt/ethereum/trueblocks-core/src/apps/chifra/pkg/config/config_paths.go:129 +0x128
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/config.GetPathToIndex({0xc00021b5f8, 0x7})
        /opt/ethereum/trueblocks-core/src/apps/chifra/pkg/config/config_paths.go:69 +0x1b4
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/index.IndexIsInitialized({0xc00021b5f8, 0x7})
        /opt/ethereum/trueblocks-core/src/apps/chifra/pkg/index/establish.go:94 +0x36
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/export.(*ExportOptions).validateExport(0xc017336540)
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/export/validate.go:124 +0x665
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/export.(*ExportOptions).ExportInternal(0xc017336540)
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/export/output.go:47 +0x25
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/export.ServeExport({0xe720a0?, 0xc0000261c0}, 0xc000144320?)
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/export/output.go:40 +0x99
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/daemon.RouteExport({0xe720a0, 0xc0000261c0}, 0x48c8d7?)
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/daemon/routes.go:56 +0x2c
net/http.HandlerFunc.ServeHTTP(0x410b7f?, {0xe720a0?, 0xc0000261c0?}, 0x0?)
        /usr/local/go/src/net/http/server.go:2109 +0x2f
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/daemon.Logger.func1({0xe720a0, 0xc0000261c0}, 0xc00015a400)
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/daemon/routes.go:320 +0xcd
net/http.HandlerFunc.ServeHTTP(0xe720a0?, {0xe720a0?, 0xc0000261c0?}, 0xe72800?)
        /usr/local/go/src/net/http/server.go:2109 +0x2f
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/daemon.CorsHandler.func1({0xe720a0, 0xc0000261c0}, 0xc0001d43c0?)
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/daemon/routes.go:305 +0x5c
net/http.HandlerFunc.ServeHTTP(0xc00015a300?, {0xe720a0?, 0xc0000261c0?}, 0x800?)
        /usr/local/go/src/net/http/server.go:2109 +0x2f
github.com/gorilla/mux.(*Router).ServeHTTP(0xc0001d6000, {0xe720a0, 0xc0000261c0}, 0xc00024a100)
        /root/go/pkg/mod/github.com/gorilla/[email protected]/mux.go:210 +0x1cf
net/http.serverHandler.ServeHTTP({0xc00040e150?}, {0xe720a0, 0xc0000261c0}, 0xc00024a100)
        /usr/local/go/src/net/http/server.go:2947 +0x30c
net/http.(*conn).serve(0xc000128fa0, {0xe72800, 0xc0001d5830})
        /usr/local/go/src/net/http/server.go:1991 +0x607
created by net/http.(*Server).Serve
        /usr/local/go/src/net/http/server.go:3102 +0x4db

goroutine 718 [IO wait]:
internal/poll.runtime_pollWait(0x7f7bf85e59d8, 0x72)
        /usr/local/go/src/runtime/netpoll.go:305 +0x89
internal/poll.(*pollDesc).wait(0xc000224180?, 0xc00040e161?, 0x0)
        /usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x32
internal/poll.(*pollDesc).waitRead(...)
        /usr/local/go/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0xc000224180, {0xc00040e161, 0x1, 0x1})
        /usr/local/go/src/internal/poll/fd_unix.go:167 +0x25a
net.(*netFD).Read(0xc000224180, {0xc00040e161?, 0xc00798c000?, 0x100000?})
        /usr/local/go/src/net/fd_posix.go:55 +0x29
net.(*conn).Read(0xc0002160a0, {0xc00040e161?, 0xc00bbf8fd0?, 0xaaece9?})
        /usr/local/go/src/net/net.go:183 +0x45
net/http.(*connReader).backgroundRead(0xc00040e150)
        /usr/local/go/src/net/http/server.go:678 +0x3f
created by net/http.(*connReader).startBackgroundRead
        /usr/local/go/src/net/http/server.go:674 +0xca

goroutine 758 [IO wait]:
internal/poll.runtime_pollWait(0x7f7bf85e58e8, 0x72)
        /usr/local/go/src/runtime/netpoll.go:305 +0x89
internal/poll.(*pollDesc).wait(0xc000164200?, 0xc00017a401?, 0x0)
        /usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x32
internal/poll.(*pollDesc).waitRead(...)
        /usr/local/go/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0xc000164200, {0xc00017a401, 0x1, 0x1})
        /usr/local/go/src/internal/poll/fd_unix.go:167 +0x25a
net.(*netFD).Read(0xc000164200, {0xc00017a401?, 0xc00021c158?, 0xc00bbf6f68?})
        /usr/local/go/src/net/fd_posix.go:55 +0x29
net.(*conn).Read(0xc0075b2030, {0xc00017a401?, 0xc0100fc370?, 0xaaece9?})
        /usr/local/go/src/net/net.go:183 +0x45
net/http.(*connReader).backgroundRead(0xc00017a3f0)
        /usr/local/go/src/net/http/server.go:678 +0x3f
created by net/http.(*connReader).startBackgroundRead
        /usr/local/go/src/net/http/server.go:674 +0xca

goroutine 786 [IO wait]:
internal/poll.runtime_pollWait(0x7f7c09241588, 0x72)
        /usr/local/go/src/runtime/netpoll.go:305 +0x89
internal/poll.(*pollDesc).wait(0xc000158a80?, 0xc003906181?, 0x1)
        /usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x32
internal/poll.(*pollDesc).waitRead(...)
        /usr/local/go/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0xc000158a80, {0xc003906181, 0xffe7f, 0xffe7f})
        /usr/local/go/src/internal/poll/fd_unix.go:167 +0x25a
os.(*File).read(...)
        /usr/local/go/src/os/file_posix.go:31
os.(*File).Read(0xc000216008, {0xc003906181?, 0xffe80?, 0x0?})
        /usr/local/go/src/os/file.go:119 +0x5e
bufio.(*Scanner).Scan(0xc00e9d5f08)
        /usr/local/go/src/bufio/scan.go:214 +0x876
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/daemon.scanForProgress({0xe6e0a0?, 0xc000216008?}, 0xc00e9d5fb8)
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/daemon/handle_calls.go:264 +0xf2
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/daemon.CallOne.func2()
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/daemon/handle_calls.go:135 +0x69
created by github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/daemon.CallOne
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/daemon/handle_calls.go:134 +0x123e

goroutine 787 [IO wait]:
internal/poll.runtime_pollWait(0x7f7bf85e5258, 0x72)
        /usr/local/go/src/runtime/netpoll.go:305 +0x89
internal/poll.(*pollDesc).wait(0xc000159200?, 0xc0001eef09?, 0x1)
        /usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x32
internal/poll.(*pollDesc).waitRead(...)
        /usr/local/go/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0xc000159200, {0xc0001eef09, 0x50f7, 0x50f7})
        /usr/local/go/src/internal/poll/fd_unix.go:167 +0x25a
os.(*File).read(...)
        /usr/local/go/src/os/file_posix.go:31
os.(*File).Read(0xc000216048, {0xc0001eef09?, 0x0?, 0xc00e9ce6a0?})
        /usr/local/go/src/os/file.go:119 +0x5e
bytes.(*Buffer).ReadFrom(0xc00055a120, {0xe6e0a0, 0xc000216048})
        /usr/local/go/src/bytes/buffer.go:202 +0x98
io.copyBuffer({0xe6d160, 0xc00055a120}, {0xe6e0a0, 0xc000216048}, {0x0, 0x0, 0x0})
        /usr/local/go/src/io/io.go:413 +0x14b
io.Copy(...)
        /usr/local/go/src/io/io.go:386
os/exec.(*Cmd).writerDescriptor.func1()
        /usr/local/go/src/os/exec/exec.go:407 +0x3a
os/exec.(*Cmd).Start.func1(0xc0001d5830?)
        /usr/local/go/src/os/exec/exec.go:544 +0x25
created by os/exec.(*Cmd).Start
        /usr/local/go/src/os/exec/exec.go:543 +0x73e

goroutine 788 [runnable]:
bufio.(*Scanner).Text(...)
        /usr/local/go/src/bufio/scan.go:113
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/file.AsciiFileToLines({0xc0000ba460?, 0x37?})
        /opt/ethereum/trueblocks-core/src/apps/chifra/pkg/file/asciifiles.go:24 +0xf0
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/list.(*ListOptions).HandleFreshenMonitors(0xc0003680f0, 0xc0000b75c0)
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/list/handle_freshen.go:173 +0x46f
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/export.(*ExportOptions).FreshenMonitorsForExport(0xc017336380)
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/export/handle_freshen.go:16 +0x133
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/export.(*ExportOptions).ExportInternal(0xc017336380)
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/export/output.go:53 +0x38
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/export.ServeExport({0xe720a0?, 0xc00019a0e0}, 0xc00023c500?)
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/export/output.go:40 +0x99
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/daemon.RouteExport({0xe720a0, 0xc00019a0e0}, 0x48c8d7?)
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/daemon/routes.go:56 +0x2c
net/http.HandlerFunc.ServeHTTP(0x410b7f?, {0xe720a0?, 0xc00019a0e0?}, 0x0?)
        /usr/local/go/src/net/http/server.go:2109 +0x2f
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/daemon.Logger.func1({0xe720a0, 0xc00019a0e0}, 0xc00024a200)
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/daemon/routes.go:320 +0xcd
net/http.HandlerFunc.ServeHTTP(0xe720a0?, {0xe720a0?, 0xc00019a0e0?}, 0xe72800?)
        /usr/local/go/src/net/http/server.go:2109 +0x2f
github.com/TrueBlocks/trueblocks-core/src/apps/chifra/internal/daemon.CorsHandler.func1({0xe720a0, 0xc00019a0e0}, 0xc00055a480?)
        /opt/ethereum/trueblocks-core/src/apps/chifra/internal/daemon/routes.go:305 +0x5c
net/http.HandlerFunc.ServeHTTP(0xc00024a100?, {0xe720a0?, 0xc00019a0e0?}, 0xc0004f29e0?)
        /usr/local/go/src/net/http/server.go:2109 +0x2f
github.com/gorilla/mux.(*Router).ServeHTTP(0xc0001d6000, {0xe720a0, 0xc00019a0e0}, 0xc00024a000)
        /root/go/pkg/mod/github.com/gorilla/[email protected]/mux.go:210 +0x1cf
net/http.serverHandler.ServeHTTP({0xc00055a300?}, {0xe720a0, 0xc00019a0e0}, 0xc00024a000)
        /usr/local/go/src/net/http/server.go:2947 +0x30c
net/http.(*conn).serve(0xc0001281e0, {0xe72800, 0xc0001d5830})
        /usr/local/go/src/net/http/server.go:1991 +0x607
created by net/http.(*Server).Serve
        /usr/local/go/src/net/http/server.go:3102 +0x4db

goroutine 789 [IO wait]:
internal/poll.runtime_pollWait(0x7f7c09240958, 0x72)
        /usr/local/go/src/runtime/netpoll.go:305 +0x89
internal/poll.(*pollDesc).wait(0xc000224100?, 0xc00055a311?, 0x0)
        /usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x32
internal/poll.(*pollDesc).waitRead(...)
        /usr/local/go/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0xc000224100, {0xc00055a311, 0x1, 0x1})
        /usr/local/go/src/internal/poll/fd_unix.go:167 +0x25a
net.(*netFD).Read(0xc000224100, {0xc00055a311?, 0x0?, 0x0?})
        /usr/local/go/src/net/fd_posix.go:55 +0x29
net.(*conn).Read(0xc000216098, {0xc00055a311?, 0x0?, 0x0?})
        /usr/local/go/src/net/net.go:183 +0x45
net/http.(*connReader).backgroundRead(0xc00055a300)
        /usr/local/go/src/net/http/server.go:678 +0x3f
created by net/http.(*connReader).startBackgroundRead
        /usr/local/go/src/net/http/server.go:674 +0xca

goroutine 659 [IO wait]:
internal/poll.runtime_pollWait(0x7f7bf85e5528, 0x72)
        /usr/local/go/src/runtime/netpoll.go:305 +0x89
internal/poll.(*pollDesc).wait(0xc000224080?, 0xc0001d40a1?, 0x0)
        /usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x32
internal/poll.(*pollDesc).waitRead(...)
        /usr/local/go/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0xc000224080, {0xc0001d40a1, 0x1, 0x1})
        /usr/local/go/src/internal/poll/fd_unix.go:167 +0x25a
net.(*netFD).Read(0xc000224080, {0xc0001d40a1?, 0xc002900000?, 0x100000?})
        /usr/local/go/src/net/fd_posix.go:55 +0x29
net.(*conn).Read(0xc000216090, {0xc0001d40a1?, 0xc0001a3fd0?, 0xaaece9?})
        /usr/local/go/src/net/net.go:183 +0x45
net/http.(*connReader).backgroundRead(0xc0001d4090)
        /usr/local/go/src/net/http/server.go:678 +0x3f
created by net/http.(*connReader).startBackgroundRead
        /usr/local/go/src/net/http/server.go:674 +0xca
dszlachta added a commit that referenced this issue Apr 3, 2023
@dszlachta dszlachta self-assigned this Apr 3, 2023
@dszlachta dszlachta mentioned this issue Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants