<?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: pthread_create() on Itanium 11.23 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/pthread-create-on-itanium-11-23/m-p/5155403#M667397</link>
    <description>Now the program is running in infinite loop with the following error message&lt;BR /&gt;&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: U_get_unwind_table (code)  from /opt/langtools/lib/libpthread_tr.1&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: U_get_unwind_table (code)  from /opt/langtools/lib/libpthread_tr.1&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: U_get_unwind_table (code)  from /opt/langtools/lib/libpthread_tr.1&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: U_get_unwind_table (code)  from /opt/langtools/lib/libpthread_tr.1&lt;BR /&gt;&lt;BR /&gt;Pid 4074 received a SIGSEGV for stack growth failure.&lt;BR /&gt;Possible causes: insufficient memory or swap space,&lt;BR /&gt;or stack size exceeded maxssiz. &lt;BR /&gt;^CSegmentation fault (core dumped)&lt;BR /&gt;&lt;BR /&gt;I am working on hp_unix 11.11 platform. Please find the code below&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;STDLIB.H&gt;&lt;BR /&gt;#include &lt;PTHREAD.H&gt;&lt;BR /&gt;#define NUM_THREADS 5&lt;BR /&gt;&lt;BR /&gt;void *PrintHello(void *threadid)&lt;BR /&gt;{&lt;BR /&gt;   long tid;&lt;BR /&gt;   tid = (long)threadid;&lt;BR /&gt;   printf("Hello World! It's me, thread #%ld!\n", tid);&lt;BR /&gt;   pthread_exit(NULL);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;int main(int argc, char *argv[])&lt;BR /&gt;{&lt;BR /&gt;   pthread_t threads[NUM_THREADS];&lt;BR /&gt;   int rc;&lt;BR /&gt;   long t;&lt;BR /&gt;   for(t=0;t&lt;NUM_THREADS&gt;&lt;/NUM_THREADS&gt;      printf("In main: creating thread %ld\n", t);&lt;BR /&gt;      rc = pthread_create(&amp;amp;threads[t], NULL, NULL, (void *)t);&lt;BR /&gt;      if (rc){&lt;BR /&gt;         printf("ERROR; return code from pthread_create() is %d\n", rc);&lt;BR /&gt;         exit(-1);&lt;BR /&gt;      }&lt;BR /&gt;   }&lt;BR /&gt;   pthread_exit(NULL);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Compilation - g++ -lpthread hello.cpp&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PTHREAD.H&gt;&lt;/STDLIB.H&gt;&lt;/STDIO.H&gt;</description>
    <pubDate>Tue, 10 Feb 2009 11:29:23 GMT</pubDate>
    <dc:creator>Venkata Subramanian</dc:creator>
    <dc:date>2009-02-10T11:29:23Z</dc:date>
    <item>
      <title>pthread_create() on Itanium 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pthread-create-on-itanium-11-23/m-p/5155397#M667391</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have a program that runs on PA-RISC HPUX, AIX, and Solaris that uses threads for communications.  I call pthread_create() to get things going.  I recently ported this code to HPUX 11.23 Itanium, and when I make the call to pthread_create(), I receive the return code of 251 - "function not implemented". &lt;BR /&gt;&lt;BR /&gt;Does anyone know if/when the pthread functions will be available on Itanium or if I need to use a different threading library?&lt;BR /&gt;&lt;BR /&gt;Regards, Rob</description>
      <pubDate>Fri, 06 Feb 2009 15:48:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pthread-create-on-itanium-11-23/m-p/5155397#M667391</guid>
      <dc:creator>Robert Loureiro</dc:creator>
      <dc:date>2009-02-06T15:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: pthread_create() on Itanium 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pthread-create-on-itanium-11-23/m-p/5155398#M667392</link>
      <description>This is resolved.  I needed to change the link order of the -lpthread and remove the explicit link of -lc.  The aCC compiler will add the -lc at the end of the link.  By default, the libc library provides stubs for the pthread functions.</description>
      <pubDate>Fri, 06 Feb 2009 16:34:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pthread-create-on-itanium-11-23/m-p/5155398#M667392</guid>
      <dc:creator>Robert Loureiro</dc:creator>
      <dc:date>2009-02-06T16:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: pthread_create() on Itanium 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pthread-create-on-itanium-11-23/m-p/5155399#M667393</link>
      <description>Closed</description>
      <pubDate>Fri, 06 Feb 2009 16:34:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pthread-create-on-itanium-11-23/m-p/5155399#M667393</guid>
      <dc:creator>Robert Loureiro</dc:creator>
      <dc:date>2009-02-06T16:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: pthread_create() on Itanium 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pthread-create-on-itanium-11-23/m-p/5155400#M667394</link>
      <description>&amp;gt;I needed to change the link order of the -lpthread and remove the explicit link of -lc.&lt;BR /&gt;&lt;BR /&gt;Right.  The latest compiler will now warn if you attempt to add one of the default shlibs:&lt;BR /&gt;aCC: warning 983: The -lc library specified on the command line is also added automatically by the compiler driver.&lt;BR /&gt;&lt;BR /&gt;You may want to use -mt and let the driver add -lpthread.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;the libc library provides stubs for the pthread functions.&lt;BR /&gt;&lt;BR /&gt;Yes, a patch added that on 11.11.  Some stubs will return ENOSYS.</description>
      <pubDate>Sat, 07 Feb 2009 03:33:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pthread-create-on-itanium-11-23/m-p/5155400#M667394</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-02-07T03:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: pthread_create() on Itanium 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pthread-create-on-itanium-11-23/m-p/5155401#M667395</link>
      <description>I am also facing the same problem in hp unix 11.11. I saw your solution but please explain in detail about what needs to be done in the server.</description>
      <pubDate>Mon, 09 Feb 2009 15:10:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pthread-create-on-itanium-11-23/m-p/5155401#M667395</guid>
      <dc:creator>Venkata Subramanian</dc:creator>
      <dc:date>2009-02-09T15:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: pthread_create() on Itanium 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pthread-create-on-itanium-11-23/m-p/5155402#M667396</link>
      <description>&amp;gt;Venkata: explain in detail about what needs to be done in the server.&lt;BR /&gt;&lt;BR /&gt;You should be creating your own thread so you can assign points.  You can add an URL to this thread if there is any useful info.&lt;BR /&gt;&lt;BR /&gt;There is nothing to be done on the server, the application is broken and needs to be relinked.&lt;BR /&gt;That does "chatr executable" show?</description>
      <pubDate>Mon, 09 Feb 2009 23:24:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pthread-create-on-itanium-11-23/m-p/5155402#M667396</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-02-09T23:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: pthread_create() on Itanium 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pthread-create-on-itanium-11-23/m-p/5155403#M667397</link>
      <description>Now the program is running in infinite loop with the following error message&lt;BR /&gt;&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: U_get_unwind_table (code)  from /opt/langtools/lib/libpthread_tr.1&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: U_get_unwind_table (code)  from /opt/langtools/lib/libpthread_tr.1&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: U_get_unwind_table (code)  from /opt/langtools/lib/libpthread_tr.1&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: U_get_unwind_table (code)  from /opt/langtools/lib/libpthread_tr.1&lt;BR /&gt;&lt;BR /&gt;Pid 4074 received a SIGSEGV for stack growth failure.&lt;BR /&gt;Possible causes: insufficient memory or swap space,&lt;BR /&gt;or stack size exceeded maxssiz. &lt;BR /&gt;^CSegmentation fault (core dumped)&lt;BR /&gt;&lt;BR /&gt;I am working on hp_unix 11.11 platform. Please find the code below&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;STDLIB.H&gt;&lt;BR /&gt;#include &lt;PTHREAD.H&gt;&lt;BR /&gt;#define NUM_THREADS 5&lt;BR /&gt;&lt;BR /&gt;void *PrintHello(void *threadid)&lt;BR /&gt;{&lt;BR /&gt;   long tid;&lt;BR /&gt;   tid = (long)threadid;&lt;BR /&gt;   printf("Hello World! It's me, thread #%ld!\n", tid);&lt;BR /&gt;   pthread_exit(NULL);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;int main(int argc, char *argv[])&lt;BR /&gt;{&lt;BR /&gt;   pthread_t threads[NUM_THREADS];&lt;BR /&gt;   int rc;&lt;BR /&gt;   long t;&lt;BR /&gt;   for(t=0;t&lt;NUM_THREADS&gt;&lt;/NUM_THREADS&gt;      printf("In main: creating thread %ld\n", t);&lt;BR /&gt;      rc = pthread_create(&amp;amp;threads[t], NULL, NULL, (void *)t);&lt;BR /&gt;      if (rc){&lt;BR /&gt;         printf("ERROR; return code from pthread_create() is %d\n", rc);&lt;BR /&gt;         exit(-1);&lt;BR /&gt;      }&lt;BR /&gt;   }&lt;BR /&gt;   pthread_exit(NULL);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Compilation - g++ -lpthread hello.cpp&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PTHREAD.H&gt;&lt;/STDLIB.H&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Tue, 10 Feb 2009 11:29:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pthread-create-on-itanium-11-23/m-p/5155403#M667397</guid>
      <dc:creator>Venkata Subramanian</dc:creator>
      <dc:date>2009-02-10T11:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: pthread_create() on Itanium 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pthread-create-on-itanium-11-23/m-p/5155404#M667398</link>
      <description>&amp;gt;Venkata: Now the program is running in infinite loop with the following error message&lt;BR /&gt;&lt;BR /&gt;Please create your own thread in the "languages and scripting" forum.  This is completely unrelated to this thread.</description>
      <pubDate>Tue, 10 Feb 2009 12:40:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pthread-create-on-itanium-11-23/m-p/5155404#M667398</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-02-10T12:40:39Z</dc:date>
    </item>
  </channel>
</rss>

