<?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: application dumping core during system reboot in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076417#M691331</link>
    <description>&amp;gt;Was the data useful?&lt;BR /&gt;&lt;BR /&gt;Nothing obvious.&lt;BR /&gt;If you still have your core file can you do:&lt;BR /&gt;(gdb) x /s *(void**)($sp-0x40)&lt;BR /&gt;(gdb) x /s *(void**)($sp-0x3c)&lt;BR /&gt;(gdb) p /x $ret0&lt;BR /&gt;&lt;BR /&gt;This should print out the input string to get_origin.  And the result of dld_realpath and the result of dld_strrchr.&lt;BR /&gt;&lt;BR /&gt;In your chatr(1) output I see:&lt;BR /&gt;dynamic   /usr/lib/libstd.2&lt;BR /&gt;dynamic   /usr/lib/libstream.2&lt;BR /&gt;dynamic   /usr/lib/libCsup.2&lt;BR /&gt;&lt;BR /&gt;But some of the ldd output has the wrong order:&lt;BR /&gt;/usr/lib/libCsup.2 =&amp;gt;   /usr/lib/libCsup.2&lt;BR /&gt;/usr/lib/libstream.2 =&amp;gt; /usr/lib/libstream.2&lt;BR /&gt;/usr/lib/libstd.2 =&amp;gt;    /usr/lib/libstd.2&lt;BR /&gt;&lt;BR /&gt;You may have to use "ldd -v" or chatr(1) on every shlib until you find this bad order.&lt;BR /&gt;(Or perhaps ldd doesn't have any ordering in its output??)&lt;BR /&gt;&lt;BR /&gt;I do see some strange relative paths:&lt;BR /&gt;/usr/lib/libdld.2 =&amp;gt;    ../lib/libdld.2&lt;BR /&gt;&lt;BR /&gt;But this is in the "after" list too.&lt;BR /&gt;Comparing the RHS of each "=&amp;gt;" I get matches for before and after.&lt;BR /&gt;&lt;BR /&gt;Your files that use $ORIGIN all appear to be in /opt/VRTSob, which appears to be:&lt;BR /&gt;/opt on /dev/vg00/lvol5 ioerror=mwdisable,largefiles,delaylog,dev=40000005&lt;BR /&gt;&lt;BR /&gt;I did find out that one of your shlibs is illegally being built with -AA.  You can't mix -AA and -AP.  You have one with libCsup_v2.2 and the rest with libCsup.2.</description>
    <pubDate>Sat, 03 Nov 2007 02:47:28 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2007-11-03T02:47:28Z</dc:date>
    <item>
      <title>application dumping core during system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076405#M691319</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;We have an application on 11.23 which dumps core when it is started during system reboot by rc scripts.&lt;BR /&gt;&lt;BR /&gt;The core file shows. &lt;BR /&gt;&lt;BR /&gt;Program terminated with signal 10, Bus error.&lt;BR /&gt;&lt;BR /&gt;warning: The shared libraries were not privately mapped; setting a&lt;BR /&gt;breakpoint in a shared library will not work until you rerun the program.&lt;BR /&gt;&lt;BR /&gt;(no debugging symbols found)...(no debugging symbols found)...#0  0xc002f65c in stat64+0xbfffd8f4 () from /usr/lib/dld.sl&lt;BR /&gt;(gdb) bt&lt;BR /&gt;#0  0xc002f65c in stat64+0xbfffd8f4 () from /usr/lib/dld.sl&lt;BR /&gt;warning: Attempting to unwind past bad PC 0xc002f65c &lt;BR /&gt;#1  0xc002f658 in stat64+0xbfffd8f0 () from /usr/lib/dld.sl&lt;BR /&gt;#2  0xc002f658 in stat64+0xbfffd8f0 () from /usr/lib/dld.sl&lt;BR /&gt;(gdb) &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;interesting thing is that starting the application after system reboot succeeds.&lt;BR /&gt;&lt;BR /&gt;Any clues? &lt;BR /&gt;&lt;BR /&gt;Sri</description>
      <pubDate>Fri, 26 Oct 2007 03:02:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076405#M691319</guid>
      <dc:creator>Srimalik</dc:creator>
      <dc:date>2007-10-26T03:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: application dumping core during system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076406#M691320</link>
      <description>This stack trace isn't helpful because of the bogus offsets.  What gdb version are you using?</description>
      <pubDate>Fri, 26 Oct 2007 03:19:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076406#M691320</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-10-26T03:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: application dumping core during system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076407#M691321</link>
      <description>Because you can startup after the reboot manualy the problem can be caused by 2 problems:&lt;BR /&gt;1 you started it up to ealy in the boot proces&lt;BR /&gt;2 the script was built thet it can only be started manaly, if so you properly alsow can not start it by cron...&lt;BR /&gt;reason normaly is that the script does not start whit someling like #!/sbin/sh&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Oct 2007 03:53:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076407#M691321</guid>
      <dc:creator>F Verschuren</dc:creator>
      <dc:date>2007-10-26T03:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: application dumping core during system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076408#M691322</link>
      <description>&lt;BR /&gt;####gdb version is 3.1&lt;BR /&gt;&lt;BR /&gt;ccxrthp1# /tmp/gdb/gdb -v&lt;BR /&gt;HP gdb 3.1 for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00.&lt;BR /&gt;Copyright 1986 - 2001 Free Software Foundation, Inc.&lt;BR /&gt;####&lt;BR /&gt;gdb is showing a proper stack if I start the application manually after system reboot by the same command and force it to dump a core by " kill -ABRT 12345" command.&lt;BR /&gt;&lt;BR /&gt;####&lt;BR /&gt;&lt;BR /&gt;The same application is started by rc scripts without problems on another machine.&lt;BR /&gt;This is the first time we are seeing this issue.&lt;BR /&gt;&lt;BR /&gt;Also, our application changeds its CWD after starting and if it dumps, the core should be present in that directory. It has always been the case if the application dumps a core due to some other reasons.&lt;BR /&gt;&lt;BR /&gt;In this case its the core file is created on root dir. So, it make me to think that it dumps core before it actually starts executinng. &lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Sri</description>
      <pubDate>Fri, 26 Oct 2007 04:10:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076408#M691322</guid>
      <dc:creator>Srimalik</dc:creator>
      <dc:date>2007-10-26T04:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: application dumping core during system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076409#M691323</link>
      <description>&amp;gt;gdb version is 3.1&lt;BR /&gt;&lt;BR /&gt;The latest is 5.7.  You need to download the latest.  &lt;A href="http://www.hp.com/go/wdb" target="_blank"&gt;http://www.hp.com/go/wdb&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;gdb is showing a proper stack if I start the application manually&lt;BR /&gt;&lt;BR /&gt;But you don't want to debug that one.  :-)&lt;BR /&gt;What shlibs does it use?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;it make me to think that it dumps core before it actually starts executing. &lt;BR /&gt;&lt;BR /&gt;That's possible.  If there was a dld problem, you would expect a message on stderr.  And /usr/lib is mounted.</description>
      <pubDate>Fri, 26 Oct 2007 04:37:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076409#M691323</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-10-26T04:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: application dumping core during system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076410#M691324</link>
      <description>With the new gdb, I am getting a proper stack trace.&lt;BR /&gt;&lt;BR /&gt;################&lt;BR /&gt;Program terminated with signal 10, Bus error.&lt;BR /&gt;&lt;BR /&gt;(no debugging symbols found)...#0  0xc002f65c in get_origin+0x40 () from /usr/lib/dld.sl&lt;BR /&gt;(gdb) bt&lt;BR /&gt;#0  0xc002f65c in get_origin+0x40 () from /usr/lib/dld.sl&lt;BR /&gt;#1  0xc001ae4c in map_shlib+0x11ac () from /usr/lib/dld.sl&lt;BR /&gt;#2  0xc0018a78 in form_load_graph+0x1a4 () from /usr/lib/dld.sl&lt;BR /&gt;#3  0xc001958c in form_load_graph+0xcb8 () from /usr/lib/dld.sl&lt;BR /&gt;#4  0xc0028020 in finish_dld_main+0x1024 () from /usr/lib/dld.sl&lt;BR /&gt;#5  0xc002b9d4 in _dld_main+0x1c8 () from /usr/lib/dld.sl&lt;BR /&gt;#6  0xba8c in __map_dld+0x4e4 ()&lt;BR /&gt;#7  0xb0cc in $START$+0xd4 ()&lt;BR /&gt;#8  0xc002f658 in get_origin+0x3c () from /usr/lib/dld.sl&lt;BR /&gt;(gdb) infor threads&lt;BR /&gt;Undefined command: "infor".  Try "help".&lt;BR /&gt;(gdb) info threads&lt;BR /&gt;*   1 system thread 2263   0xc002f65c in get_origin+0x40 () from /usr/lib/dld.sl&lt;BR /&gt;(gdb) &lt;BR /&gt;############&lt;BR /&gt;&lt;BR /&gt;But still its failing before it enters in our code.&lt;BR /&gt;&lt;BR /&gt;########&lt;BR /&gt;&lt;BR /&gt;I added a trace to find whether /usr/lib is mounted before the command is run...but everything seems to be OK.&lt;BR /&gt;&lt;BR /&gt;Any ideas what may be happening ? &lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Sri&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Oct 2007 05:58:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076410#M691324</guid>
      <dc:creator>Srimalik</dc:creator>
      <dc:date>2007-10-26T05:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: application dumping core during system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076411#M691325</link>
      <description>&amp;gt;With the new gdb, I am getting a proper stack trace.&lt;BR /&gt;&lt;BR /&gt;Right, much better.&lt;BR /&gt;&lt;BR /&gt;#0 0xc002f65c in get_origin+0x40 /usr/lib/dld.sl&lt;BR /&gt;&lt;BR /&gt;Do you use $ORIGIN in your shlib paths?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I added a trace to find whether /usr/lib is mounted before the command is run...but everything seems to be OK.&lt;BR /&gt;&lt;BR /&gt;Well /usr/lib/dld.sl is mounted.  What does ldd or chatr show on your executable?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Any ideas what may be happening?&lt;BR /&gt;&lt;BR /&gt;What version of dld.sl do you have?  Maybe you need a patch?&lt;BR /&gt;JAGag07378 $ORIGIN in filename cause dlgetfileinfo to dump core&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Oct 2007 17:32:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076411#M691325</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-10-26T17:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: application dumping core during system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076412#M691326</link>
      <description>&amp;gt;Do you use $ORIGIN in your shlib paths?&lt;BR /&gt;&lt;BR /&gt;We do not use ORIGIN in SHLIB_PATH, but we are using it in embedded path.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Well /usr/lib/dld.sl is mounted. What does &amp;gt;ldd or chatr show on your executable?&lt;BR /&gt;chatr shows: ( please let me know if you want full output)&lt;BR /&gt;&lt;BR /&gt;SHLIB_PATH enabled second&lt;BR /&gt;embedded path  enabled   first&lt;BR /&gt;and every path is prefixed with $ORIGIN&lt;BR /&gt;&lt;BR /&gt;ldd resolves all the dependencies without problems.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;What version of dld.sl do you have? Maybe &amp;gt;you need a patch?&lt;BR /&gt;&amp;gt;JAGag07378 $ORIGIN in filename cause &amp;gt;dlgetfileinfo to dump core&lt;BR /&gt;&lt;BR /&gt;1# what /usr/lib/dld.sl&lt;BR /&gt;/usr/lib/dld.sl:&lt;BR /&gt;         SMART_BIND&lt;BR /&gt;        92453-07 dld dld dld.sl B.11.62 070917&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This JAG is fixed in patch PHSS_37201, I have already installed this patch but it was of no help. :(&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;Sri</description>
      <pubDate>Mon, 29 Oct 2007 01:33:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076412#M691326</guid>
      <dc:creator>Srimalik</dc:creator>
      <dc:date>2007-10-29T01:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: application dumping core during system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076413#M691327</link>
      <description>the app is starting without problems during reboot on another machine, and dld.sl on that machine seems to be older than that at the machine on which we are facing problems.&lt;BR /&gt;&lt;BR /&gt;ccxrthp2# ls -l /usr/lib/dld.sl&lt;BR /&gt;-r-xr-xr-x   1 bin        bin         274432 Sep 14  2006 /usr/lib/dld.sl&lt;BR /&gt;ccxrthp2# what /usr/lib/dld.sl&lt;BR /&gt;/usr/lib/dld.sl:&lt;BR /&gt;         SMART_BIND&lt;BR /&gt;        92453-07 dld dld dld.sl B.11.57 060914&lt;BR /&gt;ccxrthp2#&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Oct 2007 02:11:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076413#M691327</guid>
      <dc:creator>Srimalik</dc:creator>
      <dc:date>2007-10-29T02:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: application dumping core during system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076414#M691328</link>
      <description>&amp;gt;but we are using it in embedded path.&lt;BR /&gt;&lt;BR /&gt;Yes, that's what I meant.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;and every path is prefixed with $ORIGIN&lt;BR /&gt;&lt;BR /&gt;What are those paths and what does ldd show for them?  Is this on a file system that isn't mounted until later?&lt;BR /&gt;Is there anyway you can run ldd just before you start your application up??&lt;BR /&gt;&lt;BR /&gt;&amp;gt;This CR is fixed in patch PHSS_37201, I have already installed this patch but it was of no help. :(&lt;BR /&gt;&lt;BR /&gt;I hate to think it broke it.  :-(</description>
      <pubDate>Mon, 29 Oct 2007 05:27:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076414#M691328</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-10-29T05:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: application dumping core during system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076415#M691329</link>
      <description>&lt;BR /&gt;&amp;gt;What are those paths &lt;BR /&gt;see chatr.txt in attached gz file&lt;BR /&gt;&lt;BR /&gt;&amp;gt; and what does ldd show for them? &lt;BR /&gt; &lt;BR /&gt;ldd_after_start.txt in attcahed gz&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Is this on a file system that isn't mounted &amp;gt;until later?&lt;BR /&gt;&amp;gt;Is there anyway you can run ldd just before &amp;gt;you start your application up??&lt;BR /&gt;&lt;BR /&gt;see info_during_reboot.txt in attached gz&lt;BR /&gt;&lt;BR /&gt;Sri</description>
      <pubDate>Mon, 29 Oct 2007 08:17:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076415#M691329</guid>
      <dc:creator>Srimalik</dc:creator>
      <dc:date>2007-10-29T08:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: application dumping core during system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076416#M691330</link>
      <description>Hi, Dennis &lt;BR /&gt;&lt;BR /&gt;Was the data useful ? &lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;Sri</description>
      <pubDate>Thu, 01 Nov 2007 04:39:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076416#M691330</guid>
      <dc:creator>Srimalik</dc:creator>
      <dc:date>2007-11-01T04:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: application dumping core during system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076417#M691331</link>
      <description>&amp;gt;Was the data useful?&lt;BR /&gt;&lt;BR /&gt;Nothing obvious.&lt;BR /&gt;If you still have your core file can you do:&lt;BR /&gt;(gdb) x /s *(void**)($sp-0x40)&lt;BR /&gt;(gdb) x /s *(void**)($sp-0x3c)&lt;BR /&gt;(gdb) p /x $ret0&lt;BR /&gt;&lt;BR /&gt;This should print out the input string to get_origin.  And the result of dld_realpath and the result of dld_strrchr.&lt;BR /&gt;&lt;BR /&gt;In your chatr(1) output I see:&lt;BR /&gt;dynamic   /usr/lib/libstd.2&lt;BR /&gt;dynamic   /usr/lib/libstream.2&lt;BR /&gt;dynamic   /usr/lib/libCsup.2&lt;BR /&gt;&lt;BR /&gt;But some of the ldd output has the wrong order:&lt;BR /&gt;/usr/lib/libCsup.2 =&amp;gt;   /usr/lib/libCsup.2&lt;BR /&gt;/usr/lib/libstream.2 =&amp;gt; /usr/lib/libstream.2&lt;BR /&gt;/usr/lib/libstd.2 =&amp;gt;    /usr/lib/libstd.2&lt;BR /&gt;&lt;BR /&gt;You may have to use "ldd -v" or chatr(1) on every shlib until you find this bad order.&lt;BR /&gt;(Or perhaps ldd doesn't have any ordering in its output??)&lt;BR /&gt;&lt;BR /&gt;I do see some strange relative paths:&lt;BR /&gt;/usr/lib/libdld.2 =&amp;gt;    ../lib/libdld.2&lt;BR /&gt;&lt;BR /&gt;But this is in the "after" list too.&lt;BR /&gt;Comparing the RHS of each "=&amp;gt;" I get matches for before and after.&lt;BR /&gt;&lt;BR /&gt;Your files that use $ORIGIN all appear to be in /opt/VRTSob, which appears to be:&lt;BR /&gt;/opt on /dev/vg00/lvol5 ioerror=mwdisable,largefiles,delaylog,dev=40000005&lt;BR /&gt;&lt;BR /&gt;I did find out that one of your shlibs is illegally being built with -AA.  You can't mix -AA and -AP.  You have one with libCsup_v2.2 and the rest with libCsup.2.</description>
      <pubDate>Sat, 03 Nov 2007 02:47:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076417#M691331</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-11-03T02:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: application dumping core during system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076418#M691332</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Not sure what the issue is but since you say that its working after system is booted i have a couple of questions :&lt;BR /&gt;---&amp;gt; how are you starting it ie from command prompt &lt;BR /&gt;---&amp;gt; does this require any terminal ( what is the stdin/stdout/stderr )&lt;BR /&gt;---&amp;gt; or is this a daemon program&lt;BR /&gt;---&amp;gt; have you tried running with nohup&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;RD</description>
      <pubDate>Sat, 03 Nov 2007 10:40:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076418#M691332</guid>
      <dc:creator>rajdev</dc:creator>
      <dc:date>2007-11-03T10:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: application dumping core during system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076419#M691333</link>
      <description>Thanks, Dennis&lt;BR /&gt;&lt;BR /&gt;Output of gdb commands given by you:&lt;BR /&gt;(gdb) x /s *(void**)($sp-0x40)&lt;BR /&gt;0x77ff0000:      "vxsvc"&lt;BR /&gt;(gdb) x /s *(void**)($sp-0x3c)&lt;BR /&gt;0x77fce36c:      ""&lt;BR /&gt;(gdb) p /x $ret0&lt;BR /&gt;$1 = 0x0&lt;BR /&gt;(gdb)&lt;BR /&gt;&lt;BR /&gt;I can not make out much from the output. :(&lt;BR /&gt;&lt;BR /&gt;I would be able to work on all other points on Monday only. :(&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rajdev,&lt;BR /&gt;This exe does not use teminal for stdot/in. We don't have to use nohup.&lt;BR /&gt;The command used is exactly same as the command used after reboot and as I have mentioned earlier, it works without problem on most of the machines.&lt;BR /&gt;&lt;BR /&gt;Both of you have a great weekend. :)</description>
      <pubDate>Sat, 03 Nov 2007 11:31:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076419#M691333</guid>
      <dc:creator>Srimalik</dc:creator>
      <dc:date>2007-11-03T11:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: application dumping core during system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076420#M691334</link>
      <description>&amp;gt;Output of gdb commands given by you:&lt;BR /&gt;(gdb) x /s *(void**)($sp-0x40)&lt;BR /&gt;0x77ff0000: "vxsvc"&lt;BR /&gt;(gdb) x /s *(void**)($sp-0x3c)&lt;BR /&gt;0x77fce36c: ""&lt;BR /&gt;&lt;BR /&gt;Basically this is saying that argv[0]? is not an absolute path so that dld's realpath has to sweat.  And something is going wrong there.&lt;BR /&gt;And unfortunately dld doesn't have any checking for this case.&lt;BR /&gt;&lt;BR /&gt;Years ago I found problem using dirname/basename on argv[0] and I had a case of a non-absolute path and the function aborted.  Later I was never able to duplicate it because ksh always provided the absolute path every time I tried to duplicate it.  Perhaps that's happening to you with the before and after the boot?  Something to do with shells and exec(2)?&lt;BR /&gt;&lt;BR /&gt;So the workaround may be simple, provide an absolute path to vxsvc.  (I assume that's what you were running?)&lt;BR /&gt;&lt;BR /&gt;In the meantime, you should contact the Response Center with your problem so they can put more checking into dld.  Unfortunately if realpath doesn't work or getcwd(3) fails, dld may give you an error that it can't compute $ORIGIN and you'll just abort with a nicer message.&lt;BR /&gt;&lt;BR /&gt;(You're not in a directory that gets removed out from under it?)&lt;BR /&gt;&lt;BR /&gt;(It would have been helpful if your attachment was .tar.gz or .tgz instead of just .gz.  It took me awhile to realize it was a tarfile.)</description>
      <pubDate>Sat, 03 Nov 2007 16:53:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076420#M691334</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-11-03T16:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: application dumping core during system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076421#M691335</link>
      <description>&lt;BR /&gt;&amp;gt;So the workaround may be simple, provide an &amp;gt;absolute path to vxsvc. (I assume that's &amp;gt;what you were running?)&lt;BR /&gt;Yes, I am running vxsvc.&lt;BR /&gt;Where do I need to give the absolute path?  we are already using the absolute path in the rc script which starts vxsvc.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;(You're not in a directory that gets removed &amp;gt;out from under it?)&lt;BR /&gt;&lt;BR /&gt;I think no, as the core is in / I think the working dir for a rc script is / by default. &lt;BR /&gt;&lt;BR /&gt;(It would have been helpful if your attachment was .tar.gz or .tgz instead of just .gz. It took me awhile to realize it was a tarfile.)&lt;BR /&gt;&lt;BR /&gt;Will keep that in mind for future.&lt;BR /&gt;&lt;BR /&gt;Sri</description>
      <pubDate>Sun, 04 Nov 2007 23:49:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076421#M691335</guid>
      <dc:creator>Srimalik</dc:creator>
      <dc:date>2007-11-04T23:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: application dumping core during system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076422#M691336</link>
      <description>&amp;gt;Where do I need to give the absolute path? we are already using the absolute path in the rc script which starts vxsvc.&lt;BR /&gt;&lt;BR /&gt;Well, that's where I would expect it.&lt;BR /&gt;If not there, perhaps it forks and execs itself?</description>
      <pubDate>Mon, 05 Nov 2007 02:21:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076422#M691336</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-11-05T02:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: application dumping core during system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076423#M691337</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; In the meantime, you should contact the&lt;BR /&gt; Response Center with your problem so they  &lt;BR /&gt; can  put more checking into dld.  &lt;BR /&gt; Unfortunately if   realpath doesn't work or  &lt;BR /&gt; getcwd(3) fails, dld  may give you an error  &lt;BR /&gt; that it can't compute  $ORIGIN and you'll  &lt;BR /&gt; just abort with a nicer message.&lt;BR /&gt;&lt;BR /&gt;Can't we fix this i.e cann't we prevent the abort instead of giving a nicer message? either in the application or the OS.&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;Sri</description>
      <pubDate>Mon, 26 Nov 2007 08:54:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076423#M691337</guid>
      <dc:creator>Srimalik</dc:creator>
      <dc:date>2007-11-26T08:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: application dumping core during system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076424#M691338</link>
      <description>&amp;gt;can't we prevent the abort instead of giving a nicer message? either in the application or the OS.&lt;BR /&gt;&lt;BR /&gt;You can't fix something that hasn't been reported.  Nor can you fix something if you can't duplicate.  Currently we can only check for the symptoms of the lack of error detection in get_origin.&lt;BR /&gt;&lt;BR /&gt;It might be interesting to see if exec(2) passed the absolute path to vxsvc.  (Do you still have that corefile?)  Or get the output of tusc to see what's different when it fails vs when it works.</description>
      <pubDate>Mon, 26 Nov 2007 11:18:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-dumping-core-during-system-reboot/m-p/5076424#M691338</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-11-26T11:18:07Z</dc:date>
    </item>
  </channel>
</rss>

