Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
A
advLigoRTS
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 94
    • Issues 94
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 7
    • Merge Requests 7
  • Requirements
    • Requirements
    • List
  • Operations
    • Operations
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • CDS
  • advLigoRTS
  • Issues
  • #66

Closed
Open
Created Feb 13, 2020 by Erik von Reis@erik.vonreisMaintainer

Possible race condition/deadlock on the CA SDF code

From bugzilla ticket #1127

Jonathan Hanks (LIGO - Hanford Observatory) 2018-10-23 14:18:13 PDT

See FRS

https://services.ligo-la.caltech.edu/FRS/show_bug.cgi?id=11694

Daniel noticed that the Beckhoff SDF monitoring system for h1sysecatc1plc[1,3] and h1sysecaty1plc2 was frozen. The medm pages resolved correctly, but button presses were not being acted on.

When investigating I noticed that the system was stuck waiting for a mutex, the point it left the application code (and entered EPICS base) was a call to ca_clear_subscription(...) while it was syncing the internal state of the system with changes that had taken place in EPICS.

The specific spot happened to be while handling a enum value, looks like it was trying to change how it handled the enum. CA SDF tries to display enums as strings if it can, or falls back to numeric, but it takes some work to figure out which one to use.

Jonathan Hanks (LIGO - Hanford Observatory) 2018-10-23 14:21:11 PDT

Created attachment 239 [details] Some gdb output IMG_20181023_110908053_HDR_small

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None