Linux process name always overwritten with "_main_"

Bug #1397971 reported by Ralph Lange
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
EPICS Base
Fix Released
High
Ralph Lange

Bug Description

Reported by Anze Zagar <email address hidden>:

The 'COMMAND NAME' column shown by commands like top, ps... should normally correspond to the actual executable name.
However, for all executables linked against EPICS 3.15 it gets changed to '_main_'.

This causes quite some confusion because we have many processes linked against CA library (IOCs as well as clients) and 'top' shows all of them as '_main_' which makes them very difficult to tell apart.

Also `ps -C <cmd>` for finding the process by executable name, doesn't work because of this.

Revision history for this message
Ralph Lange (ralph-lange) wrote :

This is a side effect of a feature originally proposed by Klemen Zagar.

When looking at the threads of an IOC, all threads were reported under the main executable's name, so they could not be distinguished. Klemen proposed that EPICS sets the command name of each thread to its EPICS thread name.

Obviously, all executables being called "_main_" is an unwanted side effect for clients.

Changed in epics-base:
milestone: none → 3.15.1
status: New → In Progress
importance: Undecided → High
Changed in epics-base:
status: In Progress → Fix Committed
Andrew Johnson (anj)
Changed in epics-base:
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.