[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

libkse and bus error



On Sun, 19 Oct 2003, Morten Rodal wrote:

> On Sun, Oct 19, 2003 at 02:16:27PM -0400, Daniel Eischen wrote:
> > On Sun, 19 Oct 2003, Morten Rodal wrote:
> > 
> > > I seem to be able to crash almost every pthread program that uses
> > > pthread_mutex'es.  First I thought it was a problem with
> > > pthread_testcancel(), until I compiled libkse with DEBUG_FLAGS=-g on
> > > one of machines.
> > > 
> > > Backtrace from a machine with DEBUG_FLAGS=-g and libkse:
> > > 
> > > #0  0x28e6ed1b in kse_thr_interrupt () at {standard input}:15
> > > #1  0x28e5f990 in _thr_sig_add (pthread=0x81fab00, sig=136293172,
> > > info=0x0)
> > >     at /usr/src/lib/libpthread/thread/thr_sig.c:885
> > > #2  0x28e687cb in kse_check_completed (kse=0x81fab00)
> > >     at /usr/src/lib/libpthread/thread/thr_kern.c:1558
> > > #3  0x28e6721c in kse_sched_multi (kmbx=0x17e)
> > >     at /usr/src/lib/libpthread/thread/thr_kern.c:1021
> > 
> > This is a problem.  The mailbox pointer is invalid.
> > 
> 
> I thought it looked a bit strange.  Any clues to what might have
> caused this?
> 
> > > One machine is running a kernel from
> > > 
> > > FreeBSD slurp.rodal.no 5.1-CURRENT FreeBSD 5.1-CURRENT #3: Tue Oct 14 20:47:45 CEST 2003     root_(_at_)_slurp_(_dot_)_rodal_(_dot_)_no:/usr/obj/usr/src/sys/slurp i386
> > > 
> > > the other from
> > > 
> > > FreeBSD hauk10.idi.ntnu.no 5.1-CURRENT FreeBSD 5.1-CURRENT #2: Fri Sep 26 09:12:55 CEST 2003 root_(_at_)_hauk10_(_dot_)_idi_(_dot_)_ntnu_(_dot_)_no:/usr/obj/usr/src/sys/hauk10  i386
> > > 
> > > 
> > 
> > I'm not having any of these problems with a -current from Oct 12th
> > on both SMP and UP systems.  I'm using KDE and mozilla.
> > 
> 
> The backtrace with debugging symbols is the dcgui-qt port (net/dc-gui)
> which seems to use pthread mutexes quite heavily.  It only starts 1
> out of 10 times.

It seems to work OK here.  I can start it; I'm not sure what to do with
it once it's started, but it does start consistently.

  $ pkg_which dc-qt
  dctc-gui-qt-0.0.6
  $ uname -a 
  FreeBSD sirius 5.1-CURRENT FreeBSD 5.1-CURRENT #10: Sun Oct 12 12:48:45 EDT 2003
    root_(_at_)_sirius:/usr/obj/opt/FreeBSD/src/src/sys/sirius  i386

This is on an SMP system.

-- 
Dan Eischen