- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- frequent Core Dumps in HP-UX
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
Forums
Discussions
Discussions
Discussions
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
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
03-21-2004 05:58 PM
03-21-2004 05:58 PM
I have craeted a small c++ daemon running in HP-UX 11i 32 bit.
I am using gcc 3.2 i have configured gcc with following options.
./configure \
> > --enable-languages=c,c++ \
> > --enable-threads=posix \
> > --with-gnu-as \
> > --with-gnu-ld
As far as Daemon is concerned its an multithreaded application creating socket and hving 5 minimum threads running simaltaneously and a new thread is created after every 15 sec whos life is of 5 secs only.
But still gcc uses system linker as i tried to install bin-utiltites 2.13 but failed to install Gnu ld also i don't know whether its using gnu assembler or not as -g option do wrk and i can use GDB to debug.
I can run the daemon successfully but it does Memory fault and core dumps after few mins of exection which is varied a lot and the location of core dump is varing every time.
But it runs fine under RH8 and RH9.
I jst wnt to know is this a common problem in mutithreaded applications in HP-UX 11i 32 bit and if yes how can i remove this. is there any patch available to remove this type of errors. Does system linker or assemebler is causing these king of problms. Does using GNU LD and GNU AS can make this wrk with no prblm as on RH8 and RH9 this is not an problem.
Many Thanks
Lalit Seth
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2004 06:43 PM
03-21-2004 06:43 PM
Re: frequent Core Dumps in HP-UX
What does this daemon do - malloc()'s?
What is the dump message - run 'file core' -
if its SIGSEGV - could be that data/stack/text segment isn't enough for your code (check : "kmtune | grep max[d,s,t]siz").
Another nice thing would be:
a)gdb on the binary and seeing the stack trace (bt)
b)tusc -vfp
rgds
Zeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2004 07:54 PM
03-21-2004 07:54 PM
Re: frequent Core Dumps in HP-UX
I also wanted to know tht the frequent Memory faults or core dump can be result of not using Gnu ld instead of System Linker as my app use sytem linker of HP rather than GNUld.
My daemon is in c++ and yes frequent memory allocation and delocaion is done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2004 04:02 AM
03-23-2004 04:02 AM
SolutionIt is very unlikely that the choice of linker would cause a problem that occurs at random intervals well after a program is running.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2004 04:33 AM
03-23-2004 04:33 AM
Re: frequent Core Dumps in HP-UX
Of course, missing or badly coded thread synchronization routines (mutex) will also cause exactly this kind of problem.
At this point, it is time to get some stack traces.