Subject: mozilla, wxGTK, ogg123 [Re: galeon and threads on -current]
To: Nathan J. Williams <nathanw@wasabisystems.com>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: current-users
Date: 04/30/2003 14:29:46
--SLfjTIIQuAzj8yil
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

hi,

On Sat, Apr 26, 2003 at 06:56:49PM -0400, Nathan J. Williams wrote:
>=20
> Yeah, there is something fishy going on with the various recoveries
> that have to happen when the SA subsystem needs to communicate with a
> swapped-out app (or an app where certain pages, like the internal
> pthread_t structures, are paged out). I've been looking in that
> direction lately.

i had several mozilla crashes lately, besides the notorious "crash after
being paged out"

 assertion "0" failed: file "/cvs/src/lib/libpthread/pthread.c", line
 394, function "pthread__idle"

also two another which happened during page loading

 assertion "target->pt_state !=3D PT_STATE_RUNNING" failed: file
 "/cvs/src/lib/libpthread/pthread_sig.c", line 757, function
 "pthread__kill"

 assertion "PTQ_LAST(&pthread__runqueue, pthread_queue_t) !=3D qhead"
 failed: file "/cvs/src/lib/libpthread/pthread_run.c", line 237, function
 "pthread__sched_bulk"


also with the latest -current update (1.6R, Sat Apr 26 16:46:01 CEST 2003),
ogg123 started crashing on end of the track or forced exit:

 Error detected, file "/cvs/src/lib/libpthread/pthread_mutex.c", line 338,
 function "pthread_mutex_unlock": Unlocking mutex owned by another thread.

 (gdb) bt
 #0  0xbd9e5817 in kill () from /usr/lib/libc.so.12
 #1  0xbdba0149 in pthread__errorfunc () from /usr/lib/libpthread.so.0
 #2  0xbdb9d02f in pthread_mutex_unlock () from /usr/lib/libpthread.so.0
 #3  0x804f6a3 in status_reset_output_lock () at status.c:319
 #4  0x804e16c in play (
     source_string=3D0x80600c0 "Mika Vainio - Metri/01 - Sisaan.ogg")
     at ogg123.c:583
 #5  0x804dc14 in main (argc=3D2, argv=3D0xbfbff9b8) at ogg123.c:373
 #6  0x8049f64 in ___start ()

and wxGTK applications (e.g., wip/poedit) crash on start (confirmed by jmmv
for different packages) with the same error as ogg123 on exit:

 Error detected, file "/cvs/src/lib/libpthread/pthread_mutex.c", line 338,
 function "pthread_mutex_unlock": Unlocking mutex owned by another thread.

 (gdb) bt
 #0  0xbd1e8817 in kill () from /usr/lib/libc.so.12
 #1  0xbd4c3149 in pthread__errorfunc () from /usr/lib/libpthread.so.0
 #2  0xbd4c002f in pthread_mutex_unlock () from /usr/lib/libpthread.so.0
 #3  0xbd5b3236 in gtk_main () from /usr/X11R6/lib/libgtk.so.12
 #4  0xbd8d39f7 in wxDialog::ShowModal () from /usr/pkg/lib/libwx_gtk.so.0
 #5  0xbda08e88 in wxMessageBox () from /usr/pkg/lib/libwx_gtk.so.0
 #6  0x8063afb in poEditApp::OnInit (this=3D0x8156880) at edapp.cpp:125
 #7  0xbd8b62bb in wxEntry () from /usr/pkg/lib/libwx_gtk.so.0
 #8  0x8065df2 in main (argc=3D1, argv=3D0xbfbff9e0) at edapp.cpp:37
 #9  0x8058284 in ___start ()


/usr/lib/libpthread.so:
     $NetBSD: sem.c,v 1.6 2003/03/08 08:03:36 lukem Exp $
     $NetBSD: sched.c,v 1.3 2003/03/08 08:03:36 lukem Exp $
     $NetBSD: pthread_sleep.c,v 1.2 2003/03/08 08:03:36 lukem Exp $
     $NetBSD: pthread_specific.c,v 1.6 2003/03/08 08:03:36 lukem Exp $
     $NetBSD: pthread_sig.c,v 1.13 2003/03/20 01:03:52 nathanw Exp $
     $NetBSD: pthread_sa.c,v 1.7 2003/03/08 08:03:35 lukem Exp $
     $NetBSD: pthread_rwlock.c,v 1.5 2003/03/08 08:03:35 lukem Exp $
     $NetBSD: pthread_run.c,v 1.9 2003/04/04 01:08:25 nathanw Exp $
     $NetBSD: pthread_mutex.c,v 1.14 2003/04/23 19:36:12 nathanw Exp $
     $NetBSD: pthread_lock.c,v 1.6 2003/03/08 08:03:35 lukem Exp $
     $NetBSD: pthread_cond.c,v 1.11 2003/04/23 19:36:12 nathanw Exp $
     $NetBSD: pthread_cancelstub.c,v 1.5 2003/03/08 08:03:35 lukem Exp $
     $NetBSD: pthread_alarms.c,v 1.8 2003/04/07 19:41:22 nathanw Exp $
     $NetBSD: pthread.c,v 1.17 2003/04/23 19:35:47 nathanw Exp $
     $NetBSD: pthread_md.c,v 1.3 2003/03/08 08:03:37 lukem Exp $
     $NetBSD: pthread_debug.c,v 1.5 2003/04/16 17:37:47 nathanw Exp $
     $NetBSD: pthread_stack.c,v 1.7 2003/03/08 08:03:36 lukem Exp $
     $NetBSD: pthread_barrier.c,v 1.6 2003/03/08 08:03:35 lukem Exp $


regards,

--=20
-- Lubomir Sedlacik <salo@Xtrmntr.org>                   --
--                  <salo@silcnet.org>                   --

--SLfjTIIQuAzj8yil
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (NetBSD)

iD8DBQE+r8G5iwjDDlS8cmMRAjUyAJ0aDKrnd3lyIuZdLFdLD0FPQnBZXwCgjl3n
L3fuyCpgHnh9WwPIU27DOv8=
=FiVH
-----END PGP SIGNATURE-----

--SLfjTIIQuAzj8yil--