HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Application Exiting Without Core
Operating System - HP-UX
1837239
Members
2161
Online
110115
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
06-10-2003 08:16 AM
06-10-2003 08:16 AM
Application Exiting Without Core
I have a third party application that continuely exits with status code 377 (Exhausted Available Memory). Is there any way to force the application to generate a stack trace either via DDE or GDB? When I execute the application within DDE or GDB the application exits and I am unable to see the stack.
Thanks,
Chris Thompson
Thanks,
Chris Thompson
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 10:19 AM
06-10-2003 10:19 AM
Re: Application Exiting Without Core
Hi
Try this (untested):
start program under gdb, then type:
xbreak malloc
(you'll get breakpoint number, the first one is '1')
then
condition 1 $ret0=0
(register ret0 contains the result of function)
then
run
HTH
Good luck
Adam
Try this (untested):
start program under gdb, then type:
xbreak malloc
(you'll get breakpoint number, the first one is '1')
then
condition 1 $ret0=0
(register ret0 contains the result of function)
then
run
HTH
Good luck
Adam
I do everything perfectly, except from my mistakes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 10:31 AM
06-10-2003 10:31 AM
Re: Application Exiting Without Core
Your problem is that even when you try to add a breakpoint; it's likely not even "close" to the right spot. Because of the "bogus" (i.e. non-errno value) and the non-standard error message (i.e. not generated by perror()), I can't even rule out that this is a "normal" dynamic memory allocation error. This might simply be that a statically defined array has filled and the program detects this and exits. In that case, it's a program induced exit and no core file would be generated.
I do assume that you have not done ulimit -c 0 to suppress core file creation.
This is probably one of those times when it's time to call the developers. You might try increasing maxdsiz and ensuring that you have plenty of swap but I doubt that it's going to help.
I do assume that you have not done ulimit -c 0 to suppress core file creation.
This is probably one of those times when it's time to call the developers. You might try increasing maxdsiz and ensuring that you have plenty of swap but I doubt that it's going to help.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2003 08:01 AM
06-11-2003 08:01 AM
Re: Application Exiting Without Core
You could try using gdb and setting breakpoints on exit and _exit. I often use that to catch programs that are printing an error message and exiting.
(gdb) b exit
Breakpoint 1 (deferred) at "exit" ("exit" was not found).
Breakpoint deferred until a shared library containing "exit" is loaded.
(gdb) b _exit
Breakpoint 2 (deferred) at "_exit" ("_exit" was not found).
Breakpoint deferred until a shared library containing "_exit" is loaded.
(gdb) r
(gdb) b exit
Breakpoint 1 (deferred) at "exit" ("exit" was not found).
Breakpoint deferred until a shared library containing "exit" is loaded.
(gdb) b _exit
Breakpoint 2 (deferred) at "_exit" ("_exit" was not found).
Breakpoint deferred until a shared library containing "_exit" is loaded.
(gdb) r
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