HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Hang in mutex operations
Operating System - HP-UX
1834935
Members
2535
Online
110071
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2003 01:34 AM
06-13-2003 01:34 AM
Hi,
I am seeing the problem on HP-UX 11i.
$uname -a
HP-UX chittor B.11.11 U 9000/800 812920600 unlimited-user license
I am seeing simailar hangs in the two code snippets below:
do {
rc = semop(mutex->interproc->filedes, &proc_mutex_op_on, 1);
} while (rc < 0 && errno == EINTR);
for (waited = 0; mutexp->locked != 0; waited = 1) {
ret = pthread_cond_wait(&mutexp->cond, &mutexp->mutex);
/*
* !!!
* Solaris bug workaround:
* pthread_cond_wait() sometimes returns ETIME -- out
* of sheer paranoia, check both ETIME and ETIMEDOUT.
* We believe this happens when the application uses
* SIGALRM for some purpose, e.g., the C library sleep
* call, and Solaris delivers the signal to the wrong
* LWP.
*/
if (ret != 0 && ret != EINTR &&
#ifdef ETIME
ret != ETIME &&
#endif
ret != ETIMEDOUT) {
(void)pthread_mutex_unlock(&mutexp->mutex);
return (ret);
}
}
In both the cases, the semop and pthread_cond_wait calls are getting
continously interrupted causing the loops to use all the CPU available.
I was wondering if this could be a patch issue. Could you please
guide me to the required patch, if there is any, for this particular problem ?
Thanks,
Midhun.
I am seeing the problem on HP-UX 11i.
$uname -a
HP-UX chittor B.11.11 U 9000/800 812920600 unlimited-user license
I am seeing simailar hangs in the two code snippets below:
do {
rc = semop(mutex->interproc->filedes, &proc_mutex_op_on, 1);
} while (rc < 0 && errno == EINTR);
for (waited = 0; mutexp->locked != 0; waited = 1) {
ret = pthread_cond_wait(&mutexp->cond, &mutexp->mutex);
/*
* !!!
* Solaris bug workaround:
* pthread_cond_wait() sometimes returns ETIME -- out
* of sheer paranoia, check both ETIME and ETIMEDOUT.
* We believe this happens when the application uses
* SIGALRM for some purpose, e.g., the C library sleep
* call, and Solaris delivers the signal to the wrong
* LWP.
*/
if (ret != 0 && ret != EINTR &&
#ifdef ETIME
ret != ETIME &&
#endif
ret != ETIMEDOUT) {
(void)pthread_mutex_unlock(&mutexp->mutex);
return (ret);
}
}
In both the cases, the semop and pthread_cond_wait calls are getting
continously interrupted causing the loops to use all the CPU available.
I was wondering if this could be a patch issue. Could you please
guide me to the required patch, if there is any, for this particular problem ?
Thanks,
Midhun.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2003 01:42 AM
06-13-2003 01:42 AM
Re: Hang in mutex operations
Hi,
I found two patches:
s700_800 11.11 HP DCE/9000 1.8 DCE Client IPv6 patch (PHSS_27258)
99 Patch N/A s700_800 11.11 HP DCE/9000 1.8 Server/DevTools cum. patch (PHSS_27259)
Since i don't understand clearly your C code, i just pass the info.
HTH,
Massimo
I found two patches:
s700_800 11.11 HP DCE/9000 1.8 DCE Client IPv6 patch (PHSS_27258)
99 Patch N/A s700_800 11.11 HP DCE/9000 1.8 Server/DevTools cum. patch (PHSS_27259)
Since i don't understand clearly your C code, i just pass the info.
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2003 04:25 AM
06-13-2003 04:25 AM
Solution
Check your pthreads patch as well:
PHCO_27632 s700_800 11.11 Pthread enhancement and fixes
http://www2.itrc.hp.com/service/cki/patchDocDisplay.do?patchId=PHCO_27632
PHCO_27632 s700_800 11.11 Pthread enhancement and fixes
http://www2.itrc.hp.com/service/cki/patchDocDisplay.do?patchId=PHCO_27632
"Downtime is a Crime."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2003 05:42 AM
06-13-2003 05:42 AM
Re: Hang in mutex operations
you'd be much better off asking this type of question at: http://www.hp.com/go/developers
check their forums sections:
http://h21007.www2.hp.com/dspp/comm/comm_Community_Home_IDX/1,1273,,00.html
check their forums sections:
http://h21007.www2.hp.com/dspp/comm/comm_Community_Home_IDX/1,1273,,00.html
It works for me (tm)
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP