- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- Languages and Scripting
- >
- Re: pthread stack size
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- Report Inappropriate Content
05-18-2011 06:35 AM
05-18-2011 06:35 AM
We have a server running informatica. It was working correctly until the latest pthread patch PHCO_41407. After that patch we now find it necessary to set PTHREAD_DEFAULT_STACK_SIZE to a larger value. I have other machine that is not patched yet. I was wondering how to display the default stack size.
Solved! Go to Solution.
- Tags:
- pthread
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-18-2011 07:22 AM - last edited on 08-02-2011 07:44 AM by Kevin_Paul
05-18-2011 07:22 AM - last edited on 08-02-2011 07:44 AM by Kevin_Paul
Re: pthread stack size
Hi Court:
See if this helps:
http://h30499.www3.hp.com/t5/System-Administration/Pid-lt-nnn-gt-killed-due-to-trashed-stack/m-p/5106420#M445205
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-18-2011 07:42 AM
05-18-2011 07:42 AM
Re: pthread stack size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-18-2011 07:54 AM
05-18-2011 07:54 AM
Re: pthread stack size
If you had already seen the thread reference I cited, then I assume that you have googled for other threads in the ITRC on this topic. There seem to be a fair number.
Perhaps you should open a call to the Response Center.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-18-2011 11:42 PM
05-18-2011 11:42 PM
Solution(I'm on an internal patch after PHCO_41407.)
>I was wondering how to display the default stack size.
You can use tusc to find the size of the mmap(2): 266240 == 128 Kb * 2 + 4 kb guard
>because the pthread calls from informatica should presumably be the same before and after the patch.
Yes but the functions in libc or libpthread may use slight more stack space and that may be just enough to get an overflow.
>JRF: See if this helps:
threadId=1227330 is about PA. Integrity is slightly different, due to RSE.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-24-2011 07:08 AM
05-24-2011 07:08 AM
Re: pthread stack size
> Yes but the functions in libc or libpthread may use slight more stack space and that may be just enough to get an overflow.
This is the part that bothers me. If the functions use more stack space, why not also increase the default stack size to accommodate the function changes?
P.S. thanks for the info. I was actually waiting for your reply.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-24-2011 07:06 PM
05-24-2011 07:06 PM
Re: pthread stack size
Because "slightly more" isn't enough to worry about? ;-)
And increasing it may break other applications that may run out of swap.
And most important of all, this isn't a 16 bit machine where every byte on the stack needs to be accounted.
Do you have a corefile of your thread stack overflow? How much was your "larger" value?
I have seen a problem with mallocNG and thread stacks where the recursion was over 5K frames.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-26-2011 08:08 AM
05-26-2011 08:08 AM
Re: pthread stack size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-26-2011 05:27 PM
05-26-2011 05:27 PM
Re: pthread stack size
Ok. We can't get the exact stack trace to figure out the calls and stack usage.
>where setting PTHREAD_DEFAULT_STACK_SIZE to a higher value resolved the issue. We now have it set to 524288.
Well that doubles it but doesn't tell you exactly how much bigger it needed. If you have time to experiment you could use: 331776
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP