- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: fork never returns to child process
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
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
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
тАО02-21-2005 06:24 AM
тАО02-21-2005 06:24 AM
fork never returns to child process
I am running on B11.11
Has anyone encountered anything similar? Or have suggestions for resolving?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2005 07:22 AM
тАО02-21-2005 07:22 AM
Re: fork never returns to child process
My other thought is that the process is executing a non signal-safe function during the fork().
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2005 08:37 AM
тАО02-21-2005 08:37 AM
Re: fork never returns to child process
I would add all available privs to your userid, and back them out one at a time.
/sbin/init.d/set_prvgrp start/stop to crank them up = you can read that startup file to figure out the entries needed.
example:
contents of a sample /etc/privgroup
-g CHOWN RTPRIO MLOCK
group1 SETRUGID RTPRIO RTSCHED
group2 RTSCHED
where group1 and group2 are simple groups from your /etc/group file....
10 bucks that solves it for you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2005 08:42 AM
тАО02-21-2005 08:42 AM
Re: fork never returns to child process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2005 09:37 AM
тАО02-21-2005 09:37 AM
Re: fork never returns to child process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2005 10:05 AM
тАО02-21-2005 10:05 AM
Re: fork never returns to child process
I've added a simple handler for the child process that simply spits out some diagnostics at this point. This does seem to alter the frequency of the fork hanging so I'm investigating what other threads are doing at the same time that could be instigating the problem. When the problem happens I can see the diagnostic output from the child fork handler but no thread of control returning to the child process' main code after fork. The call to fork always succeeds for the parent with the pid of the child returned so there is never an errno to look at. I can see two processes created using ps. My application is running in co-operative thread scheduling mode so only a single thread should be "live" at any given time.
And finally, I'm still trying to interpret what it could mean when the stack trace always shows the child process thread stuck in a ksleep call.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2005 10:12 AM
тАО02-21-2005 10:12 AM
Re: fork never returns to child process
I'd love to see your diagnostics but will be offline when you get them. This system is probably hitting some limits. nproc and maxuprc seem to be the most likely suspects.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2005 05:47 AM
тАО02-22-2005 05:47 AM
Re: fork never returns to child process
maxuprc 200 Y 200
nproc 4096 - 4096
nkthread 18000 - 18000
max_thread_proc 1024 - 1024
to:
maxuprc 400 Y 400
nproc 8192 - 4096
nkthread 36000 - 18000
max_thread_proc 2048 - 1024
Similarly there are no messages displayed in the syslog.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2005 06:36 AM
тАО02-22-2005 06:36 AM
Re: fork never returns to child process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2005 06:19 AM
тАО03-01-2005 06:19 AM
Re: fork never returns to child process
One of the fork cleanup routines is trying
to lock a mutex due to a free being called within it. The process uses
TLS so it is nessisary. This mutex is the arena mutex and is at the time of the memory dump unlocked, so it looks like a race condition. It will hang forever.
Increasing the number of arenas in the C-heap with
export _M_ARENA_OPTS=32
had no effect.