- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Program getting hung in std::ios_base::Init::~...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2005 09:39 AM
тАО06-07-2005 09:39 AM
Program getting hung in std::ios_base::Init::~Init. Need help!!
My program is getting hung in the std::ios_base::Init::~Init function call, and need help on what I am doing wrong.
Really appreciate any kind of help.
Thanks,
Regards,
Ranga.
Here is the call stack:
#0 0xc000000000662360 in pthread_mutex_unlock+0 ()
from /build/PA_IA/ux/vbe/pa/usr/lib/pa20_64/libpthread.1
#1 0xc000000000811e98 in __thread_mutex_unlock+0x80 ()
from /build/PA_IA/ux/vbe/pa/usr/lib/pa20_64/libc.2
#2 0xc00000000054e194 in _HPMutexWrapper::unlock+0x34 ()
from /build/PA_IA/ux/vbe/pa/usr/lib/pa20_64/libstd_v2.2
#3 0xc000000000513114 in std::ios_base::Init::~Init+0x104 ()
from /build/PA_IA/ux/vbe/pa/usr/lib/pa20_64/libstd_v2.2
#4 0xc000000000395388 in __cxxTerm_body+0x48 ()
from /build/PA_IA/ux/vbe/pa/usr/lib/pa20_64/libCsup_v2.2
#5 0xc0000000003953e8 in __cxxTerm+0x20 ()
from /build/PA_IA/ux/vbe/pa/usr/lib/pa20_64/libCsup_v2.2
#6 0xc0000000007c3428 in exit+0x80 ()
from /build/PA_IA/ux/vbe/pa/usr/lib/pa20_64/libc.2
#7 0x40000000000220b8 in main () at test_server.cpp:86
- Tags:
- pthread
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2005 08:21 PM
тАО06-07-2005 08:21 PM
Re: Program getting hung in std::ios_base::Init::~Init. Need help!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2005 02:18 AM
тАО06-08-2005 02:18 AM
Re: Program getting hung in std::ios_base::Init::~Init. Need help!!
Appreciate any help on this.
Thanks,
Ranga.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2005 02:38 AM
тАО06-08-2005 02:38 AM
Re: Program getting hung in std::ios_base::Init::~Init. Need help!!
Thanks for replying.
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.
This same application runs fine on PA32, and even on IA64, but not on PA64.
I am compiling it with -DPTHREAD_COMPAT_MODE. So, I can use older platform built thirdparty libs.
Why is it getting hung in the std::ios_base::Init::~Init while doing a mutex unlock? Any ideas!
[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.)]
--
Ranga.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2005 03:05 AM
тАО06-08-2005 03:05 AM
Re: Program getting hung in std::ios_base::Init::~Init. Need help!!
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-23-2011 09:52 PM
тАО12-23-2011 09:52 PM
Re: Program getting hung in std::ios_base::Init::~Init. Need help!!
>My program is getting hung in the std::ios_base::Init::~Init function call
#0 0xc000000000662360 in pthread_mutex_unlock+0 /build/PA_IA/ux/vbe/pa/usr/lib/pa20_64/libpthread.1
Is it hanging or did you get a signal? It shouldn't hang on the first instruction of pthread_mutex_unlock.
Also, it is better if you use the shlibs in /usr/lib/ for libs like libc and libpthread.