[MPlayer-dev-eng] pthread error on NetBSD

Min Sik Kim minskim at bawi.org
Wed Jan 28 14:42:02 CET 2004


* Alex Beregszaszi:
> Hi,
> 
> > > --- loader/win32.c.orig	2003-09-05 17:08:23.000000000 -0500
> > > +++ loader/win32.c
> > > @@ -1374,8 +1374,10 @@ static void WINAPI expLeaveCriticalSecti
> > >  	printf("Win32 Warning: Leaving uninitialized Critical Section
> > >  	%p!!\n", c); return;
> > >      }
> > > +    if (cs->locked) {
> > >      cs->locked=0;
> > >      pthread_mutex_unlock(&(cs->mutex));
> > > +    }
> > >      return;
> > >  }
> > >  
> > > 
> > > Any better way to handle this?  If not, could you apply this patch?
> > It's the proper way, committed.
> I forgot to ask if the committed version really works for you. Is it
> working? Please reply.

I checked out from CVS today, and it worked well.  Thanks for
committing this.  But there's another mutex problem.  When I stop
mplayer by pressing 'q', it crashes with the following message.

  mplayer: Error detected by libpthread: Destroying locked mutex.
  Detected by file "/usr/src/lib/libpthread/pthread_mutex.c", line 135, function "pthread_mutex_destroy".
  See pthread(3) for information.
 
 
  MPlayer interrupted by signal 6 in module: uninit_vcodec
  - MPlayer crashed. This shouldn't happen.
    It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
    gcc version. If you think it's MPlayer's fault, please read
    DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
    won't help unless you provide this information when reporting a possible bug.


The same problem was also reported by Bernd Ernesti on the NetBSD
current-users mailing list.

-- 
Min Sik Kim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040128/ca40e395/attachment.pgp>


More information about the MPlayer-dev-eng mailing list