- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: semaphore error that is due to TLS symbol erro...
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
Forums
Discussions
Discussions
Forums
Discussions
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
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
12-18-2004 09:04 PM - last edited on 03-29-2013 12:47 AM by Cathy_xu
12-18-2004 09:04 PM - last edited on 03-29-2013 12:47 AM by Cathy_xu
semaphore error that is due to TLS symbol error ??
Hello.
as soon as the application I made run,
it causes error and being terminated as bellow.
$ myapp&
[1] 26360
$ /usr/lib/dld.sl: Thread Local Storage mismatch symbol for: sem_destroy
/usr/lib/dld.sl: No such file or directory
I'm sure I use semaphore functions:
sem_init(),sem_wait(),sem_post() and sem_destroy().
And the program is a deamon application
and uses pthread functions and
precompiled by Pro*C for using Oracle.
I can't understand what the above error message does mean,
but it is possible there are some keywords or linker setting missed.
(but I use -lrt option to cc.)
If you know thare are some possibilities about this problem, please tell me.
regards,
Takanobu Maekawa
Moved from HP-UX Technical Documentation to HP-UX > languages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2004 11:01 PM
12-18-2004 11:01 PM
Re: semaphore error that is due to TLS symbol error ??
I remembered I used a user-defined TLS valiable.
So I commented it out, the problem didn't happen.
Therefore, it is much possible to misuse TLS.
But althouth I read the TLS section in pthread(3T)in man page,
I can't find where I was wrong.
Simply I use TLS global valiable in a file as bellow,
__thread ERRSTRUCT errSt;
(ERRSTRUCT is a user-defined struct type)
If you know the right way to use TLS,
please tell me.I'm really confused...
regards,
Takanobu Maekawa