<?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: Need some guide on solving such problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/need-some-guide-on-solving-such-problem/m-p/5292613#M475002</link>
    <description>&lt;P&gt;&amp;gt;I copied core and binary to another server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can't do that without all of the load modules used.&amp;nbsp; That's why you use gdb's packcore command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;On the original server the call stack does look different:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the only one that matters.&amp;nbsp; Again what signal did you get?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#0 0x9ed4 in M611f_decodeDPData (c_r_funcCode_b=0 '\000', c_r_objHdr_p=0x0, c_r_&lt;BR /&gt;areaGrpPara_p=0x7f7f24c0, c_r_DPTypeInst_p=0xc3550a50, c_r_record_pb=0x7f7f2d64&lt;BR /&gt;"@.?\360\300\031\263\340", c_w_length_pu=0x7f7f24bc) at /projects/a7tm/access7/ms/m61/m611f.c:225&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's on m611f.c:225﻿?&amp;nbsp; What variables are being used and what are their values?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;while using WDB, the stack looks different and has two more frames:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WDG-GUI?&amp;nbsp; And you ran it on the original server﻿?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;gt;This message "warning: GDB cannot print complete stack trace since some shared libraries are missing. &amp;gt;Does it mean anything?﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It means you need to use packcore &amp;amp; unpackcore.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Aug 2011 09:47:14 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2011-08-05T09:47:14Z</dc:date>
    <item>
      <title>Need some guide on solving such problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-some-guide-on-solving-such-problem/m-p/5291059#M474952</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a tough problem. Tough for me, may not for you. :)&lt;/P&gt;&lt;P&gt;I have a process called m61 running on HP-UX server and it cores.&lt;/P&gt;&lt;P&gt;The call stack&amp;nbsp;looks like&lt;/P&gt;&lt;P&gt;(gdb) bt&lt;BR /&gt;#0&amp;nbsp; 0x9ed4 in M611f_decodeDPData (c_r_funcCode_b=0 '\000', c_r_objHdr_p=0x0, c_r_areaGrpPara_p=0x7f7f24c0, c_r_DPTypeInst_p=0xc3550a50,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; c_r_record_pb=0x7f7f2d64 "@.?\360\300\031\263\340", c_w_length_pu=0x7f7f24bc) at /projects/a7tm/access7/ms/m61/m611f.c:225&lt;BR /&gt;#1&amp;nbsp; 0x9790 in M611e_procDPType (c_r_DPType_p=0x7f7f1fac) at /projects/a7tm/access7/ms/m61/m611e.c:371&lt;BR /&gt;#2&amp;nbsp; 0x6d98 in main () at /projects/a7tm/access7/ms/m61/m6100.c:340&lt;BR /&gt;#3&amp;nbsp; 0x9eac in M611f_decodeDPData (c_r_funcCode_b=154 '\232', c_r_objHdr_p=0x7f7f1b7b, c_r_areaGrpPara_p=0x7f7f1b64, c_r_DPTypeInst_p=0x7f7f1b52,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; c_r_record_pb=0x7f7f1b3a "&lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;SDU_DEBUG_PRINT_MSGID=0&lt;/FONT&gt;&lt;/STRONG&gt;", c_w_length_pu=0x7f7f1b1a) at /projects/a7tm/access7/ms/m61/m611f.c:215&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What surprised me is the red string &lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;SDU_DEBUG_PRINT_MSGID=0.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; while c_r_record_pb should be the message body.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;This string is defined&amp;nbsp;in a shell script which should be absolutely unrelated to this core and the process m61. I am sure the scritp was not excuted at that moment. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Then why a string a thousand miles away appears in the core? I feel I used up my intelligence.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;This problem looks like the process attempts to reach address out of its own scope and finnaly hit the disk file??. I can only guess. But I don't know how to troubleshoot such problem.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Please kindly help me out. Any tools any techniques are mostly welcome.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I don't know 100% sure&amp;nbsp;which community is the best place to post. This one looks proper to me. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Please the manager&amp;nbsp;don't delete it if I post to a wrong place. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thanks a lot.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Best Regards&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Kang&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2011 06:36:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-some-guide-on-solving-such-problem/m-p/5291059#M474952</guid>
      <dc:creator>arking1981</dc:creator>
      <dc:date>2011-08-04T06:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need some guide on solving such problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-some-guide-on-solving-such-problem/m-p/5291117#M474953</link>
      <description>&lt;P&gt;by run strings core | grep SDU_DEBUG_PRINT_MSGID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can find it. So I guess it is included in the data segment of the binary, and the pointer was wrong lead to the data segment. Could it be? How to troubleshoot such problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kang&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2011 07:13:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-some-guide-on-solving-such-problem/m-p/5291117#M474953</guid>
      <dc:creator>arking1981</dc:creator>
      <dc:date>2011-08-04T07:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need some guide on solving such problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-some-guide-on-solving-such-problem/m-p/5291247#M474957</link>
      <description>&lt;P&gt;The pointer looks to be in the stack so it is very probable it points to an env varigable so if the process was lauched by a script which sourced the script which contain it is possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible that&amp;nbsp; M611f_decodeDPData﻿ parse the env variables? ( with getenv or by hand?)&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2011 08:56:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-some-guide-on-solving-such-problem/m-p/5291247#M474957</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2011-08-04T08:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need some guide on solving such problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-some-guide-on-solving-such-problem/m-p/5291347#M474963</link>
      <description>&lt;P&gt;&amp;gt;I have a process called m61 running on HP-UX server and it cores.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which specific signal?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;What surprised me is the red string &lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;SDU_DEBUG_PRINT_MSGID=0.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; while c_r_record_pb should be the message body.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;It's not aborting in frame 3 but in frame 0.&amp;nbsp; You've figured out it is due to c_r_record_pb﻿?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;gt;This string is defined&amp;nbsp;in a shell script which should be absolutely unrelated to this core and the process m61.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;If that script exports a variable with that string and is a parent (or indirect parent) of this process, then that string will be in argv.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;gt;Then why a string a thousand miles away appears in the core?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Either in the environment or the file was read.&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;gt;This problem looks like the process attempts to reach address out of its own scope and finally hit the disk file?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Not as easy as that.&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;gt;Any tools any techniques are mostly welcome.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Hardware watch points may help.&amp;nbsp; Also looking at the source to see where that comes from.&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;gt;I don't know 100% sure&amp;nbsp;which community is the best place to post.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;This is a language issue, not sysadmin.&amp;nbsp; I've asked the moderators to move it.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2011 09:51:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-some-guide-on-solving-such-problem/m-p/5291347#M474963</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-08-04T09:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need some guide on solving such problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-some-guide-on-solving-such-problem/m-p/5291511#M474972</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;Dennis Handly wrote:&lt;/P&gt;&lt;P&gt;&amp;gt;I have a process called m61 running on HP-UX server and it cores.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which specific signal?&lt;/P&gt;&lt;P&gt;[kang] 11, segment fault&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;What surprised me is the red string &lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;SDU_DEBUG_PRINT_MSGID=0.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; while c_r_record_pb should be the message body.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;It's not aborting in frame 3 but in frame 0.&amp;nbsp; You've figured out it is due to c_r_record_pb﻿?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;[kang] I think the error did occur in frame 3 but it didn't quit anyhow&amp;nbsp;and the adress space was messed up. &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;Then next run ( the main() is a message reading loop which in one turn processes an incoming message) it quit. Could this happen? &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;c_r_record_pb is the message body which should&amp;nbsp;never be&amp;nbsp;such a string. This string does exist and it is an environment. I think it sits in the data segment(or something like that). I have no idea how the program runs into its data segment. Maybe the message read in by the main() loop is corrupted. &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;Frame 0 has some wrong parameters too&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;gt;This string is defined&amp;nbsp;in a shell script which should be absolutely unrelated to this core and the process m61.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;If that script exports a variable with that string and is a parent (or indirect parent) of this process, then that string will be in argv.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;[kang]&amp;nbsp;it's not the parent. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;gt;Then why a string a thousand miles away appears in the core?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Either in the environment or the file was read.&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;gt;This problem looks like the process attempts to reach address out of its own scope and finally hit the disk file?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Not as easy as that.&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;gt;Any tools any techniques are mostly welcome.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Hardware watch points may help.&amp;nbsp; Also looking at the source to see where that comes from.&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;gt;I don't know 100% sure&amp;nbsp;which community is the best place to post.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;This is a language issue, not sysadmin.&amp;nbsp; I've asked the moderators to move it.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2011 11:51:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-some-guide-on-solving-such-problem/m-p/5291511#M474972</guid>
      <dc:creator>arking1981</dc:creator>
      <dc:date>2011-08-04T11:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need some guide on solving such problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-some-guide-on-solving-such-problem/m-p/5291607#M474977</link>
      <description>&lt;P&gt;&amp;gt;I guess it is included in the data segment of the binary, and the pointer was wrong lead to the data segment. Could it be?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the debugger prints it, it's in the processes data area.&lt;/P&gt;&lt;P&gt;You need to print out all frames and see what frame 4 was passing as c_r_record_pb﻿ and then find out where that came from.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If argv, you might want to print those in main.&lt;/P&gt;&lt;P&gt;Either by changing the program or by doing in the debugger.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wait a minute, how can frame 3 be calling main at frame 2?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you looking at the core file on the server where it aborted?&amp;nbsp; If not, you need to do a packcore to move it to another system.&lt;/P&gt;&lt;P&gt;Or are you running the application live?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2011 12:53:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-some-guide-on-solving-such-problem/m-p/5291607#M474977</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-08-04T12:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need some guide on solving such problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-some-guide-on-solving-such-problem/m-p/5292401#M474997</link>
      <description>&lt;P&gt;Thanks Dennis.&lt;/P&gt;&lt;P&gt;You are right. I copies to core and binary to another server. On the original server the call stack does look different:&lt;/P&gt;&lt;P&gt;(gdb) bt&lt;/P&gt;&lt;P&gt;#0 0x9ed4 in M611f_decodeDPData (c_r_funcCode_b=0 '\000', c_r_objHdr_p=0x0, c_r_areaGrpPara_p=0x7f7f24c0, c_r_DPTypeInst_p=0xc3550a50, c_r_record_pb=0x7f7f2d64 "@.?\360\300\031\263\340", c_w_length_pu=0x7f7f24bc) at /projects/a7tm/access7/ms/m61/m611f.c:225&lt;/P&gt;&lt;P&gt;#1 0x9790 in M611e_procDPType (c_r_DPType_p=0x7f7f1fac) at /projects/a7tm/access7/ms/m61/m611e.c:371&lt;/P&gt;&lt;P&gt;#2 0x6d98 in main () at /projects/a7tm/access7/ms/m61/m6100.c:340 this is printed by gdb 6.1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;while using WDB, the stack looks different and has two more frames:&lt;/P&gt;&lt;P&gt;#0 0x9ed4 in M611f_decodeDPData (c_r_funcCode_b=0 '\000', c_r_objHdr_p=0x0, c_r_areaGrpPara_p=0x7f7f24c0, c_r_DPTypeInst_p=0xc3550a50, c_r_record_pb=0x7f7f2d64 "@.?\360\300\031\263\340", c_w_length_pu=0x7f7f24bc) at /projects/a7tm/access7/ms/m61/m611f.c:225&lt;/P&gt;&lt;P&gt;#1 0x9790 in M611e_procDPType (c_r_DPType_p=0x7f7f1fac) at /projects/a7tm/access7/ms/m61/m611e.c:371&lt;/P&gt;&lt;P&gt;#2 0x6d98 in main () at /projects/a7tm/access7/ms/m61/m6100.c:340&lt;/P&gt;&lt;P&gt;#3 0x6b24 in main () at /projects/a7tm/access7/ms/m61/m6100.c:152 warning: GDB cannot print complete stack trace since some shared libraries are missing. Set GDB_SHLIB_PATH and try again.&lt;/P&gt;&lt;P&gt;#4 0x4f4c445c in ()&lt;/P&gt;&lt;P&gt;#5 0x9eac in M611f_decodeDPData (c_r_funcCode_b=Cannot access memory at address 0x7f7eff1f ) at /projects/a7tm/access7/ms/m61/m611f.c:215 Cannot access memory at address 0x7f7eff2c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This message "warning: GDB cannot print complete stack trace since some shared libraries are missing. Set GDB_SHLIB_PATH and try again." appears. Does it mean anything?&lt;/P&gt;</description>
      <pubDate>Sat, 06 Aug 2011 03:11:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-some-guide-on-solving-such-problem/m-p/5292401#M474997</guid>
      <dc:creator>arking1981</dc:creator>
      <dc:date>2011-08-06T03:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need some guide on solving such problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-some-guide-on-solving-such-problem/m-p/5292413#M474998</link>
      <description>I am sorry for the formating. The new hp forum seems much more difficulty to use than the old one. I hope it can become as well as the old soon.</description>
      <pubDate>Fri, 05 Aug 2011 07:02:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-some-guide-on-solving-such-problem/m-p/5292413#M474998</guid>
      <dc:creator>arking1981</dc:creator>
      <dc:date>2011-08-05T07:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Need some guide on solving such problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-some-guide-on-solving-such-problem/m-p/5292549#M474999</link>
      <description>&lt;P&gt;&amp;gt;I am sorry for the formatting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please go back and edit that post and correct the formatting.&amp;nbsp; Under Options on the right, select Edit Reply.&lt;/P&gt;&lt;P&gt;You can put block of code in box by using the clipboard with a [C] in it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't have problems like that.&amp;nbsp; Perhaps because I don't have "Turn on the Rich Text Editor" in my preferences?&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2011 09:34:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-some-guide-on-solving-such-problem/m-p/5292549#M474999</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-08-05T09:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need some guide on solving such problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-some-guide-on-solving-such-problem/m-p/5292613#M475002</link>
      <description>&lt;P&gt;&amp;gt;I copied core and binary to another server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can't do that without all of the load modules used.&amp;nbsp; That's why you use gdb's packcore command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;On the original server the call stack does look different:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the only one that matters.&amp;nbsp; Again what signal did you get?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#0 0x9ed4 in M611f_decodeDPData (c_r_funcCode_b=0 '\000', c_r_objHdr_p=0x0, c_r_&lt;BR /&gt;areaGrpPara_p=0x7f7f24c0, c_r_DPTypeInst_p=0xc3550a50, c_r_record_pb=0x7f7f2d64&lt;BR /&gt;"@.?\360\300\031\263\340", c_w_length_pu=0x7f7f24bc) at /projects/a7tm/access7/ms/m61/m611f.c:225&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's on m611f.c:225﻿?&amp;nbsp; What variables are being used and what are their values?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;while using WDB, the stack looks different and has two more frames:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WDG-GUI?&amp;nbsp; And you ran it on the original server﻿?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;gt;This message "warning: GDB cannot print complete stack trace since some shared libraries are missing. &amp;gt;Does it mean anything?﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It means you need to use packcore &amp;amp; unpackcore.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2011 09:47:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-some-guide-on-solving-such-problem/m-p/5292613#M475002</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-08-05T09:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need some guide on solving such problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-some-guide-on-solving-such-problem/m-p/5293231#M475005</link>
      <description>&lt;P&gt;Thanks Dannis. I edited the last post into a better formatted. It turns out to be the problem of my browser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/22676"&gt;@Dennis Handly&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;&amp;gt;I copied core and binary to another server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can't do that without all of the load modules used.&amp;nbsp; That's why you use gdb's packcore command.&lt;/P&gt;&lt;P&gt;[Kang] &amp;nbsp;ok, next time I will pack ti&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;On the original server the call stack does look different:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the only one that matters.&amp;nbsp; Again what signal did you get?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[kang] 11 the segment fault&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#0 0x9ed4 in M611f_decodeDPData (c_r_funcCode_b=0 '\000', c_r_objHdr_p=0x0, c_r_&lt;BR /&gt;areaGrpPara_p=0x7f7f24c0, c_r_DPTypeInst_p=0xc3550a50, c_r_record_pb=0x7f7f2d64&lt;BR /&gt;"@.?\360\300\031\263\340", c_w_length_pu=0x7f7f24bc) at /projects/a7tm/access7/ms/m61/m611f.c:225&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's on m611f.c:225﻿?&amp;nbsp; What variables are being used and what are their values?&lt;/P&gt;&lt;P&gt;&amp;nbsp;[kang] it is a memcpy, and the poiter is 0x0. I know this leads to a segment fault. but only knowing this is not sufficient to troubleshoot the root cause. It is not common we have such an error as this program is running well at so many other servers. So I guess something outside affects it, just my guess. It will be greate if any tools or techniques can help find the root cause.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;while using WDB, the stack looks different and has two more frames:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WDG-GUI?&amp;nbsp; And you ran it on the original server﻿?&lt;/P&gt;&lt;P&gt;[kang] yes on the original server&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;gt;This message "warning: GDB cannot print complete stack trace since some shared libraries are missing. &amp;gt;Does it mean anything?﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It means you need to use packcore &amp;amp; unpackcore.&lt;/P&gt;&lt;P&gt;[kang] but I was on the orignial server&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;Your advices are mostly welcome.&amp;nbsp;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;Thanks again.&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;kang&lt;/P&gt;</description>
      <pubDate>Sat, 06 Aug 2011 03:19:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-some-guide-on-solving-such-problem/m-p/5293231#M475005</guid>
      <dc:creator>arking1981</dc:creator>
      <dc:date>2011-08-06T03:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need some guide on solving such problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-some-guide-on-solving-such-problem/m-p/5293339#M475012</link>
      <description>&lt;DIV&gt;&amp;gt; &amp;gt;That's why you use gdb's packcore command&lt;BR /&gt;&lt;P&gt;[Kang]&amp;nbsp; ok, next time I will pack it&lt;BR /&gt;&lt;BR /&gt;You may need to redo it this time to get reasonable results.&lt;BR /&gt;&lt;BR /&gt;[kang] it is a memcpy, and the pointer is 0x0.&lt;BR /&gt;&amp;gt;only knowing this is not sufficient to troubleshoot the root cause.﻿&lt;BR /&gt;&lt;BR /&gt;What are the source and target variable names?&amp;nbsp; You need to track where they are initialized or assigned.&lt;BR /&gt;Are they globals, locals or parms?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;as this program is running well at so many other servers. So I guess something outside affects it&lt;BR /&gt;&lt;BR /&gt;It could be a latent bug or something depending on the command line, environment or a data file.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;It will be great if any tools or techniques can help find the root cause.&lt;BR /&gt;&lt;BR /&gt;If you know it works in some cases, you can track down where the variable gets set to a proper value.&amp;nbsp; If it later gets reset to 0, you can put a hardware watch point on it.&lt;BR /&gt;&lt;BR /&gt;[kang] yes on the original server&lt;BR /&gt;&lt;BR /&gt;Better to stick with plain gdb.&amp;nbsp; What version is on the original server?&lt;BR /&gt;&lt;BR /&gt;[kang] but I was on the original server&lt;BR /&gt;&lt;BR /&gt;It could mean the stack is corrupted?&lt;BR /&gt;&lt;BR /&gt;What language are you using?&amp;nbsp; What compiler version?&lt;BR /&gt;aCC6 has +check=bounds and +check=uninit.﻿&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 06 Aug 2011 13:19:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-some-guide-on-solving-such-problem/m-p/5293339#M475012</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-08-06T13:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Need some guide on solving such problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-some-guide-on-solving-such-problem/m-p/5295025#M475057</link>
      <description>Dennis, thanks. Are you referring to override the signal handler for SEGMENT_FAULT(11) with my own one by saying hardware watch point?</description>
      <pubDate>Tue, 09 Aug 2011 07:08:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-some-guide-on-solving-such-problem/m-p/5295025#M475057</guid>
      <dc:creator>arking1981</dc:creator>
      <dc:date>2011-08-09T07:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need some guide on solving such problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-some-guide-on-solving-such-problem/m-p/5295291#M475067</link>
      <description>&lt;P&gt;&amp;gt;Are you referring to override the signal handler ... by saying hardware watch point?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No, this is a gdb hardware watch point.&lt;/P&gt;&lt;P&gt;(gdb) watch *(void**)0x.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will do a hardware watch point on the above hex address for 4 byte value.&lt;/P&gt;&lt;P&gt;This runs at hardware speeds, not gdb software.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2011 12:07:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-some-guide-on-solving-such-problem/m-p/5295291#M475067</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-08-09T12:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need some guide on solving such problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-some-guide-on-solving-such-problem/m-p/5295943#M475092</link>
      <description>&lt;P&gt;Aha, greate. This is new technology for me.&lt;/P&gt;&lt;P&gt;Thanks a lot, Dennis. I would try it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it is a pity I can't assign points as what we did in the old HP. &amp;nbsp;:)&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2011 02:24:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-some-guide-on-solving-such-problem/m-p/5295943#M475092</guid>
      <dc:creator>arking1981</dc:creator>
      <dc:date>2011-08-10T02:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need some guide on solving such problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-some-guide-on-solving-such-problem/m-p/5296527#M475114</link>
      <description>&lt;P&gt;&amp;gt;it is a pity I can't assign points as what we did in the old HP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can assign kudos for every answer if you want.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2011 12:50:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-some-guide-on-solving-such-problem/m-p/5296527#M475114</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-08-10T12:50:27Z</dc:date>
    </item>
  </channel>
</rss>

