- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- pthread_mutex_init problem (Bus error - core dump)
Operating System - HP-UX
1823079
Members
3389
Online
109645
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
09-11-2002 01:23 PM
09-11-2002 01:23 PM
pthread_mutex_init problem (Bus error - core dump)
Hi,
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
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.
Opened view /exports/devel/hats/layer5/dama.ss/hp_at3_1_00_offline.wrk.
Opened views in link closure of dama_adaptation_data_fast_load_file_driver.
Set breakpoint [1] procedure __ADA_ELAB at 06432680: stw r2, -014(sp)
/exports/devel/hats/layer5/dama.ss/hp_at3_1_00_offline.wrk/units/dama_adaptation_data_flf/dama_adaptation_data_fast_load_file_driver
Warning: In non-Ada task, selecting an Ada task.
=> runtime tasking structures have not yet been initialized.
process received signal "Bus error" [10]
stopped in pthread_mutex_init
at 0790cb3b4: ldw 0(r4), r31
Any sugestion ?
TIA
Mila
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
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.
Opened view /exports/devel/hats/layer5/dama.ss/hp_at3_1_00_offline.wrk.
Opened views in link closure of dama_adaptation_data_fast_load_file_driver.
Set breakpoint [1] procedure __ADA_ELAB at 06432680: stw r2, -014(sp)
/exports/devel/hats/layer5/dama.ss/hp_at3_1_00_offline.wrk/units/dama_adaptation_data_flf/dama_adaptation_data_fast_load_file_driver
Warning: In non-Ada task, selecting an Ada task.
=> runtime tasking structures have not yet been initialized.
process received signal "Bus error" [10]
stopped in pthread_mutex_init
at 0790cb3b4: ldw 0(r4), r31
Any sugestion ?
TIA
Mila
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 12:41 AM
09-13-2002 12:41 AM
Re: pthread_mutex_init problem (Bus error - core dump)
The default stacksize in thread created with pthread_create on HP-UX is 64K which is usually too small...
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.
Here is a abstract of our code to set the stack size for the new thread:
#if (defined __hpux__)
// F1020701 : Taille des piles allou??es pour les threads sous HPUX.
// La taille est ici fix??e ?? 512 Ko. Si cela ne pose pas de probl??me,
// la laisser ainsi, sinon essayer les valeurs suivantes
const size_t pthreadStackSize = 524288;
// Stack : 256 Ko
// const size_t pthreadStackSize = 262144;
// Stack : 128 Ko
// const size_t pthreadStackSize = 131072;
// Stack : 96 Ko
// const size_t pthreadStackSize = 1024;
#endif
#if (defined __hpux__)
// On alloue l'espace m??moire n??cessaire au pthread_attr_t
if((l4_error = pthread_attr_init(&lc_pthreadAttr)))
{
mb_taskAct = FALSE;
#if (defined __tg_debug__)
cout << ka_funcName << "pthread_attr_init error " << l4_error
<< flush << endl;
#endif
throw(TgExcepSys("pthread_attr_init", l4_error, 0));
}
// On change la taille de stack par defaut.
if((l4_error = pthread_attr_setstacksize(&lc_pthreadAttr,
pthreadStackSize)))
{
mb_taskAct = FALSE;
#if (defined __tg_debug__)
cout << ka_funcName << "pthread_attr_setstacksize error " << l4_error
<< flush << endl;
#endif
throw(TgExcepSys("pthread_attr_setstacksize", l4_error, 0));
}
if((l4_error = pthread_create(&mc_task, &lc_pthreadAttr,
(void *(*)(void *)) taskMainLoop, this)))
#else
if((l4_error = pthread_create(&mc_task, NULL,
(void *(*)(void *)) taskMainLoop, this)))
#endif
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.
Here is a abstract of our code to set the stack size for the new thread:
#if (defined __hpux__)
// F1020701 : Taille des piles allou??es pour les threads sous HPUX.
// La taille est ici fix??e ?? 512 Ko. Si cela ne pose pas de probl??me,
// la laisser ainsi, sinon essayer les valeurs suivantes
const size_t pthreadStackSize = 524288;
// Stack : 256 Ko
// const size_t pthreadStackSize = 262144;
// Stack : 128 Ko
// const size_t pthreadStackSize = 131072;
// Stack : 96 Ko
// const size_t pthreadStackSize = 1024;
#endif
#if (defined __hpux__)
// On alloue l'espace m??moire n??cessaire au pthread_attr_t
if((l4_error = pthread_attr_init(&lc_pthreadAttr)))
{
mb_taskAct = FALSE;
#if (defined __tg_debug__)
cout << ka_funcName << "pthread_attr_init error " << l4_error
<< flush << endl;
#endif
throw(TgExcepSys("pthread_attr_init", l4_error, 0));
}
// On change la taille de stack par defaut.
if((l4_error = pthread_attr_setstacksize(&lc_pthreadAttr,
pthreadStackSize)))
{
mb_taskAct = FALSE;
#if (defined __tg_debug__)
cout << ka_funcName << "pthread_attr_setstacksize error " << l4_error
<< flush << endl;
#endif
throw(TgExcepSys("pthread_attr_setstacksize", l4_error, 0));
}
if((l4_error = pthread_create(&mc_task, &lc_pthreadAttr,
(void *(*)(void *)) taskMainLoop, this)))
#else
if((l4_error = pthread_create(&mc_task, NULL,
(void *(*)(void *)) taskMainLoop, this)))
#endif
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP