AMS runs into panic because of concurrent WebSocket write

Bug #2103746 reported by Simon Fels
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Anbox Cloud
Fix Released
High
Simon Fels

Bug Description

Mar 20 19:33:10 github-runner anbox-cloud-appliance.ams[7583]: panic: concurrent write to websocket connection
Mar 20 19:33:10 github-runner anbox-cloud-appliance.ams[7583]: goroutine 54634 [running]:
Mar 20 19:33:10 github-runner anbox-cloud-appliance.ams[7583]: github.com/gorilla/websocket.(*messageWriter).flushFrame(0x40018780c0, 0x1, {0x0?, 0x20000?, 0xfb5?})
Mar 20 19:33:10 github-runner anbox-cloud-appliance.ams[7583]: <email address hidden>/conn.go:617 +0x460
Mar 20 19:33:10 github-runner anbox-cloud-appliance.ams[7583]: github.com/gorilla/websocket.(*messageWriter).Close(0x40018780c0?)
Mar 20 19:33:10 github-runner anbox-cloud-appliance.ams[7583]: <email address hidden>/conn.go:731 +0x48
Mar 20 19:33:10 github-runner anbox-cloud-appliance.ams[7583]: github.com/canonical/ams/pkg/network.WebsocketSendStreamWithContext.func1({0x12b9380, 0x4001058d70}, 0x4000cc2000, {0x12a8140?, 0x400160a960?})
Mar 20 19:33:10 github-runner anbox-cloud-appliance.ams[7583]: github.com/canonical/ams/pkg/network/network.go:179 +0x1a8
Mar 20 19:33:10 github-runner anbox-cloud-appliance.ams[7583]: created by github.com/canonical/ams/pkg/network.WebsocketSendStreamWithContext in goroutine 55364
Mar 20 19:33:10 github-runner anbox-cloud-appliance.ams[7583]: github.com/canonical/ams/pkg/network/network.go:159 +0x114

Simon Fels (morphis)
Changed in anbox-cloud:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Simon Fels (morphis)
milestone: none → 1.25.2
Gary.Wang (gary-wzl77)
Changed in anbox-cloud:
status: In Progress → Fix Committed
Gary.Wang (gary-wzl77)
Changed in anbox-cloud:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.