- Community Home
- >
- Servers and Operating Systems
- >
- HPE ProLiant
- >
- Servers - General
- >
- Illegal instruction in pthread_join
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
Discussions
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
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
04-26-2023 08:57 PM - last edited on 04-28-2023 04:46 AM by support_s
04-26-2023 08:57 PM - last edited on 04-28-2023 04:46 AM by support_s
Illegal instruction in pthread_join
Hi Team,
I have written the wrappers from pthread, if i using the those wrappers in my repo i am getting illegal instruction in the pthread join .
I have written the pthread structure in the task.h file
- Tags:
- Prolaint server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2023 11:15 PM
04-26-2023 11:15 PM
Re: Illegal instruction in pthread_join
Any suggesions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2023 04:44 AM
04-28-2023 04:44 AM
Re: Illegal instruction in pthread_join
Hello!
It's tuff to determine the exact cause of the illegal instruction error without additional information about your system and the specific error message. However, there are a few things you can check to help diagnose the issue:
Check that the pthread library is properly linked: Make sure that your code is linking against the pthread library by adding the flag "-pthread" to your compilation command. If you're using a Makefile, you can add it to the CFLAGS variable.
Check the stack size: The third parameter to pthread_create() is the stack size for the new thread. Make sure that the value you're passing is within the limits set by your system. If the stack size is too small, it can cause a stack overflow and lead to undefined behavior.
Check the thread function: Make sure that the function you're passing to pthread_create() is a valid function that takes a void pointer as its argument and returns a void pointer. Also, make sure that the function doesn't use any unsupported instructions that might be causing the illegal instruction error.
Check the Task structure: Make sure that the Task structure is properly defined and that the pointer you're passing to CommonCreateTask() is valid. If the pointer is invalid, it can lead to undefined behavior and cause errors.
Check the hardware platform: Make sure that the hardware platform you're running your code on supports pthreads and that it meets the system requirements for the pthread library. Some embedded systems may not support pthreads or have limited support for them.
Check for other errors: Check the system logs or any other error messages that may have been generated to see if there are any other issues that could be causing the illegal instruction error.
By checking these things, you may be able to identify the cause of the illegal instruction error and take steps to fix it. If you're still having trouble, providing more information about your system and the specific error message may help in diagnosing the issue further.
Let me know...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2023 03:30 AM
04-29-2023 03:30 AM
Re: Illegal instruction in pthread_join
Then help may be at hand or not. We will see.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2023 09:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2023 06:43 AM
05-05-2023 06:43 AM
Re: Illegal instruction in pthread_join
Does any one have good suggestion?