<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: different numerical results with/without the debugger! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/different-numerical-results-with-without-the-debugger/m-p/2703180#M902276</link>
    <description>Ravi,&lt;BR /&gt;&lt;BR /&gt;Its probably a runtime memory corruption, which the debugger suppresses.&lt;BR /&gt;Can you post the code snippet?&lt;BR /&gt;&lt;BR /&gt;Also, make sure that you have '#included' stdlib.h in case you are doing numeric operations.</description>
    <pubDate>Mon, 15 Apr 2002 05:43:01 GMT</pubDate>
    <dc:creator>Deepak Extross</dc:creator>
    <dc:date>2002-04-15T05:43:01Z</dc:date>
    <item>
      <title>different numerical results with/without the debugger!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/different-numerical-results-with-without-the-debugger/m-p/2703179#M902275</link>
      <description>hi,&lt;BR /&gt;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.&lt;BR /&gt;has someone faced this situation? how do i resolve this problem?&lt;BR /&gt;thanks,&lt;BR /&gt;ravi</description>
      <pubDate>Mon, 15 Apr 2002 03:10:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/different-numerical-results-with-without-the-debugger/m-p/2703179#M902275</guid>
      <dc:creator>Ravi Abrol</dc:creator>
      <dc:date>2002-04-15T03:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: different numerical results with/without the debugger!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/different-numerical-results-with-without-the-debugger/m-p/2703180#M902276</link>
      <description>Ravi,&lt;BR /&gt;&lt;BR /&gt;Its probably a runtime memory corruption, which the debugger suppresses.&lt;BR /&gt;Can you post the code snippet?&lt;BR /&gt;&lt;BR /&gt;Also, make sure that you have '#included' stdlib.h in case you are doing numeric operations.</description>
      <pubDate>Mon, 15 Apr 2002 05:43:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/different-numerical-results-with-without-the-debugger/m-p/2703180#M902276</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2002-04-15T05:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: different numerical results with/without the debugger!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/different-numerical-results-with-without-the-debugger/m-p/2703181#M902277</link>
      <description>thanks deepak,&lt;BR /&gt;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.&lt;BR /&gt;(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.)&lt;BR /&gt;&lt;BR /&gt;as for the stdlib.h issue, i saw that only about 10 of these C files contain #include &lt;STDLIB.H&gt; statements. do you think i should include it in all C files used? i saw one file that contained #include &lt;MEMORY.H&gt;. does that need to be included in all C files too?&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;BR /&gt;ravi&lt;/MEMORY.H&gt;&lt;/STDLIB.H&gt;</description>
      <pubDate>Mon, 15 Apr 2002 06:29:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/different-numerical-results-with-without-the-debugger/m-p/2703181#M902277</guid>
      <dc:creator>Ravi Abrol</dc:creator>
      <dc:date>2002-04-15T06:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: different numerical results with/without the debugger!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/different-numerical-results-with-without-the-debugger/m-p/2703182#M902278</link>
      <description>It's just one possibility that a missing #include stdlib is causing this.&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Apr 2002 06:50:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/different-numerical-results-with-without-the-debugger/m-p/2703182#M902278</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2002-04-15T06:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: different numerical results with/without the debugger!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/different-numerical-results-with-without-the-debugger/m-p/2703183#M902279</link>
      <description>hi deepak,&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;ravi</description>
      <pubDate>Mon, 15 Apr 2002 09:27:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/different-numerical-results-with-without-the-debugger/m-p/2703183#M902279</guid>
      <dc:creator>Ravi Abrol</dc:creator>
      <dc:date>2002-04-15T09:27:14Z</dc:date>
    </item>
  </channel>
</rss>

