<?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: libcma vs. libpthread in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/libcma-vs-libpthread/m-p/5195095#M680461</link>
    <description>Thanks a lot for your reply.&lt;BR /&gt;&lt;BR /&gt;Basically you're right with your assumption of wrong linkage.&lt;BR /&gt;&lt;BR /&gt;The problem is solved now and the solution was to omit -lcma at all and *not* to replace it with -lpthreads.&lt;BR /&gt;&lt;BR /&gt;-lcma was necessary for 10.20 only and is not needed any more for HP-UX 11i. Since we have no productive 10.20 machines any more, this solved our problem.&lt;BR /&gt;&lt;BR /&gt;Now our transition to 11.31 seems to be completed :-) Thanks a lot again&lt;BR /&gt;&lt;BR /&gt;Matthew</description>
    <pubDate>Wed, 26 Aug 2009 06:45:19 GMT</pubDate>
    <dc:creator>Matthias Schuendehuette</dc:creator>
    <dc:date>2009-08-26T06:45:19Z</dc:date>
    <item>
      <title>libcma vs. libpthread</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/libcma-vs-libpthread/m-p/5195093#M680459</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have severe problems with a selfwritten PA-RISC application across HP-UX 11i v1, v2 and v3:&lt;BR /&gt;&lt;BR /&gt;Background is a new Integrity Server with HP-UX 11.31. On that server our old app wasn't running any more:&lt;BR /&gt;&lt;BR /&gt;The callstack of the coredump was:&lt;BR /&gt;&lt;BR /&gt;#0  0xc373ab58 in pthread_mutex_unlock+0x48 () from /usr/lib/libcma.2&lt;BR /&gt;#1  0x451978 in sltsimr+0x10 ()&lt;BR /&gt;#2  0x388d90 in kpummpin+0x4a8 ()&lt;BR /&gt;#3  0x592288 in kpupin+0x7c ()&lt;BR /&gt;#4  0x3cfbac in OCIInitialize+0x30 ()&lt;BR /&gt;#5  0x31680c in sqgctx+0xc4 ()&lt;BR /&gt;#6  0x31671c in sqgrct+0x50 ()&lt;BR /&gt;#7  0x30b0f8 in sqlcmex+0x3e0 ()&lt;BR /&gt;#8  0x30b5f0 in sqlcxt+0x78 ()&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;OK, I found in another thread here at ITRC, that under HP-UX 11i libcma is deprecated and libpthread should be used instead.&lt;BR /&gt;&lt;BR /&gt;That worked, at least for HP-UX 11.31.&lt;BR /&gt;&lt;BR /&gt;But the application doesn't run on 11.23 nor 11.11 any more...&lt;BR /&gt;&lt;BR /&gt;On a PA-RISC machine running 11.11 I simply get a:&lt;BR /&gt;&lt;BR /&gt;"FATAL ERROR: cannot open display; program aborted" ('xclock' worked, so no problem of $DISPLAY or Xn.hosts)&lt;BR /&gt;&lt;BR /&gt;OK, I don't expect that anybody can comment on that... but on 11.11/PA-RISC I get no core dump.&lt;BR /&gt;&lt;BR /&gt;On an Integrity-Server running 11.23 the following callstack can be extracted from the coredump:&lt;BR /&gt;&lt;BR /&gt;#0  0xc1d61e68 in kill+0x10 () from /usr/lib/libc.2&lt;BR /&gt;#1  0xc1cf95d4 in raise+0x24 () from /usr/lib/libc.2&lt;BR /&gt;#2  0xc1d3f2f8 in abort_C+0x160 () from /usr/lib/libc.2&lt;BR /&gt;#3  0xc1d3f354 in abort+0x1c () from /usr/lib/libc.2&lt;BR /&gt;#4  0xc1cc96b8 in _assert+0x178 () from /usr/lib/libc.2&lt;BR /&gt;#5  0xc1d75dd8 in pthread_mutexattr_init+0x58 () from /usr/lib/libc.2&lt;BR /&gt;#6  0xc1d728dc in __libc_init+0x6fc () from /usr/lib/libc.2&lt;BR /&gt;#7  0xc335c90c in __hp__init_libc+0x28 () from /usr/lib/libpthread.1&lt;BR /&gt;#8  0xc3360ec0 in __pthread_startup+0x414 () from /usr/lib/libpthread.1&lt;BR /&gt;#9  0xc530674c in stat64+0xc52d4674 () from /usr/lib/dld.sl&lt;BR /&gt;#10 0xc1cf95d4 in raise+0x24 () from /usr/lib/libc.2&lt;BR /&gt;Cannot access memory at address 0xc5304f94&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Since the recommendation to replace libcma with libpthread was in the 11i release notes, I expected this to work on 11i *generally*, not only on 11.31.&lt;BR /&gt;&lt;BR /&gt;Did I overlook something?&lt;BR /&gt;Has anybody some hints or at least ideas how&lt;BR /&gt;to make the app run on the whole spectrum of&lt;BR /&gt;OS releases and processor architectures?&lt;BR /&gt;Normally HP-UX binaries have exactly that flexibility - something that impresses me very much! :-)&lt;BR /&gt;&lt;BR /&gt;Thank you very much&lt;BR /&gt;&lt;BR /&gt;Matthew</description>
      <pubDate>Tue, 25 Aug 2009 10:42:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/libcma-vs-libpthread/m-p/5195093#M680459</guid>
      <dc:creator>Matthias Schuendehuette</dc:creator>
      <dc:date>2009-08-25T10:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: libcma vs. libpthread</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/libcma-vs-libpthread/m-p/5195094#M680460</link>
      <description>&amp;gt;that under HP-UX 11i libcma is deprecated&lt;BR /&gt;&lt;BR /&gt;This was true for 11.00.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;#0 0xc373ab58 in pthread_mutex_unlock+0x48 /usr/lib/libcma.2&lt;BR /&gt;&lt;BR /&gt;What are the parms being passed to pthread_mutex_unlock?  Is the mutex corrupted?&lt;BR /&gt;What version of libcma.2 do you have?  Mine says PHSS_33426.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;#5 0xc1d75dd8 in pthread_mutexattr_init+0x58 /usr/lib/libc.2&lt;BR /&gt;&lt;BR /&gt;This indicates you have linked your application incorrectly.  You must have -lpthread and NOT list -lc at all!&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Did I overlook something?&lt;BR /&gt;&lt;BR /&gt;You have to change the code to use libpthread vs libcm.</description>
      <pubDate>Tue, 25 Aug 2009 17:14:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/libcma-vs-libpthread/m-p/5195094#M680460</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-08-25T17:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: libcma vs. libpthread</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/libcma-vs-libpthread/m-p/5195095#M680461</link>
      <description>Thanks a lot for your reply.&lt;BR /&gt;&lt;BR /&gt;Basically you're right with your assumption of wrong linkage.&lt;BR /&gt;&lt;BR /&gt;The problem is solved now and the solution was to omit -lcma at all and *not* to replace it with -lpthreads.&lt;BR /&gt;&lt;BR /&gt;-lcma was necessary for 10.20 only and is not needed any more for HP-UX 11i. Since we have no productive 10.20 machines any more, this solved our problem.&lt;BR /&gt;&lt;BR /&gt;Now our transition to 11.31 seems to be completed :-) Thanks a lot again&lt;BR /&gt;&lt;BR /&gt;Matthew</description>
      <pubDate>Wed, 26 Aug 2009 06:45:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/libcma-vs-libpthread/m-p/5195095#M680461</guid>
      <dc:creator>Matthias Schuendehuette</dc:creator>
      <dc:date>2009-08-26T06:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: libcma vs. libpthread</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/libcma-vs-libpthread/m-p/5195096#M680462</link>
      <description>Thread closed, solution see above :-)&lt;BR /&gt;&lt;BR /&gt;Matthew</description>
      <pubDate>Wed, 26 Aug 2009 06:46:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/libcma-vs-libpthread/m-p/5195096#M680462</guid>
      <dc:creator>Matthias Schuendehuette</dc:creator>
      <dc:date>2009-08-26T06:46:11Z</dc:date>
    </item>
  </channel>
</rss>

