<?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: SIGSEGV unless shared library mapped private enabled in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sigsegv-unless-shared-library-mapped-private-enabled/m-p/4395944#M681809</link>
    <description>Hi Jack:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I'll use this information in my argument for moving off B.11.00.&lt;BR /&gt;&lt;BR /&gt;Aside from 11.0 having dropped out of support in December 2006, the new features and security enhancements of current supported releases should entice your management to migrate.  You could at least run 11.11 on old K-class and D-class hardware if that's an issue :-)&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Wed, 08 Apr 2009 14:52:31 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2009-04-08T14:52:31Z</dc:date>
    <item>
      <title>SIGSEGV unless shared library mapped private enabled</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sigsegv-unless-shared-library-mapped-private-enabled/m-p/4395937#M681802</link>
      <description>&lt;!--!*#--&gt;My application runs fine under dbg, when "chatr +dbg enable", or when "pxdb -s on". Otherwise, it dies in libc.2. Here's a backtrace on the core:&lt;BR /&gt;&lt;BR /&gt;(gdb) bt&lt;BR /&gt;#0  ... in .stub+0x190 () from /usr/lib/pa20_64/libc.2&lt;BR /&gt;#1  ... in __nsw_getoneconfig+0x6d0 ()&lt;BR /&gt;   from /usr/lib/pa20_64/libc.2&lt;BR /&gt;#2  ... in __nsw_getconfig+0xcc () from /usr/lib/pa20_64/libc.2&lt;BR /&gt;#3  ... in .stub+0x130 () from /usr/lib/pa20_64/libc.2&lt;BR /&gt;#4  ... in nss_search+0x98 () from /usr/lib/pa20_64/libc.2&lt;BR /&gt;#5  ... in gethostbyaddr+0x13c () from /usr/lib/pa20_64/libc.2&lt;BR /&gt;#6  ... in hostaccess (sin=0x800003fffeedc23c) at tcpwrap.c:94&lt;BR /&gt;#7  ... in do_accept (fd=3) at socket_worker.c:519&lt;BR /&gt;#8  ... in socket_worker (arg=0x0) at socket_worker.c:303&lt;BR /&gt;#9  ... in __pthread_create_system+0x440 ()&lt;BR /&gt;   from /usr/lib/pa20_64/libpthread.1&lt;BR /&gt;&lt;BR /&gt;As a workaround, I'm using chatr to force private shared libraries.&lt;BR /&gt;&lt;BR /&gt;# uname -a&lt;BR /&gt;HP-UX ... B.11.00 U 9000/785 HP-UX&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Apr 2009 16:40:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sigsegv-unless-shared-library-mapped-private-enabled/m-p/4395937#M681802</guid>
      <dc:creator>Jack Kidwell</dc:creator>
      <dc:date>2009-04-06T16:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: SIGSEGV unless shared library mapped private enabled</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sigsegv-unless-shared-library-mapped-private-enabled/m-p/4395938#M681803</link>
      <description>(11.00 isn't supported.)&lt;BR /&gt;&lt;BR /&gt;This likely means that the program is trying to write to a readonly variable.&lt;BR /&gt;&lt;BR /&gt;After it aborts, what does this show?&lt;BR /&gt;(gdb) info reg&lt;BR /&gt;(gdb) disas $pc-4*12 $pc+4*8</description>
      <pubDate>Mon, 06 Apr 2009 23:00:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sigsegv-unless-shared-library-mapped-private-enabled/m-p/4395938#M681803</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-04-06T23:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: SIGSEGV unless shared library mapped private enabled</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sigsegv-unless-shared-library-mapped-private-enabled/m-p/4395939#M681804</link>
      <description>&lt;!--!*#--&gt;(gdb) info reg&lt;BR /&gt;     flags:         2f000041&lt;BR /&gt;        r1: 800003fffef2e740          rp: c0000000004c8703          r3: 800003fffeedc290          r4: 800003fffeedc810          r5: 80000001003d7bb0          r6:                0&lt;BR /&gt;        r7:                0          r8:                0          r9:                0         r10:                0         r11:                0         r12:                0&lt;BR /&gt;       r13:                0         r14:                0         r15:                0         r16:                0         r17:                0         r18:                0&lt;BR /&gt;       r19: c000000000431618         r20:         38e6eff0         r21:                4         r22: 800003fffef2dd80         r23:              121         r24: c000000000431620&lt;BR /&gt;       r25:                1         r26: c000000000431618          dp: 800003fffef2df40        ret0:                0        ret1: 800003fffeedc810          sp: 800003fffeedc990&lt;BR /&gt;       r31: 800003fffef34420         sar:               1c       pcoqh: c0000000004c8ba8       pcsqh:          bd68c00       pcoqt: c0000000004c8bac       pcsqt:          bd68c00&lt;BR /&gt;      eiem: ffffffffffffffff         iir:         52940000         isr:          a780800         ior:         38e6eff0        ipsw:       ff0804ff1f        goto:                0&lt;BR /&gt;       sr4:          a780800         sr0:          bd68c00         sr1:                0         sr2:                0         sr3:                0         sr5:          bdb4c00&lt;BR /&gt;       sr6:          a17e800         sr7:          bd68c00         cr0:                0         cr8:                0         cr9:                0         ccr:                0&lt;BR /&gt;      cr12:                0        cr13:                0        cr24:                0        cr25:                0        cr26:                0  mpsfu_high: 80000001003d7bb0&lt;BR /&gt; mpsfu_low:                0  mpsfu_ovfl:                0         pad: 205130ad205130ad        fpsr:  800000000000000        fpe1:                0        fpe2:                0&lt;BR /&gt;      fpe3:                0&lt;BR /&gt;(gdb) disas $pc-4*12 $pc+4*8&lt;BR /&gt;Dump of assembler code from 0xc0000000004c8b78 to 0xc0000000004c8bc8:&lt;BR /&gt;0xc0000000004c8b78 &amp;lt;.stub+352&amp;gt;: ldo 8(%r19),%r19&lt;BR /&gt;0xc0000000004c8b7c &amp;lt;.stub+356&amp;gt;: movb,tr %r0,%r5,0xc0000000004c8c18 &amp;lt;.stub+512&amp;gt;&lt;BR /&gt;0xc0000000004c8b80 &amp;lt;.stub+360&amp;gt;: copy %r5,%ret0&lt;BR /&gt;0xc0000000004c8b84 &amp;lt;.stub+364&amp;gt;: addil L'0x800,%dp,%r1&lt;BR /&gt;0xc0000000004c8b88 &amp;lt;.stub+368&amp;gt;: copy %r1,%r19&lt;BR /&gt;0xc0000000004c8b8c &amp;lt;.stub+372&amp;gt;: ldd 0x340(%r19),%r19&lt;BR /&gt;0xc0000000004c8b90 &amp;lt;.stub+376&amp;gt;: std %r19,-0x90(%sp)&lt;BR /&gt;0xc0000000004c8b94 &amp;lt;.stub+380&amp;gt;: ldd -0x90(%sp),%r19&lt;BR /&gt;0xc0000000004c8b98 &amp;lt;.stub+384&amp;gt;: cmpib,*= 0,%r19,0xc0000000004c8c10 &amp;lt;.stub+504&amp;gt;&lt;BR /&gt;0xc0000000004c8b9c &amp;lt;.stub+388&amp;gt;: nop&lt;BR /&gt;0xc0000000004c8ba0 &amp;lt;.stub+392&amp;gt;: ldd -0x40(%r4),%r19&lt;BR /&gt;0xc0000000004c8ba4 &amp;lt;.stub+396&amp;gt;: ldd -0x90(%sp),%r20&lt;BR /&gt;0xc0000000004c8ba8 &amp;lt;.stub+400&amp;gt;: ldd 0(%r20),%r20&lt;BR /&gt;0xc0000000004c8bac &amp;lt;.stub+404&amp;gt;: ldd 8(%r20),%r20&lt;BR /&gt;0xc0000000004c8bb0 &amp;lt;.stub+408&amp;gt;: copy %r19,%r26&lt;BR /&gt;0xc0000000004c8bb4 &amp;lt;.stub+412&amp;gt;: copy %r20,%r25&lt;BR /&gt;0xc0000000004c8bb8 &amp;lt;.stub+416&amp;gt;: call 0xc00000000043d590 &amp;lt;.stub&amp;gt;&lt;BR /&gt;0xc0000000004c8bbc &amp;lt;.stub+420&amp;gt;: ldo -0x30(%sp),%ret1&lt;BR /&gt;0xc0000000004c8bc0 &amp;lt;.stub+424&amp;gt;: ldd -0x138(%sp),%dp&lt;BR /&gt;0xc0000000004c8bc4 &amp;lt;.stub+428&amp;gt;: cmpib,&amp;lt;&amp;gt; 0,%ret0,0xc0000000004c8bf8 &amp;lt;.stub+480&amp;gt;&lt;BR /&gt;0xc0000000004c8bc8 &amp;lt;.stub+432&amp;gt;: nop&lt;BR /&gt;End of assembler dump.&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Apr 2009 11:35:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sigsegv-unless-shared-library-mapped-private-enabled/m-p/4395939#M681804</guid>
      <dc:creator>Jack Kidwell</dc:creator>
      <dc:date>2009-04-07T11:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: SIGSEGV unless shared library mapped private enabled</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sigsegv-unless-shared-library-mapped-private-enabled/m-p/4395940#M681805</link>
      <description>r20:         38e6eff0&lt;BR /&gt;0xc0000000004c8ba4 &amp;lt;.stub+396&amp;gt;: ldd -0x90(%sp),%r20&lt;BR /&gt;0xc0000000004c8ba8 &amp;lt;.stub+400&amp;gt;: ldd 0(%r20),%r20 &amp;lt;&amp;lt;&lt;BR /&gt;0xc0000000004c8bac &amp;lt;.stub+404&amp;gt;: ldd 8(%r20),%r20&lt;BR /&gt;0xc0000000004c8bb4 &amp;lt;.stub+412&amp;gt;: copy %r20,%r25&lt;BR /&gt;&lt;BR /&gt;R20 has a bad address.  This is stored in a local, $sp-0x90.&lt;BR /&gt;&lt;BR /&gt;There is nothing here that indicates it is trying to write to a readonly variable.  It seems something has been corrupted and when using "chatr +dbg", the corruption is elsewhere.&lt;BR /&gt;&lt;BR /&gt;Since 11.00 isn't supported, you are probably out of luck.  Make sure you have the last set of patches.</description>
      <pubDate>Wed, 08 Apr 2009 06:55:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sigsegv-unless-shared-library-mapped-private-enabled/m-p/4395940#M681805</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-04-08T06:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: SIGSEGV unless shared library mapped private enabled</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sigsegv-unless-shared-library-mapped-private-enabled/m-p/4395941#M681806</link>
      <description>main usual cause of that type of symptoms of heap corruption is buffer overflow which corrupt heap, causing it to give wrong&lt;BR /&gt;address ( zeroed of the leftmost valuable byte of the next address)&lt;BR /&gt;&lt;BR /&gt;So check in your application you don't have any&lt;BR /&gt;string allocation which is forgetting to count ending 0.&lt;BR /&gt;&lt;BR /&gt;typically&lt;BR /&gt;n=strlen(x);&lt;BR /&gt;s=malloc(n)&lt;BR /&gt;strncpy(s,x,n);&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Apr 2009 07:33:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sigsegv-unless-shared-library-mapped-private-enabled/m-p/4395941#M681806</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2009-04-08T07:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: SIGSEGV unless shared library mapped private enabled</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sigsegv-unless-shared-library-mapped-private-enabled/m-p/4395942#M681807</link>
      <description>in my example it should be s=malloc(n+1);</description>
      <pubDate>Wed, 08 Apr 2009 07:35:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sigsegv-unless-shared-library-mapped-private-enabled/m-p/4395942#M681807</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2009-04-08T07:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: SIGSEGV unless shared library mapped private enabled</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sigsegv-unless-shared-library-mapped-private-enabled/m-p/4395943#M681808</link>
      <description>Thanks, Dennis and Laurent.&lt;BR /&gt;&lt;BR /&gt;Since this code works fine on later versions of HPUX, and there are no mallocs used in the thread, I presume the unsupported B.11.00 is at fault. I'll use this information in my argument for moving off B.11.00.</description>
      <pubDate>Wed, 08 Apr 2009 14:13:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sigsegv-unless-shared-library-mapped-private-enabled/m-p/4395943#M681808</guid>
      <dc:creator>Jack Kidwell</dc:creator>
      <dc:date>2009-04-08T14:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: SIGSEGV unless shared library mapped private enabled</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sigsegv-unless-shared-library-mapped-private-enabled/m-p/4395944#M681809</link>
      <description>Hi Jack:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I'll use this information in my argument for moving off B.11.00.&lt;BR /&gt;&lt;BR /&gt;Aside from 11.0 having dropped out of support in December 2006, the new features and security enhancements of current supported releases should entice your management to migrate.  You could at least run 11.11 on old K-class and D-class hardware if that's an issue :-)&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 08 Apr 2009 14:52:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sigsegv-unless-shared-library-mapped-private-enabled/m-p/4395944#M681809</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-04-08T14:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: SIGSEGV unless shared library mapped private enabled</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sigsegv-unless-shared-library-mapped-private-enabled/m-p/4395945#M681810</link>
      <description>&amp;gt;there are no mallocs used in the thread&lt;BR /&gt;&lt;BR /&gt;This statement doesn't mean it isn't heap corruption.  There would have to be no mallocs in the whole process.</description>
      <pubDate>Wed, 08 Apr 2009 21:30:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sigsegv-unless-shared-library-mapped-private-enabled/m-p/4395945#M681810</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-04-08T21:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: SIGSEGV unless shared library mapped private enabled</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sigsegv-unless-shared-library-mapped-private-enabled/m-p/4395946#M681811</link>
      <description>Yes in fact if one thread corrupts the heap, all threads of this process could fall on the corruption.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Typically some products like Rational "Purify" &lt;BR /&gt;Can help to find out that type of corruption.&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Apr 2009 04:41:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sigsegv-unless-shared-library-mapped-private-enabled/m-p/4395946#M681811</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2009-04-09T04:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: SIGSEGV unless shared library mapped private enabled</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sigsegv-unless-shared-library-mapped-private-enabled/m-p/4395947#M681812</link>
      <description>&amp;gt;Laurent: products like Rational "Purify"&lt;BR /&gt;&lt;BR /&gt;You can also use wdb to check for heap corruption.  Not sure if any are available for 11.00.</description>
      <pubDate>Thu, 09 Apr 2009 07:43:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sigsegv-unless-shared-library-mapped-private-enabled/m-p/4395947#M681812</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-04-09T07:43:54Z</dc:date>
    </item>
  </channel>
</rss>

