<?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 pthread_mutex_init problem (Bus error - core dump) in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/pthread-mutex-init-problem-bus-error-core-dump/m-p/2804629#M82722</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Running APEX 3.2 (ADA95) debbuger on program that core dump with the Bus error (on N4000-55 with HP-UX 11.0) produceses following error report&lt;BR /&gt;&lt;BR /&gt;Debugging: /exports/devel/hats/layer5/dama.ss/hp_at3_1_00_offline.wrk/units/dama_adaptation_data_flf/dama_adaptation_data_fast_load_file_driver.&lt;BR /&gt;Opened view /exports/devel/hats/layer5/dama.ss/hp_at3_1_00_offline.wrk.&lt;BR /&gt;Opened views in link closure of dama_adaptation_data_fast_load_file_driver.&lt;BR /&gt;Set breakpoint [1]  procedure __ADA_ELAB at 06432680:   stw              r2, -014(sp)&lt;BR /&gt;/exports/devel/hats/layer5/dama.ss/hp_at3_1_00_offline.wrk/units/dama_adaptation_data_flf/dama_adaptation_data_fast_load_file_driver&lt;BR /&gt;Warning: In non-Ada task, selecting an Ada task.&lt;BR /&gt;=&amp;gt; runtime tasking structures have not yet been initialized.&lt;BR /&gt;process received signal "Bus error" [10]&lt;BR /&gt; stopped in pthread_mutex_init&lt;BR /&gt; at 0790cb3b4:   ldw              0(r4), r31&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Any sugestion ?&lt;BR /&gt;&lt;BR /&gt;TIA &lt;BR /&gt;&lt;BR /&gt;Mila</description>
    <pubDate>Wed, 11 Sep 2002 20:23:23 GMT</pubDate>
    <dc:creator>Milan Stojanovic</dc:creator>
    <dc:date>2002-09-11T20:23:23Z</dc:date>
    <item>
      <title>pthread_mutex_init problem (Bus error - core dump)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pthread-mutex-init-problem-bus-error-core-dump/m-p/2804629#M82722</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Running APEX 3.2 (ADA95) debbuger on program that core dump with the Bus error (on N4000-55 with HP-UX 11.0) produceses following error report&lt;BR /&gt;&lt;BR /&gt;Debugging: /exports/devel/hats/layer5/dama.ss/hp_at3_1_00_offline.wrk/units/dama_adaptation_data_flf/dama_adaptation_data_fast_load_file_driver.&lt;BR /&gt;Opened view /exports/devel/hats/layer5/dama.ss/hp_at3_1_00_offline.wrk.&lt;BR /&gt;Opened views in link closure of dama_adaptation_data_fast_load_file_driver.&lt;BR /&gt;Set breakpoint [1]  procedure __ADA_ELAB at 06432680:   stw              r2, -014(sp)&lt;BR /&gt;/exports/devel/hats/layer5/dama.ss/hp_at3_1_00_offline.wrk/units/dama_adaptation_data_flf/dama_adaptation_data_fast_load_file_driver&lt;BR /&gt;Warning: In non-Ada task, selecting an Ada task.&lt;BR /&gt;=&amp;gt; runtime tasking structures have not yet been initialized.&lt;BR /&gt;process received signal "Bus error" [10]&lt;BR /&gt; stopped in pthread_mutex_init&lt;BR /&gt; at 0790cb3b4:   ldw              0(r4), r31&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Any sugestion ?&lt;BR /&gt;&lt;BR /&gt;TIA &lt;BR /&gt;&lt;BR /&gt;Mila</description>
      <pubDate>Wed, 11 Sep 2002 20:23:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pthread-mutex-init-problem-bus-error-core-dump/m-p/2804629#M82722</guid>
      <dc:creator>Milan Stojanovic</dc:creator>
      <dc:date>2002-09-11T20:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: pthread_mutex_init problem (Bus error - core dump)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pthread-mutex-init-problem-bus-error-core-dump/m-p/2804630#M82723</link>
      <description>The default stacksize in thread created with pthread_create on HP-UX is 64K which is usually too small...&lt;BR /&gt;We had this problem with our applications (coded in C++) and we had to increase the stacksize to 512K so that our applications run correctly.&lt;BR /&gt;Here is a abstract of our code to set the stack size for the new thread:&lt;BR /&gt;#if (defined __hpux__)&lt;BR /&gt;// F1020701 : Taille des piles allou??es pour les threads sous HPUX.&lt;BR /&gt;// La taille est ici fix??e ?? 512 Ko. Si cela ne pose pas de probl??me,&lt;BR /&gt;// la laisser ainsi, sinon essayer les valeurs suivantes&lt;BR /&gt;const size_t pthreadStackSize = 524288;&lt;BR /&gt;// Stack : 256 Ko&lt;BR /&gt;// const size_t pthreadStackSize = 262144;&lt;BR /&gt;// Stack : 128 Ko&lt;BR /&gt;// const size_t pthreadStackSize = 131072;&lt;BR /&gt;// Stack : 96 Ko&lt;BR /&gt;// const size_t pthreadStackSize = 1024;&lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;#if (defined __hpux__)&lt;BR /&gt;    // On alloue l'espace m??moire n??cessaire au pthread_attr_t&lt;BR /&gt;    if((l4_error = pthread_attr_init(&amp;amp;lc_pthreadAttr)))&lt;BR /&gt;    {&lt;BR /&gt;      mb_taskAct = FALSE;&lt;BR /&gt;#if (defined __tg_debug__)&lt;BR /&gt;      cout &amp;lt;&amp;lt; ka_funcName &amp;lt;&amp;lt; "pthread_attr_init error " &amp;lt;&amp;lt; l4_error&lt;BR /&gt;           &amp;lt;&amp;lt; flush &amp;lt;&amp;lt; endl;&lt;BR /&gt;#endif&lt;BR /&gt;      throw(TgExcepSys("pthread_attr_init", l4_error, 0));&lt;BR /&gt;    }&lt;BR /&gt;    // On change la taille de stack par defaut.&lt;BR /&gt;    if((l4_error = pthread_attr_setstacksize(&amp;amp;lc_pthreadAttr,&lt;BR /&gt;                                             pthreadStackSize)))&lt;BR /&gt;    {&lt;BR /&gt;      mb_taskAct = FALSE;&lt;BR /&gt;#if (defined __tg_debug__)&lt;BR /&gt;      cout &amp;lt;&amp;lt; ka_funcName &amp;lt;&amp;lt; "pthread_attr_setstacksize error " &amp;lt;&amp;lt; l4_error&lt;BR /&gt;           &amp;lt;&amp;lt; flush &amp;lt;&amp;lt; endl;&lt;BR /&gt;#endif&lt;BR /&gt;      throw(TgExcepSys("pthread_attr_setstacksize", l4_error, 0));&lt;BR /&gt;    }&lt;BR /&gt;    if((l4_error = pthread_create(&amp;amp;mc_task, &amp;amp;lc_pthreadAttr,&lt;BR /&gt;                   (void *(*)(void *)) taskMainLoop, this)))&lt;BR /&gt;#else&lt;BR /&gt;    if((l4_error = pthread_create(&amp;amp;mc_task, NULL,&lt;BR /&gt;                   (void *(*)(void *)) taskMainLoop, this)))&lt;BR /&gt;#endif&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Sep 2002 07:41:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pthread-mutex-init-problem-bus-error-core-dump/m-p/2804630#M82723</guid>
      <dc:creator>inactive account</dc:creator>
      <dc:date>2002-09-13T07:41:18Z</dc:date>
    </item>
  </channel>
</rss>

