- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Spawned processes hanging
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
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-27-2008 08:51 AM
тАО02-27-2008 08:51 AM
Spawned processes hanging
The fact that the spawned processes show up in the ps output as the server process means that the execvp code is never run.
The fork/execvp combination works on other UNIXes (Solaris/Lunix/...) w/o problems.
I looked up the HPUX patch DB and came across following issue
(( SR:8606425727 CR:JAGaf85235 )
A multi-threaded process may hang forever trying to fork a new process, if other threads in the process are in kernel context and are holding kernel resources. )
But the above problem is observed on servers which have the patch already applied.
Is doing fork/execvp just flaky on HPUX or is there a know workaround for this issue?
Thanks,
Olu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2008 09:22 AM
тАО02-27-2008 09:22 AM
Re: Spawned processes hanging
You should be testing software on systems with the latest Gold pack installed, December 2007 because that is the standard in many shops.
No fork is not flaky its probably your code or the OS not being patched.
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-27-2008 09:45 PM
тАО02-27-2008 09:45 PM
Re: Spawned processes hanging
Right. As long as you do very minimal things between the fork and exec it should work.
Minimal means only open(2)/close(2) and no tricky C++ stuff.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2008 06:32 AM
тАО03-14-2008 06:32 AM
Re: Spawned processes hanging
#0 0xc020b2d8 in __ksleep+0x10 () from /usr/lib/libc.2
#1 0xc003df88 in pthread_mutex_lock+0x16c () from /usr/lib/libpthread.1
#2 0xc021cdf8 in __thread_mutex_lock+0x70 () from /usr/lib/libc.2
#3 0xc0197fc4 in _sigfillset+0xc24 () from /usr/lib/libc.2
#4 0xc019aefc in free+0x184 () from /usr/lib/libc.2
#5 0xc00385ec in __specific_data_dealloc+0x24 () from /usr/lib/libpthread.1
#6 0xc003acd4 in __pthread_free+0x37c () from /usr/lib/libpthread.1
#7 0xc003abf8 in __pthread_free+0x2a0 () from /usr/lib/libpthread.1
#8 0xc003bf24 in __pthread_fork_child_cleanup+0xc8 () from /usr/lib/libpthread.1
#9 0xc003efcc in __pthread_fork+0x10c () from /usr/lib/libpthread.1
#10 0xc02161e8 in fork+0x68 () from /usr/lib/libc.2
#11 0xc96bb248 in Lum::ProcessManager::platformSpawn+0x238 () from /u02/testolu/ADB6a/lib/libLMCommon2.sl
It seems to be deadlocked inside the fork() call. I know there are a number of patches said to address this issue but does anyone know the exact patch#. Thanks..
Olu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2008 01:11 PM
тАО03-14-2008 01:11 PM
Re: Spawned processes hanging
Can you go through your other threads and see which are in malloc or free and have the thread locked?
Your CR JAGaf85235 seems related to some kernel issue. This one may be libc & libpthread. I would just install the latest libc and libpthread patches.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2008 01:23 PM
тАО03-14-2008 01:23 PM
Re: Spawned processes hanging
Olu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2008 01:27 PM
тАО03-14-2008 01:27 PM
Re: Spawned processes hanging
Olu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2008 02:21 PM
тАО03-14-2008 02:21 PM
Re: Spawned processes hanging
The way it could hang is that one thread has the mutex. The other thread does a fork.
In the child, it is suppose to unlock all locked resources, __pthread_fork_child_cleanup.
But it seems that to free resources, it has to call free and that was the mutex that was locked.