<?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: Program getting hung in std::ios_base::Init::~Init. Need help!! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/program-getting-hung-in-std-ios-base-init-init-need-help/m-p/3559762#M639918</link>
    <description>Hi Stephen,&lt;BR /&gt;Thanks for replying.&lt;BR /&gt;&lt;BR /&gt;It's a typical client/server application. server listens and forks off on each client's request. It's a test application that tests various APIs.&lt;BR /&gt;&lt;BR /&gt;This same application runs fine on PA32, and even on IA64, but not on PA64.&lt;BR /&gt;&lt;BR /&gt;I am compiling it with -DPTHREAD_COMPAT_MODE. So, I can use older platform built thirdparty libs.&lt;BR /&gt;&lt;BR /&gt;Why is it getting hung in the std::ios_base::Init::~Init while doing a mutex unlock? Any ideas!&lt;BR /&gt;&lt;BR /&gt;[Is there something that I need to take care of while doing a fork, and using -DPTHREAD_COMPAT_MODE? (If I don't use this flag, I get unresolved symbol on pthread_attr_init.)]&lt;BR /&gt;--&lt;BR /&gt;Ranga.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 08 Jun 2005 09:38:02 GMT</pubDate>
    <dc:creator>Ranga V</dc:creator>
    <dc:date>2005-06-08T09:38:02Z</dc:date>
    <item>
      <title>Program getting hung in std::ios_base::Init::~Init. Need help!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/program-getting-hung-in-std-ios-base-init-init-need-help/m-p/3559759#M639915</link>
      <description>Hi all,&lt;BR /&gt;My program is getting hung in the std::ios_base::Init::~Init function call, and need help on what I am doing wrong.&lt;BR /&gt;&lt;BR /&gt;Really appreciate any kind of help.&lt;BR /&gt;Thanks,&lt;BR /&gt;Regards,&lt;BR /&gt;Ranga.&lt;BR /&gt;&lt;BR /&gt;Here is the call stack:&lt;BR /&gt;#0  0xc000000000662360 in pthread_mutex_unlock+0 ()&lt;BR /&gt;   from /build/PA_IA/ux/vbe/pa/usr/lib/pa20_64/libpthread.1&lt;BR /&gt;#1  0xc000000000811e98 in __thread_mutex_unlock+0x80 ()&lt;BR /&gt;   from /build/PA_IA/ux/vbe/pa/usr/lib/pa20_64/libc.2&lt;BR /&gt;#2  0xc00000000054e194 in _HPMutexWrapper::unlock+0x34 ()&lt;BR /&gt;   from /build/PA_IA/ux/vbe/pa/usr/lib/pa20_64/libstd_v2.2&lt;BR /&gt;#3  0xc000000000513114 in std::ios_base::Init::~Init+0x104 ()&lt;BR /&gt;   from /build/PA_IA/ux/vbe/pa/usr/lib/pa20_64/libstd_v2.2&lt;BR /&gt;#4  0xc000000000395388 in __cxxTerm_body+0x48 ()&lt;BR /&gt;   from /build/PA_IA/ux/vbe/pa/usr/lib/pa20_64/libCsup_v2.2&lt;BR /&gt;#5  0xc0000000003953e8 in __cxxTerm+0x20 ()&lt;BR /&gt;   from /build/PA_IA/ux/vbe/pa/usr/lib/pa20_64/libCsup_v2.2&lt;BR /&gt;#6  0xc0000000007c3428 in exit+0x80 ()&lt;BR /&gt;   from /build/PA_IA/ux/vbe/pa/usr/lib/pa20_64/libc.2&lt;BR /&gt;#7  0x40000000000220b8 in main () at test_server.cpp:86&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Jun 2005 16:39:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/program-getting-hung-in-std-ios-base-init-init-need-help/m-p/3559759#M639915</guid>
      <dc:creator>Ranga V</dc:creator>
      <dc:date>2005-06-07T16:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Program getting hung in std::ios_base::Init::~Init. Need help!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/program-getting-hung-in-std-ios-base-init-init-need-help/m-p/3559760#M639916</link>
      <description>It's a bit difficult to tell, without actually knowing what your code is trying to do. What is in test_server.cpp?</description>
      <pubDate>Wed, 08 Jun 2005 03:21:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/program-getting-hung-in-std-ios-base-init-init-need-help/m-p/3559760#M639916</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-06-08T03:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Program getting hung in std::ios_base::Init::~Init. Need help!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/program-getting-hung-in-std-ios-base-init-init-need-help/m-p/3559761#M639917</link>
      <description>Clarification, I am using a cross compiler to compile the app on HPUX-11.23. As long as the cross compiler is mounted it picks the libs from those directories, i.e., /build/PA_IA/ux/vbe/usr/lib/pa20_64, otherwise, it picks it from the standard /usr/lib/pa20_64. Either way the result is the same.&lt;BR /&gt;&lt;BR /&gt;Appreciate any help on this.&lt;BR /&gt;Thanks,&lt;BR /&gt;Ranga.</description>
      <pubDate>Wed, 08 Jun 2005 09:18:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/program-getting-hung-in-std-ios-base-init-init-need-help/m-p/3559761#M639917</guid>
      <dc:creator>Ranga V</dc:creator>
      <dc:date>2005-06-08T09:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Program getting hung in std::ios_base::Init::~Init. Need help!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/program-getting-hung-in-std-ios-base-init-init-need-help/m-p/3559762#M639918</link>
      <description>Hi Stephen,&lt;BR /&gt;Thanks for replying.&lt;BR /&gt;&lt;BR /&gt;It's a typical client/server application. server listens and forks off on each client's request. It's a test application that tests various APIs.&lt;BR /&gt;&lt;BR /&gt;This same application runs fine on PA32, and even on IA64, but not on PA64.&lt;BR /&gt;&lt;BR /&gt;I am compiling it with -DPTHREAD_COMPAT_MODE. So, I can use older platform built thirdparty libs.&lt;BR /&gt;&lt;BR /&gt;Why is it getting hung in the std::ios_base::Init::~Init while doing a mutex unlock? Any ideas!&lt;BR /&gt;&lt;BR /&gt;[Is there something that I need to take care of while doing a fork, and using -DPTHREAD_COMPAT_MODE? (If I don't use this flag, I get unresolved symbol on pthread_attr_init.)]&lt;BR /&gt;--&lt;BR /&gt;Ranga.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Jun 2005 09:38:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/program-getting-hung-in-std-ios-base-init-init-need-help/m-p/3559762#M639918</guid>
      <dc:creator>Ranga V</dc:creator>
      <dc:date>2005-06-08T09:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Program getting hung in std::ios_base::Init::~Init. Need help!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/program-getting-hung-in-std-ios-base-init-init-need-help/m-p/3559763#M639919</link>
      <description>Again, without seeing the actual code, it's difficult to diagnose. For instance in 32-bit mode, a long and an int are both the same size, in 64-bit mode they aren't. You could be slicing a structure by using an inappropriate variable type for example. &lt;BR /&gt;&lt;BR /&gt;The code appears to be processing the exit() call in your main() section. This could be as the result of an explicit exit(), an implicit exit() or a simple return. Can you write a short piece of code that demonstrates the problem? Can you compile it with debugging symbols and use a debugger to see what is happening, as a stack trace isn't particularly useful.</description>
      <pubDate>Wed, 08 Jun 2005 10:05:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/program-getting-hung-in-std-ios-base-init-init-need-help/m-p/3559763#M639919</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-06-08T10:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Program getting hung in std::ios_base::Init::~Init. Need help!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/program-getting-hung-in-std-ios-base-init-init-need-help/m-p/5427429#M639920</link>
      <description>&lt;P&gt;&amp;gt;My program is getting hung in the std::ios_base::Init::~Init function call&lt;BR /&gt;#0 0xc000000000662360 in pthread_mutex_unlock+0 /build/PA_IA/ux/vbe/pa/usr/lib/pa20_64/libpthread.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it hanging or did you get a signal?&amp;nbsp; It shouldn't hang on the first instruction of pthread_mutex_unlock.&lt;/P&gt;&lt;P&gt;Also, it is better if you use the shlibs in /usr/lib/ for libs like libc and libpthread.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Dec 2011 05:52:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/program-getting-hung-in-std-ios-base-init-init-need-help/m-p/5427429#M639920</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-12-24T05:52:04Z</dc:date>
    </item>
  </channel>
</rss>

