HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- pthread & accept() issue
Operating System - HP-UX
1831950
Members
2924
Online
110034
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
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
04-15-2005 07:34 AM
04-15-2005 07:34 AM
pthread & accept() issue
I have a piece of multi-threaded server code written with dce threads and compiled on HP-UX 10.20 running on HP-UX 11.11. I'm running into an issue where if the process has been running for a while (> 8 hours), it's freezing up on the "accept()" call. When I look at the core dump, it's showing the following stack:
1) _accept_sys+0010
2) cma_accept+02d8
3) tcp_start (this is my code)
4) cma__thread_base+0204
5) cma__thread_start1+0034
6) cma_thread_start0+0034
When the process first starts, clients can connect & disconnect at will and everything is OK. After a couple of hours, a client will disconnect and then reconnect and the whole process freezes.
Help?
The point in my code where the freeze up happens looks like this:
while (1) {
if ((temp_socket = accept(listen_socket, &client_addr, &client_addr_len)) <= 0) {
....
}
...
}
How can I look at what each thread is doing at the time of the core dump?
1) _accept_sys+0010
2) cma_accept+02d8
3) tcp_start (this is my code)
4) cma__thread_base+0204
5) cma__thread_start1+0034
6) cma_thread_start0+0034
When the process first starts, clients can connect & disconnect at will and everything is OK. After a couple of hours, a client will disconnect and then reconnect and the whole process freezes.
Help?
The point in my code where the freeze up happens looks like this:
while (1) {
if ((temp_socket = accept(listen_socket, &client_addr, &client_addr_len)) <= 0) {
....
}
...
}
How can I look at what each thread is doing at the time of the core dump?
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2005 08:51 AM
04-18-2005 08:51 AM
Re: pthread & accept() issue
Hi,
The libcma threads are user level threads, so
if there is a thread blocked on accept() syscall, which is your case, the program can't do anything until the accept() is wakenup by a new incoming connection.
Now you have 2 possibility:
- You have incoming connnections, but the process stay hung on accept, then you should check that you do not have a too old ARPA transport patch.
PHNE_23645 for instance
-you don't have incoming connections, and then the question is why the application go on accept().
you can use tusc on the applucation to trace the syscall of the process just before it got hung
The libcma threads are user level threads, so
if there is a thread blocked on accept() syscall, which is your case, the program can't do anything until the accept() is wakenup by a new incoming connection.
Now you have 2 possibility:
- You have incoming connnections, but the process stay hung on accept, then you should check that you do not have a too old ARPA transport patch.
PHNE_23645 for instance
-you don't have incoming connections, and then the question is why the application go on accept().
you can use tusc on the applucation to trace the syscall of the process just before it got hung
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