- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- different numerical results with/without the debug...
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
04-14-2002 08:10 PM
04-14-2002 08:10 PM
different numerical results with/without the debugger!
i have a big C code running under MPI environment and i am using the totalview debugger, that helps me trace the code on more than one processor. the code runs correctly when i use the debugger and gives a wrong numerical result when i run it without the debugger. not only that, on every run without the debugger i get a different numerical answer.
has someone faced this situation? how do i resolve this problem?
thanks,
ravi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2002 10:43 PM
04-14-2002 10:43 PM
Re: different numerical results with/without the debugger!
Its probably a runtime memory corruption, which the debugger suppresses.
Can you post the code snippet?
Also, make sure that you have '#included' stdlib.h in case you are doing numeric operations.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2002 11:29 PM
04-14-2002 11:29 PM
Re: different numerical results with/without the debugger!
it won't be possible to post a code snippet, as i have a main C code 2000+ lines long and about 40 other C codes and about 10 fortran codes that contain functions called by the main C code.
(i have inherited this huge code and am trying to make it work on an HPUX superdome system under the MPI environment. this code is a big number cruncher involving lots and lots of matrix and vector operations.)
as for the stdlib.h issue, i saw that only about 10 of these C files contain #include
thanks,
ravi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2002 11:50 PM
04-14-2002 11:50 PM
Re: different numerical results with/without the debugger!
For example, if you use atoi() without #including stdlib, no error or warning will be reported at compile-time or runtime, but the result of the atoi will be erroneous and unpredictable.
It could also be a memory corruption caused by inaccurate coding - overshooting memory limits, using initialised memory, etc. Rational's Purify is a great tool for identifying these types of runtime errors.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2002 02:27 AM
04-15-2002 02:27 AM
Re: different numerical results with/without the debugger!
thanks for your reply! i cannot use purify since it doesn't accept my mpicc compiler. i have included stdlib.h in all C files and it is not helping. the code gives a different numerical value for every run not executed using the debugger.
ravi