<?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: Debugging a program, error with  XMapWindow function. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/debugging-a-program-error-with-xmapwindow-function/m-p/4413446#M682222</link>
    <description>Where is your full stack trace?&lt;BR /&gt;Have you compiled with -g?  That should give the line number.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;The problem is located in a function called ZtDo but in the body of this function I have not found the XMapWindow.&lt;BR /&gt;&lt;BR /&gt;Perhaps there is an evil macro that expands to XMapWindow?&lt;BR /&gt;Compile with -E and save stdout.&lt;BR /&gt;</description>
    <pubDate>Wed, 06 May 2009 00:28:09 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2009-05-06T00:28:09Z</dc:date>
    <item>
      <title>Debugging a program, error with  XMapWindow function.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/debugging-a-program-error-with-xmapwindow-function/m-p/4413445#M682221</link>
      <description>Hello I have copiled rencently an old program from a version 10 of the HPUX to the 11.11.&lt;BR /&gt;&lt;BR /&gt;The program crashes and when I'm debugging it resturns me the following messege in the line which causes the failure.&lt;BR /&gt;&lt;BR /&gt;Program received signal SIGBUS, Bus error.&lt;BR /&gt;0x7adf99a8 in XMapWindow () from /usr/lib/X11R6/libX11.3&lt;BR /&gt;&lt;BR /&gt;I have been trying to find the line where the function XMapWindow is called. But after a long search under the call from one c file to another I have not get anything.&lt;BR /&gt;&lt;BR /&gt;The probles is located in a function called ZtDo but in the body of this function I have not found the XMapWindow.&lt;BR /&gt;&lt;BR /&gt;Anyone could give a clue about how to search the problem?&lt;BR /&gt;&lt;BR /&gt;I Know I am not very especific, but I can't access to the body of the function with the debugger.&lt;BR /&gt;&lt;BR /&gt;I link the function code here if it can help.&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Tue, 05 May 2009 14:45:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/debugging-a-program-error-with-xmapwindow-function/m-p/4413445#M682221</guid>
      <dc:creator>Eder Urruela</dc:creator>
      <dc:date>2009-05-05T14:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging a program, error with  XMapWindow function.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/debugging-a-program-error-with-xmapwindow-function/m-p/4413446#M682222</link>
      <description>Where is your full stack trace?&lt;BR /&gt;Have you compiled with -g?  That should give the line number.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;The problem is located in a function called ZtDo but in the body of this function I have not found the XMapWindow.&lt;BR /&gt;&lt;BR /&gt;Perhaps there is an evil macro that expands to XMapWindow?&lt;BR /&gt;Compile with -E and save stdout.&lt;BR /&gt;</description>
      <pubDate>Wed, 06 May 2009 00:28:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/debugging-a-program-error-with-xmapwindow-function/m-p/4413446#M682222</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-05-06T00:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging a program, error with  XMapWindow function.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/debugging-a-program-error-with-xmapwindow-function/m-p/4413447#M682223</link>
      <description>&amp;gt;Where is your full stack trace?&lt;BR /&gt;&amp;gt;Have you compiled with -g? That should give the line number.&lt;BR /&gt;&lt;BR /&gt;It was compiled with -g? but the call and I dont Know why, but I can not access to the code of the ZtDo function in debugging mode.&lt;BR /&gt;&lt;BR /&gt;The trace is the following.&lt;BR /&gt;&lt;BR /&gt;Debuggind fist at all the program ivibuild calls to a funciÃ³n DzRestoreStatWindow()&lt;BR /&gt;This function has the body in the liberror.c&lt;BR /&gt;and the problems and the line in CDzRestoreStatWindow() who causes de failure is the following "rtn &amp;amp;= CustomStatText(MsgWinID);"&lt;BR /&gt;&lt;BR /&gt;CustomStatText is called in othe program called libIVI. and calls the following function "DzFByObjName(baseObject, objName)" and this function is in other program statwidow.c&lt;BR /&gt;An in this last function is where is called the ZtDo function from do.c, but the debugger does not open do.c and I cant follow with the search.&lt;BR /&gt;&lt;BR /&gt;When I do a a new compilation of do.c with -E I haven't found any XMapWindow function.&lt;BR /&gt;&lt;BR /&gt;It's so confusing.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;</description>
      <pubDate>Wed, 06 May 2009 10:04:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/debugging-a-program-error-with-xmapwindow-function/m-p/4413447#M682223</guid>
      <dc:creator>Eder Urruela</dc:creator>
      <dc:date>2009-05-06T10:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging a program, error with  XMapWindow function.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/debugging-a-program-error-with-xmapwindow-function/m-p/4413448#M682224</link>
      <description>&amp;gt;I can not access to the code of the ZtDo function in debug mode.&lt;BR /&gt;&lt;BR /&gt;Any particular messages?&lt;BR /&gt;What compiler version are you using?  What gdb version?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;The trace is the following.&lt;BR /&gt;&lt;BR /&gt;Please provide the gdb bt output.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;And in this last function is where is called the ZtDo function from do.c, but the debugger does not open do.c&lt;BR /&gt;&lt;BR /&gt;You can use the "dir" command to add the source path.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;When I do a a new compilation of do.c with -E I haven't found any XMapWindow function.&lt;BR /&gt;&lt;BR /&gt;Then one way of calling XMapWindow would be through a pointer to a function, an indirect call.</description>
      <pubDate>Wed, 06 May 2009 18:56:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/debugging-a-program-error-with-xmapwindow-function/m-p/4413448#M682224</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-05-06T18:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging a program, error with  XMapWindow function.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/debugging-a-program-error-with-xmapwindow-function/m-p/4413449#M682225</link>
      <description>&amp;gt;Any particular messages?&lt;BR /&gt;&lt;BR /&gt;I upload a txt where are all the messeges the gdb returns in the debugging process.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Please provide the gdb bt output.&lt;BR /&gt;&lt;BR /&gt;I don't know what is the gdb bt output. I hope it were the file I have uploaded.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Then one way of calling XMapWindow would be through a pointer to a function, an indirect call.&lt;BR /&gt;&lt;BR /&gt;I'm thinking about the call to the ZtDo function, this function comes from another libary, and the parameter of the function call could be mistaken.&lt;BR /&gt;&lt;BR /&gt;ZtDo(MsgWinID,ZtUPDATE,NULL);&lt;BR /&gt;&lt;BR /&gt;ZtUPDATE parametes comes from extern and I thinks is possible that this parameter cotains data that could provoque the error.&lt;BR /&gt;&lt;BR /&gt;Thank you for your time.</description>
      <pubDate>Fri, 08 May 2009 06:40:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/debugging-a-program-error-with-xmapwindow-function/m-p/4413449#M682225</guid>
      <dc:creator>Eder Urruela</dc:creator>
      <dc:date>2009-05-08T06:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging a program, error with  XMapWindow function.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/debugging-a-program-error-with-xmapwindow-function/m-p/4413450#M682226</link>
      <description>&amp;gt;I don't know what is the gdb bt output.&lt;BR /&gt;&lt;BR /&gt;You execute the "bt" command to get a stack trace.&lt;BR /&gt;&lt;BR /&gt;You are also using an obsolete gdb, the latest is 6.0.  You can download it from:&lt;BR /&gt;&lt;A href="http://www.hp.com/go/wdb" target="_blank"&gt;http://www.hp.com/go/wdb&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 08 May 2009 15:18:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/debugging-a-program-error-with-xmapwindow-function/m-p/4413450#M682226</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-05-08T15:18:40Z</dc:date>
    </item>
  </channel>
</rss>

