RE: [LCP]FW: pthread_mutex_lock call hangs

2003-03-11 Thread Ajay Bansal
This is a multi-part message in MIME format. Hi All I have been able to solve the problem. But the root cause is still not clear. Following is the scenario in the code. I have a class CriticalSection which is being used in the class for locking. Following is the class typedef struct _critsect

Re: pthread_mutex_lock call hangs

2003-03-07 Thread Elliot Lee
FWIW, you can create PTHREAD_MUTEX_ERRORCHECK_NP mutexes (see the man pages for pthread_mutexattr_init and pthread_mutex_init) to have the 'thread trying to lock the same mutex twice' case detected. This will help find 'duh' errors in one thread, not solve real deadlocks (for those, I find it's a

Re: pthread_mutex_lock call hangs

2003-03-07 Thread Don Dade
MY CODE. -Original Message- From: Don Dade [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2003 12:20 AM To: [EMAIL PROTECTED] Subject: Re: pthread_mutex_lock call hangs Hi Ajay, This is the normal sequence for LinuxThreads pthread_mutex_lock(). I would guess that you've got a

RE: pthread_mutex_lock call hangs

2003-03-07 Thread Rokicki, Andrew
nsal > Sent: Friday, March 07, 2003 3:11 PM > To: [EMAIL PROTECTED] > Subject: RE: pthread_mutex_lock call hangs > > > But IS THAT POSSIBLE?? I mean that release mode binaries do not report a > deadlock?? > > Only difference between two build is of "-g" flag. T

RE: pthread_mutex_lock call hangs

2003-03-07 Thread Ajay Bansal
Answers pleaaase -Original Message- From: Ajay Bansal Sent: Friday, March 07, 2003 3:11 PM To: [EMAIL PROTECTED] Subject: RE: pthread_mutex_lock call hangs But IS THAT POSSIBLE?? I mean that release mode binaries do not report a deadlock?? Only difference between two build is

RE: pthread_mutex_lock call hangs

2003-03-07 Thread Ajay Bansal
EMAIL PROTECTED] Sent: Friday, March 07, 2003 12:20 AM To: [EMAIL PROTECTED] Subject: Re: pthread_mutex_lock call hangs Hi Ajay, This is the normal sequence for LinuxThreads pthread_mutex_lock(). I would guess that you've got a very subtle bug that is causing a deadlock when you compile an

Re: pthread_mutex_lock call hangs

2003-03-06 Thread Don Dade
something wrong with the call. HTH, Don Ajay Bansal writes: may be somebody over here can answer this -Original Message- From: Ajay Bansal Sent: Thursday, March 06, 2003 9:36 PM To: [EMAIL PROTECTED] Subject: pthread_mutex_lock call hangs Hi All I am on RH73, gcc 3.2.1 I hav

FW: pthread_mutex_lock call hangs

2003-03-06 Thread Ajay Bansal
Title: Message may be somebody over here can answer this   -Original Message-From: Ajay Bansal Sent: Thursday, March 06, 2003 9:36 PMTo: [EMAIL PROTECTED]Subject: pthread_mutex_lock call hangs Hi All   I am on RH73, gcc 3.2.1   I have a scenario in which, only if the code is in