From: Stefan Eilemann <eilemann@gmail.com>
To: Pthreads-Win32 list <pthreads-win32@sourceware.org>
Subject: pthread_join problem
Date: Tue, 27 Mar 2007 13:44:00 -0000 [thread overview]
Message-ID: <FC546363-F13E-4DC8-B196-E18EB839B3D7@gmail.com> (raw)
Hello,
I am in the situation that a pthread_join does not return, even
though the thread has called pthread_exit.
I read the cleanup notes, but I think it does not apply here.
I am using the C cleanup code. One thread calls pthread_exit,
the other phtread_join. I've verified that the thread calling
pthread_exit does the longjmp to the thread start code, which
calls _endthreadex.
The main thread calling pthread_join does hang in
WaitForMultipleObjects.
The problem only occurs when I am using some unrelated(?)
external code (the Mellanox SDP Infiniband implementation),
so it could be caused by that, or just be a race appearing
with this code.
There are other pthreads in my application, which terminate
correctly with pthread_exit/pthread_join. Only one thread -
the network receive thread ;)- does exhibit the problem.
Do you have an idea what could be the cause of this problem?
Anything else I could try to find the problem?
Best Regards,
Stefan.
PS: I've tested the Win64 version, and it works like a charm.
--
http://www.equalizergraphics.com
http://www.linkedin.com/in/eilemann
next reply other threads:[~2007-03-27 7:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-27 13:44 Stefan Eilemann [this message]
2007-03-31 7:15 ` Ross Johnson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=FC546363-F13E-4DC8-B196-E18EB839B3D7@gmail.com \
--to=eilemann@gmail.com \
--cc=pthreads-win32@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).