^Z followed by fg in bash causes failure with certain linux versions

Bug #541170 reported by Jeff Hill
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
EPICS Base
Fix Released
High
Andrew Johnson

Bug Description

Yevgeny A. Gusev has observed that EPICS code exhibits the following failure related diagnostic when running on an earlier version of Linux and a ^Z followed by "fg" is issued at the bash command line by the user.

pthread_cond_timedwait failed: error Interrupted system call
epicsThread: Unknown C++ exception - terminating thread "timerQueue"

Original Mantis Bug: mantis-96
    http://www.aps.anl.gov/epics/mantis/view_bug_page.php?f_id=96

Tags: 3.14
Revision history for this message
Jeff Hill (johill-lanl) wrote :

I am unable to reproduce this on my version of Linux (see my experience below). I am going to guess that this is a Linux kernel specific issue. Nevertheless, I am starting to suspect that we could avoid this issue by restarting the pthread_cond_timedwait system call if the errorno indicates that the system call was interrupted?

~/epicsR3.14/epics/appl/caApp/O.linux-x86$ uname -a
Linux quax.ta53.lanl.gov 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux

~/epicsR3.14/epics/appl/caApp/O.linux-x86$ ./catest joh:fred
./catest: connection handler for "joh:fred": CONNECTED
./catest: event handler called for "joh:fred"
./catest: event handler called for "joh:fred"
./catest: event handler called for "joh:fred"

[1]+ Stopped ./catest joh:fred
~/epicsR3.14/epics/appl/caApp/O.linux-x86$ fg
./catest joh:fred
./catest: event handler called for "joh:fred"
./catest: event handler called for "joh:fred"
./catest: event handler called for "joh:fred"
./catest: event handler called for "joh:fred"
./catest: event handler called for "joh:fred"
./catest: event handler called for "joh:fred"

Revision history for this message
Andrew Johnson (anj) wrote :

No feedback in 3 months, and we've reworked the EPICS signal handling since then so we think the problem should have been resolved in R3.14.7.

Revision history for this message
Andrew Johnson (anj) wrote :

R3.14.7 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.